Tuesday, 24 July 2012

Sql Server: CTAS Create table as select


Creating table from another data copy only the snytax but not the data

SELECT * FROM Customers

SELECT * INTO ImpCustomers FROM Customers WHERE 1=2

SELECT * FROM ImpCustomers

O/p:















DROP TABLE ImpCustomers 

Tags: Sql Server: CTAS Create table as select,Create, Copy

No comments:

Post a Comment

Parsing JSON w/ @ symbol in it

To read the json response like bellow @ concatenated with attribute                             '{ "@id": 1001, "@name&q...