how to write connection string for asp-remote sql server connectivity?
sindhu m
2007-04-10 07:24:09 UTC
i have tried to connect a centralised server for sql with html page using asp.iam encountering an error called "SQL server doesn't exist. or access denied".can anyone say the exact format for asp-remote sql server connectionstring?
Three answers:
rod
2007-04-10 10:20:10 UTC
Try this one:
connectionString="server= Yourservername;
database=YourDb; Trusted_Connection =no;
uid=yourSQLLoginName;pwd= yourPassword"
all one line and take out the spaces I put in so it writes correctly in this little box
Also you might need:
providerName="System.Data.SqlClient"
hope that helps
emmittnervend
2007-04-10 07:37:55 UTC
I don't know a whole lot about ASP or SQL, but I do know that you have to create an ODBC connection on the web server to the SQL server. Just something you might have overlooked. :)
2016-11-28 07:22:06 UTC
sq. Server databases won't be able to be suitable to via their filename. You connect with their service operating on the server, making use of they server or social gathering call. service=SQLOLEDB;driving force={sq. Server};Server=YOURSERVERNAME;database=Y...
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.