score:1

Accepted answer

Could be a lot of things, since you didn't specify what error you got, but as a general reference this site: http://www.connectionstrings.com/sql-server/ gives you lots of things to try.

Other things to confirm: is the firewall allowing traffic thru? Is the port set to something other than the default of 1433; did you configure the server to allow remote connections? Is tcp/ip enabled?...etc.

score:3

No ports where declared in the IP eg .192.168.0.1:1033 , And instead of Database use Initial Catalog=datos

On the server you would have to set in sql server management the option of allowing remote connections to true, then in windows firewall activate the port used to connect to the sql server.

Full idea with the connection string...

"Server=192.168.0.1:1033\SQLEXPRESS;Initial Catalog=datos;uid=userid;pwd=password"


More questions

More questions with similar tag