Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_database_setup thread: Database link once on server


Message #1 by healisdw@h... on Tue, 24 Jul 2001 15:54:35
When you upload your database to server to give path to establish the 

connection do you just give the url path and database name or is there a 

command like Java has GetBaseUrl. 



Data Source=" ??????"  What goes next.



Message #2 by adigital@h... on Wed, 25 Jul 2001 16:44:16
> When you upload your database to server to give path to establish the 

> connection do you just give the url path and database name or is there a 

> command like Java has GetBaseUrl. 

> 

> Data Source=" ??????"  What goes next.

> 

Set MyConn=Server.CreateObject("ADODB.Connection")

Set RS=Server.CreateObject("ADODB.RecordSet")

MyConn.Open "Provider=SQLOLEDB;Data Source=SQLSERVER;User 

Id=;Password=;Initial Catalog="





or



Set Myconn = Server.CreateObject("ADODB.Connection")

Myconn.Open MusicDSN

Message #3 by healisdw@h... on Wed, 25 Jul 2001 17:43:45
> > When you upload your database to server to give path to establish the 

> > connection do you just give the url path and database name or is there 

a 

> > command like Java has GetBaseUrl. 

> > 

> > Data Source=" ??????"  What goes next.

> > 

> Set MyConn=Server.CreateObject("ADODB.Connection")

> Set RS=Server.CreateObject("ADODB.RecordSet")

> MyConn.Open "Provider=SQLOLEDB;Data Source=SQLSERVER;User 

> Id=;Password=;Initial Catalog="

> 

> 

> or

> 

> Set Myconn = Server.CreateObject("ADODB.Connection")

> Myconn.Open MusicDSN





Sorry I wasn't clear on my message. My bad. I am loading to comcast at 

home server on web space that is provided for customers. I was having 

trouble figuring out how to map the database; what path I should give it.

I got another response on a different forum that I could use a call like 

this

Dim myfilename myfilename = Server.MapPath ("mydatabase.mdb")



This would map it to my root on the server and it would be able to find 

the database. I appreciate your help. If this is not accurate let me know.


  Return to Index