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 2005 Forums
 Transact-SQL (2005)
 Temp Tables

Author  Topic 

Edgemere5
Starting Member

4 Posts

Posted - 2010-10-09 : 11:39:42
A developer, more experienced than myself, insists on creating temp tables within a transaction. See the below example.
______________________________
Begin Tran
Create Table #Names (col1 int, col2 varchar(25))
COMMIT Tran
______________________________
This seems stupid to me, but is there any good reason for this?

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-10-09 : 13:07:50
if that is all they're doing inside the transaction, then it is a bad thing and they need to get out of the habit of using transactions unecessarily
Go to Top of Page
   

- Advertisement -