nature
01-03-2004, 05:13 AM
Here's my database connection (right below these questions) and I want to set it up in the web.config but I'm unclear about a few things.
1) Would I always use localhost (on the server as opposed to my laptop where I test)?
2) How do I set up an access database here? There's no extension in the example.
3) The web.config example below has no reference to the actual path - "/_database/. How do I specifiy that?
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source="& server.mappath("/_database/whatever.mdb") )
<appSettings>
<add key="ConnectionString"
value="server=localhost;database=Northwind;uid=sa;passwor d=secret;" />
</appSettings>
Thanks for your help!
1) Would I always use localhost (on the server as opposed to my laptop where I test)?
2) How do I set up an access database here? There's no extension in the example.
3) The web.config example below has no reference to the actual path - "/_database/. How do I specifiy that?
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source="& server.mappath("/_database/whatever.mdb") )
<appSettings>
<add key="ConnectionString"
value="server=localhost;database=Northwind;uid=sa;passwor d=secret;" />
</appSettings>
Thanks for your help!