I have a UDL file that points to the database on SQL Server 2008. I want to point out the ULL file only through a number of configurations without using App.config. Can anyone help me with it?
Thanks
where you need a connection, like the one below Use the helpful method (in a common assembly). The path of the .usl file can be stored in your app.config.
public static string CreateConnectionString (string udlFileName) {var connStrBld = new OleDbConnectionStringBuilder (); ConnStrBld.FileName = udlFileName; Return connStrBld.ToString (); }
Comments
Post a Comment