Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection string

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
How can I change this map path to a physical path?

sub openConn()
'use appropriate connection string
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath("admin/admin/admin/blah.mdb")
Set dbc = Server.CreateObject("ADODB.Connection")
dbc.open strConn
end sub
 
sub openConn()
'use appropriate connection string
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetpub\ Set dbc = Server.CreateObject("ADODB.Connection")
dbc.open strConn
end sub


change the actual physical path to your hard drive's physical path structure. -Ovatvvon :-Q
 
thanks.. was so simple and yet so hard :0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top