delphi ADOCONNECTION abnormal interception

elphi ADOCONNECTION wrongly blocked error box Title: Debugger Exception Notification content: Project KJXX.exe raised exception class EOleException with message '[DBNETLIB] [ConnectionOpen (Connect ()).] SQLServer does not exist or access denied. '.Process stopped. Use Step or Run to continue. 1, this error is to perform what is sent? 2. How do you block?

------solution--------------------

Whether there is a connection string if the problem is a network problem username and password if there is a problem ... the except the try
------ -------------------- Solutions

This is a can not find SQL Server, IP / computer name wrong, or the network is, or service clamor firewall ... username / password error is prompted for a failure to perform ... 1 Connected:. = True or when Open method; ADOQuery.open or other data set, such as when (sets Connected: = True) 2.try ADOConnection.Connected: = True; except on E: Exception Do Begin MessageDlg (e.Message, mtError, [mbOk], 0 ); End; End;
------ solutions --------------------
tryexceptend; during commissioning will still pop up, you can directly run the EXE the

Guess you like

Origin www.cnblogs.com/jijm123/p/11304774.html