Results 1 to 2 of 2

Thread: freak

  1. #1
    freak Guest

    Default freak

    HELP HELP i want to pass a tablename as parameter to a stored procedure. How can i do that<BR>Select * from @param doesn&#039t work!!!

  2. #2
    Join Date
    Dec 1969

    Default RE: freak

    You need to use dynamic SQL:<BR><BR>EXEC("SELECT * FROM " + @param)<BR><BR>Dunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts