05-09-2008 02:02 PM
05-12-2008 01:20 PM
05-12-2008 01:53 PM
05-13-2008 05:27 PM
03-27-2009 05:04 PM
Workaround for when you get -2147467259 when writing to a LOCAL SQL database and you lose connection to the REMOTE DHCP server:
I am writing to a local SQL Server Express database (with TestStand). Periodically we have an application that pushes the test station data to the main SQL Server. When I pulled the network cable, I got Error -2147467259 even though I was only writing locally. I was able to change the Data Link Properties in the UDL file editor to get around this error dialog.
Instead of "MachineName\SQLExpress", I used "localhost\SQLExpress" for the server name. This could be somehow related to bypassing the DHCP based machine name.
Here was the error message:
==================================================
DETAILS:
An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'
An error occurred executing a statement.
Schema: SQL Server Stored Proc (NI)
Statement: UUT_RESULT.
Description: Connection failure
Number: -2147467259
NativeError: 0
SQLState: 08S01
Reported by: Microsoft OLE DB Provider for SQL Server
Source: TSDBLog
==================================================
ERROR CODE:
-2147467259; User-defined error code.
Possible System Error: Unspecified error
==================================================
LOCATION:
Step 'Log Results to Database' of sequence 'Log To Database' in 'Database.seq'