Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

When CommandBehavior.KeyInfo is set, the IsHidden column in the GetSchemaTable table result has no value #1539

netnr started this conversation in General
Discussion options

Setting CommandBehavior.KeyInfo in SQLServer will include the primary key column (composite primary key), even if the column is not queried, and the IsHidden column is True

select Id,DvTitle from TempExample

image

MySQL
image

SQLServer
image

You must be logged in to vote

Replies: 1 comment

Comment options

CommandBehavior.KeyInfo isn't supported in MySqlConnector. (Based on https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-data-commandbehavior#notes-on-individual-enumeration-members, that enum member sounds like a very SQL-Server-specific flag.)

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
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /