How is the option CommandType.Tabledirect used unlike CommandType.StoredProcedure or CommandType.Text?
How is the option CommandType.Tabledirect used unlike CommandType.StoredProcedure or CommandType.Text ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CommandType contains names that specifies how a command string is interpreted.
CommandType.Textfor an SQL text command. (Default.)CommandType.StoredProcedurefor the name of a stored procedure.CommandType.TableDirectfor the name of a table.All rows and columns of the named table will be returned when you call one of the Execute methods.
NOTE: TableDirect is only supported by the .NET Framework Data Provider for OLE DB. Multiple table access is not supported when CommandType is set to TableDirect.
Sample example how it is been used:
Insert/Update