-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mheavin snow 620438 net multi statements #644
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making these changes!
conn.ConnectionString = ConnectionString; | ||
conn.Open(); | ||
IDbCommand cmd = conn.CreateCommand(); | ||
cmd.CommandText = "ALTER SESSION SET MULTI_STATEMENT_COUNT = 3;"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect. Session parameter can only be used to turn multiple statements feature on/off, the valid values there can only be 0 or 1.
To set number of statements you have to set it through the parameter per query, as the following example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sfc-gh-mheavin take ODBC doc as a reference. https://docs.snowflake.com/en/developer-guide/odbc/odbc-using#specifying-the-number-of-statements-in-a-batch
Added a section for executing batch statements