我在计算机上安装了SQL Express以便练习创建表并进行修改。我在Visual Studio中编写了一个网页,基本上是从SQLEXPRESS的表中选择*,但我无法使连接字符串起作用。请帮忙。
我的连接字符串如下:
"Data Source = localhost \ SQLEXPRESS; Initial Catalog = test; User Id = xaa9-PC \ xaa9; Password = abcd;"
错误消息:
查询为select * from tblCustomers where username='johndoe' error is Login failed for user 'x309-PC\x309'。
描述:执行当前Web请求时发生未处理的异常。请查看堆栈跟踪以获取有关错误和代码源的更多信息。
例外详细信息:System.Exception: 查询为select * from tblCustomers where username='johndoe' error is Login failed for user 'x309-PC\x309'。
我的连接字符串如下:
"Data Source = localhost \ SQLEXPRESS; Initial Catalog = test; User Id = xaa9-PC \ xaa9; Password = abcd;"
错误消息:
查询为select * from tblCustomers where username='johndoe' error is Login failed for user 'x309-PC\x309'。
描述:执行当前Web请求时发生未处理的异常。请查看堆栈跟踪以获取有关错误和代码源的更多信息。
例外详细信息:System.Exception: 查询为select * from tblCustomers where username='johndoe' error is Login failed for user 'x309-PC\x309'。