Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: what does the second @@error return?

    Select 'xyz' will not return any error.

    so @@error return 0

  • RE: Dynamic SQL

    we can also do it like.........

    declare @sql varchar(100)

    Set @sql = 'declare @cnt as int; Select @cnt=count(*) from ' + @tablevariable +'; SELECT @cnt'

    Exec (@sql)

    I think it was old question...

Viewing 2 posts - 1 through 2 (of 2 total)