Results 1 to 4 of 4

Thread: How do I prompt for user input using SQL Server 2000

  1. #1
    Join Date
    Mar 2004
    Posts
    2

    How do I prompt for user input using SQL Server 2000

    I know how to do it in Oracle using PL/SQL.

    ACCEPT <<variable>> PROMPT 'ENTER VARIABLE: '

    Is there a similar construct in TSQL?

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    create stored procedure and pass parameter.

  3. #3
    Join Date
    Mar 2004
    Posts
    2
    I have a SP, I want it to pause and request the parameter from the user. You can do this in Oracle PL/SQL, but evidently you can't in TSQL

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Unfortunately you can't do it in T-SQL.

Posting Permissions

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