if the webserver and the sql server are on the same machine, you don't need to specify the fullname of the server in the connection string; you can specify only "." (a single dot) like this:
"data source=.;initial catalog=felicitas_new;persist security info=False;user id=myId;password:myPass;packet size=4096"
the use of the dot instead of the server name, is, i think, a feature of the ole db client.
you can also replace the server name with "localhost" like this:
"data source=localhost;initial catalog=felicitas_new;persist security info=False;user id=myId;password:myPass;packet size=4096"
this is because (allmost) all computers using TCP/TP, have the "localhost" name asociated with the 127.0.0.1 ip address. (in the %windir%\system32\drivers\etc\hosts file).
instead of the dot or "localhost", you could also try using "127.0.0.1" (the loopback ip address).
maybe one of the above ways will work.
defiant.
|