connect to local db

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
nesquick
-


Joined: 19 May 2004
Posts: 5

PostPosted: Wed May 19, 2004 2:02 pm    Post subject: connect to local db Reply with quote

what are the things to indicate to connect to a local db ?
my local db is sqlserver, here is my code :

set oconne = server.CreateObject ("ADODB.CONNECTION")
oconne.Open ("DSN=localhost;database=bepecaser;uid=;pwd=")

what must i put in dns ? i do not know what to put for iud and pwd (i connect with local obdc)

i have a 500 error

thx
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Thu May 20, 2004 12:00 am    Post subject: Reply with quote

May I suggest using MySQL if you have the option. If you do, and problems arise, there will be a lot more support for it [here] than ODBC.

All I can say for ODBC is checking the documentation (I believe it is available here) to see how to test your server.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri May 21, 2004 2:19 pm    Post subject: Re: connect to local db Reply with quote

nesquick,

Do you get error 500 with all your ASP scripts or with that one only?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
nesquick
-


Joined: 19 May 2004
Posts: 5

PostPosted: Mon May 24, 2004 8:36 am    Post subject: Re: connect to local db Reply with quote

>> iNaNimAtE

I must use SQL Server (if I could I would use MySQL and PHP...), but thx for the doc

>> aprelium

I only have a 500 error for the connection script. Any other script works well.
Back to top View user's profile Send private message
nesquick
-


Joined: 19 May 2004
Posts: 5

PostPosted: Mon May 24, 2004 10:53 am    Post subject: Reply with quote

ok, i found the prob : i don't have to set a iud and a password, and i put the driver :

set oconne = server.CreateObject ("ADODB.CONNECTION")
connStr = "DRIVER={SQL Server}; SERVER=myLocalServer; DATABASE=myDB"
oconne.open connStr
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group