Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 SQL Server Conn from VB6

Author  Topic 

Nori81
Starting Member

1 Post

Posted - 2005-12-25 : 05:13:53
hi i am trying to access the Sql server which is located at our server at the office, so let's say that our server name is "Myserver" and the database i am trying to connect is "MyDB" then can anybody where is my mistake, on the following connection string:

CON.Open "Driver={SQL Server};" & _
"Server=XXX.XXX.XXX.XXX;" & _
"Address=XXX.XXX.XXX.XXX,YY;" & _
"Network=DBMSSOCN;" & _
"Database=MyDB;" & _
"Uid=MyUserID;" & _
"Pwd=MyPass;"
can any body tell me where is my mistake,
i have even tried the following:
CON.Open "Driver={SQL server};Server=MyserverName;Database=MYDB;"

However,Still i get the following error:
TCP/IP sockets General Network error , check your network documentations.

Even if i specify the User name and password to access the Server where the SQL server is located.

could you help please ,,,
ASP

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-12-25 : 13:16:15
see this

www.connectionstrings.com
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-04-04 : 09:09:40
quote:
Originally posted by shangibad
(Edited by graz -- Please don't quote the spam :)


How is this related to this topic?
What is the need of posting these links?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -