Skip to content

PreparedStatements with DDL and SQL Server #1199

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

You must be logged in to vote

That's just DBMS/driver-specific variation ,which is normal for something as generic as ODBC.

https://learn.microsoft.com/en-us/sql/odbc/reference/develop-app/statement-parameters?view=sql-server-ver16
"Generally, parameters are valid only in Data Manipulation Language (DML) statements, and not in Data Definition Language (DDL) statements."

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #1198 on April 14, 2023 22:38.