当我已经在 mydb 中拥有所有东西并且除了能够连接到 mydb\wrk 之外我不想更改任何其他内容时,我需要能够连接到 mydb\wrk。
我可以使用以下连接字符串连接到我的数据库
Provider = SQLOLEDB.1; Password = ****; Persist Security Info = True;
User ID = sa; Initial Catalog = Master; Data Source = MyDb
Run Code Online (Sandbox Code Playgroud)
我想用这个:
Provider = SQLOLEDB.1; Password = ****; Persist Security Info = True;
User ID = sa; Initial Catalog = Master; Data Source = MyDb\ wrk
Run Code Online (Sandbox Code Playgroud)
我想在服务器上进行尽可能少的更改
sql-server ×1