Using example of Chpts 12& 13 to access new DB
Hello all!
I am kinda new to using sql 7.0 and am trying to set up a web page that will access a new sql7 database following the examples in chapters 12 & 13. I have a database with several tables in it created on my machine. My asp page uses a connection string that looks like:
"strConnect = "Provider=SQLOLEDB; PersistantSecurity Info= False; User ID = sa; password = 1234; Initial Catalog=equip;Initial file Name =c:\mssql7\data\tracking_data.mdf""
When I try to load this page my web browser displays the "page cannot be displayed error" and shows an error type of
"Microsoft OLE DB Provider for SQL Server (0x80004005)
Device activation error. The physical file name 'c:\mssql7\data\tracking_data.mdf' may be incorrect.
/tracking/rptsvrc.asp, line 22"
Line 22 of the page rptsvrc.asp contains the code:
"objCommand.ActiveConnection = strConnect"
I am at a lose as to why this doesn't work. The file name and path are correct and they do exist.
ANy suggestions here?
Thanks CVC505
|