getSQLStateType Method (SQLServerDatabaseMetaData)
Indicates whether the SQLSTATE that is returned by the SQLException.getSQLState method is X/Open (now known as Open Group) SQL CLI, SQL99 (JDBC 3.0), or SQL:2003 (JDBC 4.0).
Syntax
public int getSQLStateType()
Return Value
An int that indicates the type of SQLSTATE, which can be one of the following values:
For Java Runtime Environment version 5.0: If the xopenStates connection property is set to true, this method returns DatabaseMetaData.sqlStateXOpen. Otherwise, DatabaseMetaData.sqlStateSQL99.
For Java Runtime Environment version 6.0: If the xopenStates connection property is set to true, this method returns DatabaseMetaData.sqlStateXOpen. Otherwise, DatabaseMetaData.sqlStateSQL.
Exceptions
Remarks
This getSQLStateType method is specified by the getSQLStateType method in the java.sql.DatabaseMetaData interface.
See Also
SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members
SQLServerDatabaseMetaData Class
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for