I have a VB.Net project with SQL Server DB. I want to add few Crystal reports to it. I'm using a connection string inside a module which i use every where in my project and its very useful since i can change the login details at a single point.
Same way, is it possible to have a common global connection string somewhere embedded inside (Ex. module) my project (Not a DSN) or is possible to use the above conn string.
If it's possible, what is the correct method of doing it and i would be grateful, if someone can post a sample code.
Code:
connString As String = "Data Source=192.168.1.11,1433;Network Library=DBMSSOCN;Initial Catalog=MY_DB;User Id=sa;Password = abc@1234.;" 'global connection string
If it's possible, what is the correct method of doing it and i would be grateful, if someone can post a sample code.