Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Not Selecting All Columns in select query Expand / Collapse
Posted Monday, August 3, 2009 10:17 PM


Group: General Forum Members
Last Login: Tuesday, April 27, 2010 1:12 AM
Points: 133, Visits: 48
I am having one temporary table with dynamic columns..... means numbers of columns changes as per conditions.

when i m using select query like:
"SELECT * FROM ##Temp123;"

but i dont want that all columns will come. I am knowing the column names which i dont want that they come, but dont know how to stop them for coming while using select query.

Please help me

Thanks in advance
Post #764565
Posted Monday, August 3, 2009 10:39 PM



Group: General Forum Members
Last Login: Thursday, December 17, 2015 11:50 AM
Points: 6,050, Visits: 5,314
SELECT columnname1, someothercolumnname, yetanothercolumnname
FROM ##Temp123


Post #764570
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse