Hi,
What would the proper syntax be if I wanted to replace 'smith' with the current user name in the following INSERT statement?
INSERT INTO smith.tblTemp
SELECT * FROM tblSource
This statement is part of my stored procedure that allows whoever's executing it to create a table and then insert values into it.
What would the proper syntax be if I wanted to replace 'smith' with the current user name in the following INSERT statement?
INSERT INTO smith.tblTemp
SELECT * FROM tblSource
This statement is part of my stored procedure that allows whoever's executing it to create a table and then insert values into it.