If you SQLServer and WebServer in same network you can have Trusted Connection. Please try the followings.
"Data Source=Pubs;Initial Catalog=pubs;Integrated Security=SSPI;"
- or -
"Server=Pubs;Database=pubs;Trusted_Connection=True;"
The server is not on the same network (well, it is once it's moved to the
production machine, but even then both are on remote hosting machines and I
can only access the SQL server via IP address)
Sreejumon said:
Hi,
If you SQLServer and WebServer in same network you can have Trusted