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
 SQL Server Development (2000)
 What's the difference here?

Author  Topic 

elebetsamer
Starting Member

12 Posts

Posted - 2001-05-04 : 02:06:24
What is the difference between the Set and the Select command to assign a value to a local variable?

Declare @intNumber int

Set @intNumber = 5
OR
Select @intNumber = 5

   

- Advertisement -