generateStateCode Method (SQLServerException)

Generates the JDBC state code based on the error number that is returned from the database.

public static java.lang.String generateStateCode(SQLServerConnection con,
                                                 int errNum,
                                                 int databaseState)

参数

con

An SQLServerConnection object.

errNum

An int that contains the error number.

databaseState

An int contains the database state.

返回值

A String that contains the state code.

另请参见

参考

SQLServerException Class

概念

SQLServerException Methods
SQLServerException Members