Start a conversation

Ms Sql - Sample Connection String (Asp.Net)


This is a sample connection string which you can use with MS SQL 2005 / 2008 under ASP.NET:

<connectionStrings>

<add name="connStr" providerName="System.Data.SqlClient" connectionString="Data Source=YYYY;Initial Catalog=XXXX;User ID=XXXXX;Password=XXXXX;" />

</connectionStrings>

Data Source = YYYY - You need to use the server address listed in "Database server" field when you were creating your database in Plesk.

For security reasons, we have changed specific settings with XXXX

NOTE: You MUST include the full database name, which consist of the user prefix and the name that you have given, for example XXX_DB

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Support-Agent

  2. Posted
  3. Updated

Comments