G
Guest
Hello,
I have a complex query on sqlsrv2000 that runs better if I use an
intermediate #temp table. I have tried using a dataAdapter, Command Object
to
da.SelectCommand.CommandText = "Select * Into #temp From tblx"
da.SelectCommand.ExecuteNonQuery
But I get an error. The goal is to then use that same #temp table in a
subsquent query. I am thinking that since I am still on the same connection
- the #temp table would persist. But that does not seem to be the case.
Any suggestions appreciated if this is doable and how - or if I am limited to
using a stored Proc are table on the disk for something like this.
Thanks,
Rich
I have a complex query on sqlsrv2000 that runs better if I use an
intermediate #temp table. I have tried using a dataAdapter, Command Object
to
da.SelectCommand.CommandText = "Select * Into #temp From tblx"
da.SelectCommand.ExecuteNonQuery
But I get an error. The goal is to then use that same #temp table in a
subsquent query. I am thinking that since I am still on the same connection
- the #temp table would persist. But that does not seem to be the case.
Any suggestions appreciated if this is doable and how - or if I am limited to
using a stored Proc are table on the disk for something like this.
Thanks,
Rich