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

Question: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

1.Use the GetSchemaTable(. method of the DataReader in conjunction withCommandBehaviour.SchemaOnly

2.Use the SchemaOnly property of the Command class

3.Use the GetSchemaOnly(. method of the DataReader

4. You cannot retrieve only schema information without retrieving data


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!