开发者

what does curly braces mean in web.config file?

开发者 https://www.devze.com 2023-02-14 18:59 出处:网络
In my p开发者_StackOverflow中文版roject, connection string is like the following : connectionString=\"Server=localhost; Database={DatabaseName}; User Id=sa; password=sa\"

In my p开发者_StackOverflow中文版roject, connection string is like the following :

connectionString="Server=localhost; Database={DatabaseName}; User Id=sa; password=sa"

What does {DatabaseName} mean? If I want to change the DatabaseName to some other database name, where should I make the change?


Remove the curly braces and put in your database name.

For example:

     <add key="ConnectionString" value="server=localhost;database=Northwind;uid=sa;password=admin;" />
0

精彩评论

暂无评论...
验证码 换一张
取 消