select

  • Hi all,

    I would like to make the SQL-SELECT command when I can use <table> as Variable sord of:

    DECLARE @myvar cursor --

    SET @myvar = 'orders' CURSOR SCROLL DYNAMIC

    SELECT * FROM "@myvar"

    GO

    Is it possible ?

  • Sorry,

    for stupid question.

    sp_executesql - ia an answer.

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

You must be logged in to reply to this topic. Login to reply