Connection strings for SQL Server

Connection string is a string that contains information about a data source and means of connection to it.
It is commonly used to connect database to web application.

Connection string with standard security:
Data Source=SQL_SERVER_IP,MSSQL_PORT;Initial Catalog=DATABASE_NAME;User Id=DATABASE_USER;Password=DATABASE_USER_PASSWORD;

Alternative syntax 1:
Server=SQL_SERVER_IP,MSSQL_PORT;Database=DATABASE_NAME;User ID=DATABASE_USER;Password=DATABASE_USER_PASSWORD;Trusted_Connection=False;

Alternative syntax 2:
Server=SQL_SERVER_IP,MSSQL_PORT;Database=DATABASE_NAME;uid=DATABASE_USER;pwd=DATABASE_USER_PASSWORD;

  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

How to connect to MSSQL database using SQL Server Management Studio?

To manage your MS SQL database using SQL Server Management Studio.SQL Server Management Studio...

SolidCP & MSPControl: How to backup MSSQL database via control panel

You can backup the entire MSSQL database from hosting control panel.Please follow the steps below...

SolidCP & MSPControl: Create MS SQL database

Please follow the steps below to create your MSSQL Server Database in control panel. * Please...

SolidCP & MSPControl: How to restore MSSQL database via control panel

You can restore the entire MSSQL database from the web hosting control panel.Please follow the...

How to backup and then store MSSQL database to older version

Rather than using the typical way to backup and restore your database, you will need to generate...