Copy the structure of table without copying the Data
how can copy the structure of table without copying the Data using c#.net & sql-server2000 or 2005
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jaish MathewsRank #225 · 11K reputationPosted Jul 26, 2010, 10:30 AM EDT
One easy way is below query
SELECT *
INTO NewTableName
FROM SourceTable
WHERE 1 = 2
But this won't coy any constraints to new table