Click here to Skip to main content
15,891,633 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalproblem with stored procedue Pin
eyeseetee27-Mar-08 3:30
eyeseetee27-Mar-08 3:30 
GeneralRe: problem with stored procedue Pin
Jesse Squire27-Mar-08 3:32
Jesse Squire27-Mar-08 3:32 
GeneralRe: problem with stored procedue Pin
eyeseetee27-Mar-08 3:48
eyeseetee27-Mar-08 3:48 
GeneralRe: problem with stored procedue ALSO Pin
eyeseetee27-Mar-08 3:50
eyeseetee27-Mar-08 3:50 
GeneralRe: problem with stored procedue ALSO Pin
Jesse Squire27-Mar-08 3:55
Jesse Squire27-Mar-08 3:55 
GeneralRe: problem with stored procedue Pin
Jesse Squire27-Mar-08 3:53
Jesse Squire27-Mar-08 3:53 
GeneralRe: problem with stored procedue Pin
eyeseetee27-Mar-08 4:07
eyeseetee27-Mar-08 4:07 
GeneralRe: problem with stored procedue Pin
Jesse Squire27-Mar-08 4:35
Jesse Squire27-Mar-08 4:35 
Not a problem. I guess that I should first ask whether we're dealing with SQL Server 2005 or SQL Server 2000. I've been assuming 2005. Unfortunately, I don't have a copy of 2000 handy to test with, so if you're using it, you'll have to forgive me, but my information may be slightly off due to the version differences.

If you open SQL Management Studio, and click through to your database, you'll see a folder titled Security. In that folder, you'll see a subfolder called Roles. Under that folder are two subfolders, Database Roles and Application Roles. Database Roles contains the standard SQL Server roles [db_datareader, db_datawriter, dbo, etc].

The Application Roles folder will be initially empty. It exists to hold any custom roles that you use for items in your database. For example, you could create a role called .netman and assign it permissions on specific database objects.

The way I see it, you have a couple of options. You can create an application role for your website, and assign the permissions that you need on objects, for which you'll have to do a grant when creating your new table. You could also simply assign a grant to one or more of the standard roles when you create your new table. For example granting insert to db_datawriter. In either case, you would have to make sure that the login used by your web site held the required role, either built-in or custom.

I suggested using a custom role simply because it allows you more granularity when assigning rights/grants.

I hope that helps to clarify a bit. Smile | :)

  --Jesse
"... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

GeneralRe: problem with stored procedue Pin
eyeseetee27-Mar-08 4:48
eyeseetee27-Mar-08 4:48 
Questionregarding iframe with word document in a webpage Pin
saikiran27-Mar-08 3:21
saikiran27-Mar-08 3:21 
GeneralRe: regarding iframe with word document in a webpage Pin
Jesse Squire27-Mar-08 3:30
Jesse Squire27-Mar-08 3:30 
GeneralRe: regarding iframe with word document in a webpage Pin
saikiran27-Mar-08 3:45
saikiran27-Mar-08 3:45 
GeneralRe: regarding iframe with word document in a webpage Pin
Jesse Squire27-Mar-08 3:50
Jesse Squire27-Mar-08 3:50 
General[Message Deleted] Pin
saikiran27-Mar-08 4:10
saikiran27-Mar-08 4:10 
GeneralRe: regarding iframe with word document in a webpage Pin
Jesse Squire27-Mar-08 4:38
Jesse Squire27-Mar-08 4:38 
QuestionChaning the DLL Name while Publishing the Website Pin
danasegaranea27-Mar-08 3:17
danasegaranea27-Mar-08 3:17 
GeneralRe: Chaning the DLL Name while Publishing the Website Pin
Declan Bright27-Mar-08 4:28
Declan Bright27-Mar-08 4:28 
Questionhow to use cultural Info class for ... Pin
koolprasad200327-Mar-08 2:33
professionalkoolprasad200327-Mar-08 2:33 
AnswerRe: how to use cultural Info class for ... Pin
Jesse Squire27-Mar-08 2:48
Jesse Squire27-Mar-08 2:48 
QuestionView state for dynamic ASP.net controls [modified] Pin
ILLUSIONARY LIFE27-Mar-08 2:21
ILLUSIONARY LIFE27-Mar-08 2:21 
GeneralRe: View state for dynamic ASP.net controls Pin
ILLUSIONARY LIFE27-Mar-08 2:37
ILLUSIONARY LIFE27-Mar-08 2:37 
GeneralRe: View state for dynamic ASP.net controls [modified] Pin
Jesse Squire27-Mar-08 2:45
Jesse Squire27-Mar-08 2:45 
GeneralAjax validation not working in Firefox Pin
new2pgrmg27-Mar-08 0:19
new2pgrmg27-Mar-08 0:19 
GeneralRe: Ajax validation not working in Firefox Pin
eyeseetee27-Mar-08 0:36
eyeseetee27-Mar-08 0:36 
Questionhow to use ajax in asp.net.. Pin
raushan_927-Mar-08 0:16
raushan_927-Mar-08 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.