[solved] a question about deployment of database in ASP.net
i have a Access database, the connection string is:
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C: \Inetpub\wwwroot\MyBooks\MyBooksDB.mdb"
When I run it on local machine, everything is ok. The mdb file is under website's root \MyBooks\
now I deploy it to the a host, it reports error about the database. obviously, it can not find the mdb file. How can I change the connection string?
thx
Connection String to MDB database
Did you make it work? If so, how did you do it.
I tried the code in the reply, BUT when executing it the path built is 'C:\WINDOWS\system32\databaseName.MDB'
I 'd like to refer to it as ".\databaseName.mdb"
(meaning: AT CURRENT SUBDIRECTORY find database databaseName.mdb)
Thanks