Disregard

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



disregard this
"MikeJ" <vettes_n_jets@xxxxxxxxxxxxx> wrote in message
news:6P4qi.29$591.25@xxxxxxxxxxxxxxxxxxxxxxx
hi...i would like to know best practice when assigning a value to a
variable example below

set
or
select

declare @var1 varchar(25)
set @var1='abc'
select @var1='abc'

to me
set is implicit
select implies conditions

i see both used all over the place here at my new company....
so witch is better practice

tks
MJ



.



Relevant Pages

  • Re: general question
    ... declare @var1 varchar ... set is implicit ... select implies conditions ...
    (comp.databases.ms-sqlserver)
  • Re: FOR070.DAT files appearing
    ... > in the header then they couldn't be picked up. ... Nothing should be left to implicit. ... since Fortran has required. ... Declare before use. ...
    (comp.os.vms)
  • Re: Is cast operator unary or binary? How many operands?
    ... using implicit int AND implicit extern. ... distinguishable from other identifiers by context. ... declare f as function taking one argument of type int, ... If one attempts to use a conventional scanner and parser generator ...
    (comp.lang.c)
  • When to Declare an External Function as EXTERNAL in a Module ??
    ... End Subroutine Test ... implicit double precision ... then DO NOT declare the function ...
    (comp.lang.fortran)
  • Re: source check
    ... The whole idea behind 'implicit none' is to force you to declare ... The compiler will catch the substitution of 'rl' for 'r1' ... ... Only by seeing how it was used in the code could I deduce ...
    (comp.lang.fortran)