conn .ConnectionString = @Server=LAPTOP-F93UMPMII;Initial Catalog=student;Integrated Security=ture;有什么错误
时间: 2024-03-23 11:42:46 浏览: 121
这段代码中出现了一个拼写错误,将 `ture` 写成了 `true`。正确的写法应该是 `Integrated Security=true`。因此,应该将代码改为:
```
conn.ConnectionString = @"Server=LAPTOP-F93UMPMII;Initial Catalog=student;Integrated Security=true;";
```
阅读全文