Hi;
I'm a novice, and I need to set permissions in SQL Server 2005 (with Server Mgmt Studio)
so that I can create, modify, and delete tables in a database through my ASP.NET application.
I can't seem to find anything that spells this out - step-by-step - so that any idiot can follow it.
This is my error message:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
### Exception Number : 262
### (CREATE TABLE permission denied in database "MyDBase''.)
### Message: CREATE TABLE permission denied in database "MyDBase''. Number: 262
### Procedure: Server: SYS-EML8V3\SQL2005D01
### Source: .Net SqlClient Data Provider State: 1 Severity: 14 LineNumber: 1
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Does anyone have a link to something that might give me a clue?
THANKS!
Well, use some kind of tool, for example,Microsoft SQL Server Management Studio Express, and give to your user used in connection string appropriate right:
(under Databases -> Your Database -> Security -> Users)
|||
Dejan Vesic:
Well, use some kind of tool, for example,Microsoft SQL Server Management Studio Express, and give to your user used in connection string appropriate right:
(under Databases -> Your Database -> Security -> Users)
Hi Dejan;
I tried this with the ASPNET user, but it didn't work - I got the same error.
I must be missing something. Is there another user that I'm supposed to be setting this for?
THANKS!
|||
wASP:
Dejan Vesic:
Well, use some kind of tool, for example,Microsoft SQL Server Management Studio Express, and give to your user used in connection string appropriate right:
(under Databases -> Your Database -> Security -> Users)Hi Dejan;
I tried this with the ASPNET user, but it didn't work - I got the same error.
I must be missing something. Is there another user that I'm supposed to be setting this for?
THANKS!
UPDATE ...
I've given the ASPNET user the "sysadmin" Server role - and it seems to have worked.
My next question is: Have I done something stupid (in terms of compromising security)?
THANKS!
|||
The answer is yes you can use either DBO(database owner) which is still risky but less so than Sysdamin or DDL admin. Try the link below for details. Hope this helps.
http://msdn2.microsoft.com/en-us/library/ms189612.aspx
|||
Caddre:
The answer is yes you can use either DBO(database owner) which is still risky but less so than Sysdamin or DDL admin. Try the link below for details. Hope this helps.
http://msdn2.microsoft.com/en-us/library/ms189612.aspx
Hi Caddre;
I think I've gotten everything set OK now - thanks to yourself and Dejan - and the link to that article (which I will save).
THANKS AGAIN!
wASP:
Caddre:
The answer is yes you can use either DBO(database owner) which is still risky but less so than Sysdamin or DDL admin. Try the link below for details. Hope this helps.
http://msdn2.microsoft.com/en-us/library/ms189612.aspx
Hi Caddre;
I think I've gotten everything set OK now - thanks to yourself and Dejan - and the link to that article (which I will save).
THANKS AGAIN!
I am glad I could help.