| | |
SQL Permissions
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2007
Posts: 1
Reputation:
Solved Threads: 0
Hi all,
I am writing a web interface which uses a MSSQL Server 2000 database. I have checked and double checked all permissions and can't find any problems but when I run a
I get the 'Permission denied for `sales` database `dbasename` database owner `sqluser`
I connect with the string
and this connects fine, so I am attempting to select all the components from a table that the user I connect with owns. As a sideline, I can create tables, but cannot read them in any way.
Any advice would be appreciated.
Thanks
I am writing a web interface which uses a MSSQL Server 2000 database. I have checked and double checked all permissions and can't find any problems but when I run a
MS SQL Syntax (Toggle Plain Text)
SELECT * FROM sales
I connect with the string
MS SQL Syntax (Toggle Plain Text)
mssql_connect("server","sqluser","passwd");
Any advice would be appreciated.
Thanks
•
•
•
•
Hi all,
I am writing a web interface which uses a MSSQL Server 2000 database. I have checked and double checked all permissions and can't find any problems but when I run a
I get the 'Permission denied for `sales` database `dbasename` database owner `sqluser`MS SQL Syntax (Toggle Plain Text)
SELECT * FROM sales
I connect with the string
and this connects fine, so I am attempting to select all the components from a table that the user I connect with owns. As a sideline, I can create tables, but cannot read them in any way.MS SQL Syntax (Toggle Plain Text)
mssql_connect("server","sqluser","passwd");
Any advice would be appreciated.
Thanks
sql Syntax (Toggle Plain Text)
GRANT SELECT on sales to sqluser
If you look up the grant function on msdn you can finely tune the privileges for each table/database/user/whatever.
Note to self... pocket cup
![]() |
Similar Threads
- Connecting to a SQL server on another XP computer (VB.NET)
- SQL 2000 - getting data from two databases, same server (MS SQL)
- SQL Server Netwoking Setup (C#)
- Setting Roles and Users in MS SQL (MS SQL)
- Loops in Sql Server Triggers and Stored Procedures (ASP.NET)
- Help With SQL Server Agent (MS SQL)
- question about connecting odbc to sql through php script (PHP)
- SQL server error: 18452 - connection to SQL error (Windows NT / 2000 / XP)
Other Threads in the MS SQL Forum
- Previous Thread: How to print tables in SQL Server 2005
- Next Thread: query for creating report group by weeks (with start date and end date of the week)
Views: 2570 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last autogrowth business connectingtodatabaseinuse count cursor data database dateadd datepart day" dbsize deadlock delete_trigger exploit getdate hack highperformancecomputing hpc hpcserver2008 ibm iis limit loop maximum microsoft ms mssql multiple multithreading news number password permission position query reporting result security server services sets single source sql sql-injection sqlserver sqlserver2005 subtype supercomputing supertype tables uniqueid update view weekday





