IxxI
08-04-2004, 09:49 AM
I'm wondering if its possible to "embed" an sql data source in an asp page. What I mean by this is at the moment I'm connecting to the data source using:
strDBConn = "dsn=mydatabase;uid=sql;pwd=mydatabasepassword"
Set objConn = CreateObject("ADODB.Connection")
objConn.Open strDBConn
and I'm wondering if instead of this I can just connect to it using the databases name instead of dsn e.g. connecting to mydatabase1.dbo where that is the name of my database.
Sorry for the confusing explanation, hope it makes enough sense for a reply ;).
IxxI
strDBConn = "dsn=mydatabase;uid=sql;pwd=mydatabasepassword"
Set objConn = CreateObject("ADODB.Connection")
objConn.Open strDBConn
and I'm wondering if instead of this I can just connect to it using the databases name instead of dsn e.g. connecting to mydatabase1.dbo where that is the name of my database.
Sorry for the confusing explanation, hope it makes enough sense for a reply ;).
IxxI