打开数据库软件查询信息提示以下错误:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Data.SqlClient.SqlException: 无法打开登录 'lysoft' 中请求的数据库。登录失败。
用户 'sa' 登录失败。
at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
at Notepad.Object.Clinic.ClinicCharge.Select(String SearchType, String SendMed, String BeginDate, String EndDate, String Num, String CardID, String KAunit, String DoctorID, String Name, String OfficeID, String Square, String Manager, String Cancellation, String Collect, String Datetime)
at Notepad.Winform.Clinic.frmChargeSearch.SearchData()
at Notepad.Winform.Clinic.frmChargeSearch.toolBar1_ButtonClick(Object sender, ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
医院管理信息系统
Assembly Version: 1.0.3351.17294
Win32 Version: 1.0.3351.17294
CodeBase: file:///E:/重庆耀福科技有限公司/HIS/Debug/医院管理信息系统.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
MSSQL问题。
答案:1 悬赏:40
解决时间 2021-04-28 18:38
- 提问者网友:很好的背叛
- 2021-04-27 21:58
最佳答案
- 二级知识专家网友:青灯壁纸妹
- 2021-04-27 22:45
System.Data.SqlClient.SqlException: 无法打开登录 'lysoft' 中请求的数据库。登录失败。
用户 'sa' 登录失败。
说明帐号密码不对,再仔细对下,还有设置到windows与sql模式登录
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯