Skip to content

Determine SQL Dialect from Cursor? #983

Closed Answered by v-chojas
jordantshaw asked this question in Q&A
Discussion options

You must be logged in to vote

You can use cursor.connection.getinfo to query some properties which could give you a hint what the connection is for (https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlgetinfo-function - see SQL_DRIVER_NAME, SQL_DBMS_NAME etc..) But I would really recommend DBMS-specific stuff be put at a different layer so you don't need to query this information in the first place.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gordthompson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants