You need to retrieve only schema information about the columns contained in a database table without retrieving data. Which of the following is the best way to retrieve it
A. Use the GetSchemaTable(. method of the DataReader in conjunction withCommandBehaviour.SchemaOnly
B. Use the SchemaOnly property of the Command class
C. Use the GetSchemaOnly(. method of the DataReader
D. You cannot retrieve only schema information without retrieving data
Answer:A
You need to retrieve only schema information about the columns contained in a database table without retrieving data. Which of the following is the best way to retrieve it
A. Use the GetSchemaTable(. method of the DataReader in conjunction withCommandBehaviour.SchemaOnly B. Use the SchemaOnly property of the Command class C. Use the GetSchemaOnly(. method of the DataReader D. You cannot retrieve only schema information without retrieving data