Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27156

VS 2010 Connect to SQL Server Express R2 DB on other PC

$
0
0
Hello,

I am developing a programm on 1 pc (pc01). On pc01 there is a SQL Server Express R2 DB.
I have a client on pc02 that wants to connect to the DB on PC01 with vb.net.

when I try to connect with the following connectionstring:
Code:

_ConnectionstringSQL = "Data Source=PC01;Initial Catalog=SO_FRAMEWORK;User Id=SA;Password=secret;"
I get the error message:
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"

When I look at the login screen of the sql server the servername is "PC01".
PC01 is the name of the pc and not of the server. However I can't fint the servername.
s can help me.

Yhanks in advance
I hope you guy

Viewing all articles
Browse latest Browse all 27156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>