My database is hosted on a remote server. I need to write a connection string that I have to include in the web.config .
server name -- abcs.efgh.ed-1.eee.sss.com,1433 (it also contains a port as well) username -- a password -- a db name -- mydb
I know how to connect to a local database, and I use linkstring.com to link to the link, but connecting to the remote database is a problem for me. help me please
UPDATE
<connectionStrings> <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="abcs.efgh.ed-1.eee.sss.com,1433;Integrated Security=True;User ID=a;Password=a" /> </connectionStrings>
An exception I get:
Login failed. Login from an untrusted domain and cannot be used with Windows authentication.
Actually, this is not the Windows authentication I want to use. This is the SQL Server authentication I want.
source share