Every time I create a stored procedure it is defaulting to the “master” database. How do I make a SP specific to database “uploads”?
CREATE PROCEDURE testInsert2
AS
INSERT INTO [uploads].dbo.[aspnet_uploads]
(userID, fileName, userName)
VALUES
('Test1', 'Test2', 'Test3')
You need to be in the context of that database.