SQL Helper


How to get datatable Name from database 
Method1:


" SELECT table_Name from information_schema.tables where table_type='BASE TABLE'";

Method2:

“SELECT Name FROM dbo.sysobjects where xtype='U'";

How to get Column Name from database table

"select column_Name from information_schema.column “

How to get datatable Name,Column Name from database table

"select table_Name,column_Name from information_schema.column“

Comments

Popular posts from this blog

How to retain the data annotations or class during modify a table in the database

Interview Questions

AJAX CONTROL