Error :SQL Server does not exist or access denied

trungcutecute

New member
Joined
Nov 2, 2009
Messages
1
Programming Experience
1-3
When connect to sqlserver ,I use that connectionstring:
ConnectionString = "Data source =ITQUANGNT-700AC3;Inital catalog =device_qb;User ID =sa;Password =a;"
then connected successfully.
But when replace "data souce" by IP address as
ConnectionString = "Data source =10.45.193.133,1433;Network Library=DBMSSOCN;
Inital catalog = device_qb;User ID =sa;Password =a;"
then has error "SQL Server does not exist or access denied"
Who know the reason, can show me for help
Thanks!
 
Are you sure thats the right IP address you are using. And as long as its the default port, you don't have to explicitly add the port number in the connection string. Just the IP address would be fine.
 
Back
Top