Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Store result in Variable of dynamic query

    --you can declare, execute,select from within a variable but you need to include ';' between statements
    --this is what we call it programming in SQL!
    DECLARE @VEXE VARCHAR(100),@COUNTS INT,@TBL_NAME VARCHAR(100)

Viewing post 1 (of 1 total)