November 5, 2008 at 3:36 am
Hi,
I use a VB 6.0 application. At run time I need to create a temporary table, to copy the contents from a SQL table which has more than 7 digit number of records.
I need to perform operations on the temporary table created. And then finally truncate the temporary table once all operations are done. Please help me with the SP that I have to write.
November 5, 2008 at 3:45 am
PADMAPRIYA3.G (11/5/2008)
Hi,I use a VB 6.0 application. At run time I need to create a temporary table, to copy the contents from a SQL table which has more than 7 digit number of records.
I need to perform operations on the temporary table created. And then finally truncate the temporary table once all operations are done. Please help me with the SP that I have to write.
You are not require to create any temp tables. Use recordsets, that will work faster than the tables, if you are doing all these on the Visual basic 6 platform
kshitij kumar
kshitij@krayknot.com
www.krayknot.com
November 5, 2008 at 10:14 pm
PADMAPRIYA3.G (11/5/2008)
I need to perform operations on the temporary table created.
What kind of operations?
--Jeff Moden
Change is inevitable... Change for the better is not.
November 5, 2008 at 11:16 pm
I need to select operations which are needed in different functions in the VB 6.0 application. I have to write out them to a CSV file as well.
November 6, 2008 at 6:01 am
Then, I have to agree with kshitij... unless I'm missing something, those all sound like "read" operations and there's no need for the overhead of building a 1+ million row temp table... just read from the original tables.
That notwithstanding, you can used SELECT/INTO to quickly build a Temp Table. And, no... it doesn't freeze TempDB... they fixed that way back in 6.5.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply