Hi all,
I have tried but failed to simply connect from VS2010 to Sql database on another pc. I need to develop a simple app in work and so I thought I would try it at home first. This is what I am trying to do;
I have two laptops at home (not networked); laptop A and laptop B. On A I have a sql database with one table. On B I have VS2010. I want to connect to A from B via a simple windows form application.
After a little research, I have found this string on connection strings.com;
Connect via an IP address
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;
User ID=myUsername;Password=myPassword;
I have amended this to my own credentials.
On Laptop A I have enabled sql Browser and tcp/ip and created a static ip.
So, I create new project in vs2010. Add Datasource and then type in the above string into the text box for Server name. When I go 'Select or enter a database name' - I enter the db name but get this eror;
'A network-related or instance-specific error occurred while establishing a connection to SQL Server.....error:25 - connection string is not valid'
Can anyone please help? Thanks
I have tried but failed to simply connect from VS2010 to Sql database on another pc. I need to develop a simple app in work and so I thought I would try it at home first. This is what I am trying to do;
I have two laptops at home (not networked); laptop A and laptop B. On A I have a sql database with one table. On B I have VS2010. I want to connect to A from B via a simple windows form application.
After a little research, I have found this string on connection strings.com;
Connect via an IP address
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;
User ID=myUsername;Password=myPassword;
I have amended this to my own credentials.
On Laptop A I have enabled sql Browser and tcp/ip and created a static ip.
So, I create new project in vs2010. Add Datasource and then type in the above string into the text box for Server name. When I go 'Select or enter a database name' - I enter the db name but get this eror;
'A network-related or instance-specific error occurred while establishing a connection to SQL Server.....error:25 - connection string is not valid'
Can anyone please help? Thanks