Dropping SQL Server database through C#

后端 未结 7 1949
误落风尘
误落风尘 2020-12-29 07:24

I am using this code to delete a database through C#

Int32 result = 0;

try
{
        String Connectionstring = CCMMUtility.CreateConnectionString(false, txt         


        
7条回答
  •  遥遥无期
    2020-12-29 08:08

    Just don't use DB name in connection string.

    "Data Source=.\SQLEXPRESS;Integrated Security=True;"
    

提交回复
热议问题