I'm having a terrible time trying to create stored procedures that are owned by a user (either the one I'm currently logged in with or logged in as SA and specifying the name). For example:
USE dbName
GO
CREATE PROCEDURE [dbUser].sp_CART_Total
(
@Param1 varchar(50),
@TaxParam money
)
AS
......
When I do this, I get an error message that says:
MSG2760, Level 16, State 1, Procedure sp_CART_Total, Line 3
The specified schema name "dbUser" either does not exist or you do not have permission to use it.
This even happens when I'm logged in as the friggin' SA account. What is going on?
Oh, I'm completely new to SQL2008. I've been using SQL2000 since 2001.
What am I missing?
Thanks,
Owen