开发者

what does curly braces mean in web.config file?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜