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
Post a Comment