There is also a System.Data.SQLClient namespace that is exclusively dedicated towards creating Microsoft SQL server database connections. The SqlConnection (.NET) are of 4 types this it self is the proof for customization option that is enabled by Microsoft. They are Standard Security, Trusted Connection and IP address that are the normal methods. But there is another method that is specifying the packet size. Let describe everything in a isolated manner
Standard Security
Data Source=SERVERNAME;Initial Catalog=DATABASENAME;User ID=DATABASE USERNAME;Password=DATABASE PASSWORD;
Please note that in the connection string for SqlConnection (.NET) instead of the Data Source= SERVERNAME we can also use simply Server=SERVERNAME, both produce the same results.
Trusted Connection
Data Source=SERVERNAME;Initial Catalog=DATABASENAME;Integrated Security=SSPI;
Where SSPI stands for Security Support Provider Interface, Provides a standard application interface to a number of security models.
Connect via an IP address
Data Source=1 92.168.40.30,1433;Network Library=DBMSSOCN;Initial Catalog=DATABASENAME;User ID=DATABASE USERNAME;Password=DATABASE PASSWORD;
AND FINALLY the Specifying packet size which is really the new concept in sqlconnection for .NET
Server=SERVERNAME;Database=DATABASENAME;User ID=DATABASE USERNAME;Password=DATABASE PASSWORD;Trusted_Connection=False;Packet Size=3999;
And remember any queries related to the database connection string please logon to
http://www.connectionstrings.com as i too have found the website most comprehensive for connections string references. And moreover the website has more fans also.
To earn money online is easy, our website finds it difficult to learn it
