Dear Gurus,
Is there anyway I can copy the structure of a table into a temporary table
without getting constraint and identity information?
currently I am trying this on a table that has an identity column:
select *
into #businessInfo
from tblBusinessInfo
where 1=0
This first statement gets me the identity column. Later, depending on the
results of other queries, I need to populate this table with non-sequential
values in the identity column and then export it. Needless to say, I can't
do inserts because the identity is being copied to the temporary table. I
also can't manually build the temporary table because I need to be able to
accomidate changing table structures.
Am I thinking about this wrong? Can this be done with a SQL 7 table
variable?
Please help!
Luke