Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok, I am running SQL 2000, and I have started a new project writing a ASP.NET page for a photo gallery

 

This is the first time I have had to design a sql database on my own. I am able to connect to the database, but when I run the SQLDataAdapter.Fill command I get this error:

 

Exception Details: System.Data.SqlClient.SqlException: SELECT permission denied on object 'PhotoList', database 'H_bdaniel5', owner 'dbo'.

 

Can someone assist me in setting up the SQL permissions and security stuff, I don't know how to do it.

Posted
I think you have to give the dbo user db_owner permission as the db_datareader and db_datawriter do not allow your query. I had to do this to get a new app running with a special user I added to the db for web application access.
  • *Gurus*
Posted
The command above is the line of T-SQL sent to Microsoft SQL Server by Enterprise Manager or any other client to set the appropriate permissions. This is the command line version, while EM would be the GUI version. They do the same thing, but seeing how the command line is much faster it should be used instead.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...