I have a c# program that connects to SQL server 2008 and works with this connection string :
"server = HAMED-PC;database = museum ; integrated security = true";
I want to copy this program to another and connect to this SQL server on the network. so what should be the connection string ?
The PC that SQL server is on it have this IP 192.168.1.11.
I have tried so much but no success .
For example I have tried
"server = 192.168.1.11;database = museum ; integrated security = true";
But it didn’t work.
SQL Server express is installed by default with network access off. You can turn it on however.
Here’s how for 2005 and 2008.
If HAMED-PC has a firewall, you will need to allow tcp port 1433.