-
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!!!!
-
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
-
Forum Rules
|
|