Getting the columns
-
Can anyone tell me how to retrieve the column names in a table?
Best Regards, M. J. Jaya Chitra
-
Can anyone tell me how to retrieve the column names in a table?
Best Regards, M. J. Jaya Chitra
If you are using sql server then you can use the following query: SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'name_of_the_table'
#region signature my articles #endregion
-
If you are using sql server then you can use the following query: SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'name_of_the_table'
#region signature my articles #endregion
-
Yes, it is. Just make sure you are performing the query against the database that contains your table
#region signature my articles #endregion
-
Can anyone tell me how to retrieve the column names in a table?
Best Regards, M. J. Jaya Chitra
-
Can anyone tell me how to retrieve the column names in a table?
Best Regards, M. J. Jaya Chitra
-
Yes, it is. Just make sure you are performing the query against the database that contains your table
#region signature my articles #endregion
Thanks a lot. It is working fine.
Best Regards, M. J. Jaya Chitra
-
Thanks a lot. It is working fine.
Best Regards, M. J. Jaya Chitra
You are welcome :)
#region signature my articles #endregion
-
Can anyone tell me how to retrieve the column names in a table?
Best Regards, M. J. Jaya Chitra
Hi Jaya, For a simple solution try this sp_help '' Senthil
-
hi try this qry select name from syscolumns where id= (select id from sysobjects where name=)