Results 1 to 2 of 2

Thread: Stored procedure problem

  1. #1
    Join Date
    Nov 2003
    Posts
    3

    Question Stored procedure problem

    Can a stored procedure calls a column name? For example, I have written a procedure namely "Myproc" and a table which contain a column namely "Password" as below:
    CREATE PROCEDURE dbo.Myproc (@PswdString Varchar(255))

    Can I execute the procedure by written as: EXEC dbo.Myproc @PswdString = 'Password' ????

    Can I execute this procedure by using trigger?
    CREATE TRIGGER admin_trigger
    ON dbo.Admin
    FOR update ,insert
    AS
    EXEC dbo.BasicClientUser @PwdString = 'Password'

    Thanks a lot!!!!

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Yes you can. You are passing a paramteter to a stored procedure.

Posting Permissions

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