Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 can bulk insert dynamically define a temp table?

Author  Topic 

broniusm
Starting Member

7 Posts

Posted - 2004-08-19 : 12:39:27
In the same way I can do a select into #tmp to avoid having to create and define #tmp:
select * into #tmp from Users

..is there a way I can use bulk insert to determine and build my temp table destination?

I'm doing a bulk insert from a text file with a format file to describe its temporary table destination dimensions:
Bulk Insert #Tmp
from 'DataTest.txt'
with (FORMATFILE = 'MainImport.fmt')

..and it makes logical sense that I ought to be able to avoid "create table #tmp ( ... )" Is this possible?
   

- Advertisement -