G
Guest
I was wondering how you can place a connection string to a database in a
windows application in one place so that it can be referenced easily from
anyplace in the code where a database connection is needed. I want to be
able to access the string value after it has been deployed so I can change
the string to point to any database. Should I use some sort of include file?
Or something else? I know in ASP.NET you can use an application variable.
But what do you use for a Windows application?
windows application in one place so that it can be referenced easily from
anyplace in the code where a database connection is needed. I want to be
able to access the string value after it has been deployed so I can change
the string to point to any database. Should I use some sort of include file?
Or something else? I know in ASP.NET you can use an application variable.
But what do you use for a Windows application?