2. turn on SQL authentication, add a user account, then use a connection string like
"Server=YourServerName;Database=YourDBName;UID=YourLoginID;PWD=YourPassword;"
1 add ASPNET account to your database
在SQL Server在安全设置改为windows\SQL Server 验证方式
我的连接语句:
//连接语句
SqlConnection myConnection = new SqlConnection("server=(local);database=Res;Trusted_Connection=yes");
错误提示如下:
--------------------------------------------------------------------------------
版本信息: Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0
2.如果:
turn on SQL authentication, add a user account, then use a connection string like
"Server=YourServerName;Database=YourDBName;UID=YourLoginID;PWD=YourPassword;"
我的连接语句:
//连接语句
SqlConnection myConnection = new SqlConnection("server=(local);database=Res;UID=ASPNET;PWD=");