Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16017

How to set a global connection string for all crystal reports in my project

$
0
0
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.

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
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.

Viewing all articles
Browse latest Browse all 16017

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>