1.在用windows模式登陆sql server 数据库 简历一个student的数据库,然后新建查询: create table student ( id int auto_increment primary key, name ) not null, sex ) not null, age ) not null, ) 2.在vs中新建一个项目,输入一下代码: using System; using System.Collections.Generic; using System.Linq;…
今天公司SQL Server数据库无意间变为SINGLE_USER模式了,而且使用如下语句切换回MULTI_USER失败: ALTER DATABASE [MyDB] SET MULTI_USER WITH ROLLBACK IMMEDIATE 报错: Msg 5064, Level 16, State 1, Line 1 Changes to the state or options of database 'MyDB' cannot be made at this time. The dat…