app.config file in C# for SQL Server 2005 in VS 2008

后端 未结 4 1076
南旧
南旧 2021-01-20 07:03

I have C# .net project with SQL Server 2008 written in Visual Studio 2008. There I used the following connection string to connect with SQL Server:

string co         


        
4条回答
  •  失恋的感觉
    2021-01-20 07:59

    You don't have to use app config to store a connection string - you could just pass a dynamically generated connection string to the SqlConnection constructor.

提交回复
热议问题