|
|
Question : select into/ bulkcopy
|
|
I've never had to care about this - apparently it is bundled in with the recovery option you select when creating a DB since SQL 2000. My SQL life started with 2000 and all the DBs here at work are full recovery. A 3rd party app function tells me to ensure it is on/off depending on how I want to use the function, I know how to check using sp_dboption but I'm not 100% sure what it is!
I've Googled but keep coming up against "want to read this article, pay us and subscribe!"
Thanks.
|
Answer : select into/ bulkcopy
|
|
Hi,
Select into/bulk copy means using bulk tools to import (insert) data. There is a bcp - bulk copy program.
For instance, a normal insert looks like this insert tablename ( col1, col2, col3 ) values ( col1value, col2value, col3value )
Select into looks like this: select * into destinationtablename from sourcetablename where wherecondition.
In one implicit transaction, a new table is created, and multiple rows inserted.
Another way is insert tablename select col2, col2, col3 from sourcetablename
HTH David
PS Thanks for clarifying your question.
|
|
|
|
|