Selecting Limited Column From Table


i have 1000 columns in table want select first 400 columns

what is the syntax  



   reading
maanish chandra kumar

you have construct dynamic sql statement required column names this. know column names , follow particular pattern c1,c2... etc?

if yes easy construct sql statement, otherwise have to call sp_columns <tablename> list of columns , construct dynamic sql statement needed


this posting provided "as is" no warranties, , confers no rights


SQL Server  >  SQL Server Data Access



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........