Why do you need a trigger to fetch username/password? Why can't you just use a simple query? If you're inserting username and password and want to get the identity of that record, you can get it in the insert statement:
SET NOCOUNT ON; INSERT INTO [table] (col1, col2, col3) VALUES (var1, var2, var3);SELECT ThePrimaryKey = @@IDENTITY; SET NOCOUNT OFF;
|