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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection problem?

Status
Not open for further replies.

baran121

Programmer
Sep 8, 2005
337
TR
hi i use sql server 2005 express.
i have connection problem with client to server.
i make surface area configurations. but still have problem.
computers which i use for sql 2005 express
have xp home edition.

i got the problem with connection. when i want to connect to server i got undefined error.
my connection string for 2000

With cnn
.CursorLocation = adUseClient
.ConnectionString = "provider=SQLOLEDB;server=" & server_adi & ";uid=" & Text2.Text & ";pwd=" & Text1.Text & ";database=" & database_adi
.Open
End With

my connection string for 2005 express
With cnn
.CursorLocation = adUseClient
.ConnectionString = "Provider=SQLNCLI;Server=" & server_adi & ";Database=" & database_adi & ";Trusted_Connection=yes;"
.Open
End With



please help me.
 
i tried to ping to server

ping 192.168.1.2

and it is ok.

but telnet doesnt work.

telnet 192.168.1.2 1433

what is problem ?
 
i got the error.
it is about fire wall.
i close fire wall and i can connect now.
i opened fire wall and give permission for only 1433 port. but couldnt connect to server.
what can i do?
 
Is 1433 your default port?

Also, in your connection strings, SQL 2000 seems to use a username and password and the 2005 is Trusted Connection = Yes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top