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
 Transact-SQL (2000)
 creatign tables as @XYZ

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-08-08 : 07:38:19
ron prowse writes "im trying to debug improve a current stored proc that creates tables to hold data for look up purposes, but it does it by declaring the table like this :-

DECLARE @TClientTypeIds TABLE(ClientTypeId int not null primary key)

what i what to know is there any advantages to doign it this way over using CREATE TABLE #XXX (.......etc)

the major disadvantage is that its hell to debug..


Ron"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-08-08 : 12:37:36
Refer this
http://www.aspfaq.com/show.asp?id=2475

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -