You may be able to configure a database connection by using a Universal Data Link (UDL) file to provide connection information. To do this, follow these steps:
- Start Notepad, and then type the following text:
-------------------- Start of UDL file --------------------
[oledb]
; Everything after this line is an OLE DB initstring
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Database_Name;Data Source=SQL_Server_Name
-------------------- End of UDL file -------------------- - Save the file to your desktop. Use a .udl file name extension.
- Open the Web site in FrontPage.
- Import the UDL file into your FrontPage Web site. Store the UDL file in the Fpdb folder.
- On the Tools menu, click Site Settings.
- Click the Database tab.
- Click Add.
- Click Custom definition.
- Click Browse.
- Locate the Fpdb folder in the Web site.
- Click Universal Data Link (*.udl) for the file type.
- Click the UDL file, and then click OK.
- Type a name for the database connection.
- Click OK.
- Click Verify to verify the connection.
- Click OK.
You should now be able to create ASP pages and ASP.NET that use this database connection.
Note When you use this workaround to test your ASP pages and your ASP.NET pages, you may receive the following error message:
Database Results Wizard Error
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
If you receive this error message, you cannot use the workaround for this issue. You must follow the steps in the "Resolution" section.