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)
 declaring local variables as column data type

Author  Topic 

amitgujrathi
Starting Member

17 Posts

Posted - 2004-05-27 : 17:28:24
Does any one know :
-- How to declare local variable in a function/stored procedure as the data type of a column of an existing table?
(for example: it can be done in oracle as "declare p_local_var <tablename>.<Columnname>%Type"
-- Is it at all possible in MS SQL Server 2000?
Thanks in advance,
Amit

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-05-27 : 17:29:26
Please don't post multiple times:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=35606

Tara
Go to Top of Page
   

- Advertisement -