Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

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

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

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


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, May 15, 2014 5:11 PM
Points: 6,067, Visits: 5,283
SELECT columnname1, someothercolumnname, yetanothercolumnname
FROM ##Temp123

Clear?

CEWII
Post #764570
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse