Paul Nielsen
pauln at sqlserverbible.com
Thu Mar 20 10:51:12 CDT 2008
Just to clarify, if the statement accesses a data source (has a from clause) use select, if not use set. -Paul -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 20, 2008 8:05 AM To: Discussion concerning MS SQL Server Subject: Re: [dba-SQLServer] Diving off the deep end When assigning to a variable you must begin the statement with either SET @VAR = 'ABC' or SELECT @var = 'abc'. A. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com __________ NOD32 2963 (20080320) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com