Hi all,
Following bug is backward-comatability issue with 2005 vs. 2000.
The script below runs perfectly on SQL2000, but fails on SQL2005.
Please note: I need to run it under an SQL-user, NOT a windows-login.
I grant this SQL-user a db_creator server-role.
What I do in this script is create a DB, create a stored-proc inside it,
and then try to run it.
Just to make things easier: If you uncomment the GRANT statement below, it
works fine.
Yet, on SQL2000 the GRANT was NOT required, PLUS:
The user is the db_owner, for crying-out-loud...
He should be able to run the proc he just created.
Again, let me stress this: When using Windows-Authentication user, the
script runs fine,
which seems also as an inconsistency in SQL2005.
So, is this a bug ?
Must I GRANT explicitly ?
Thanks
Meir
meir@clearforest.com
-
USE [master]
CREATE DATABASE kukuriku
Go
USE [kukuriku]
Go
CREATE PROCEDURE mySP1 AS
SELECT GetDate()
Go
Go
EXEC mySP1
Go
USE [master]
DROP DATABASE kukuriku
-
-
Leer las respuestas