Click here to Skip to main content
15,896,111 members
Home / Discussions / Database
   

Database

 
GeneralInsert multiple Data into DB Pin
doerte23-Nov-03 14:59
doerte23-Nov-03 14:59 
GeneralRe: Insert multiple Data into DB Pin
Anonymous28-Nov-03 9:55
Anonymous28-Nov-03 9:55 
GeneralSQL suggestion requested Pin
pankajdaga22-Nov-03 4:01
pankajdaga22-Nov-03 4:01 
GeneralRe: SQL suggestion requested Pin
SimonS22-Nov-03 21:28
SimonS22-Nov-03 21:28 
GeneralADO plus sql database Pin
ranjjj21-Nov-03 3:44
ranjjj21-Nov-03 3:44 
GeneralRe: ADO plus sql database Pin
Husein22-Nov-03 3:08
Husein22-Nov-03 3:08 
GeneralRe: ADO plus sql database Pin
ranjjj22-Nov-03 19:02
ranjjj22-Nov-03 19:02 
GeneralRe: ADO plus sql database Pin
Husein23-Nov-03 0:47
Husein23-Nov-03 0:47 
PERMISSIONS function takes two optional parameters.
PERMISSIONS ( [ objectid [ , 'column' ] ] )

If you specify PERMISSIONS, as in the sample you provided in the previous message, you want to know if the user has certain statement permission. These include CREATE DATABASE (master db only), CREATE TABLE, etc. Their permissions are like this:

Bit Statement
0x1 CREATE DATABASE<br />
0x2 CREATE TABLE
etc etc

If you specify PERMISSIONS(objectid), then you want to know if the user can perform certain operation on the object, like SELECT, INSERT, DELETE, UPDATE, etc. Again the bits are the same as above 0x1 for SELECT ALL, 0x2 UPDTE ALL, etc.

If you also specify column name with objectid, you are checking if the user can SELECT, UPDATE or reference a certain column.

You should first figure out what is it that you want to check. That is, first determine what kind of permission you want to check for your user. After that build the query in the SQL Query Analyser, and if everything works fine, create a stored procedure that does the calculation and returns a scalar value.

I hope this solves your problem. For more information, check Books On-Line to see the list of the bits used with PERMISSIONS function.

Have fun,

Husein
GeneralRe: ADO plus sql database Pin
ranjjj23-Nov-03 2:36
ranjjj23-Nov-03 2:36 
Generalindex-by table as a return value of PL/SQL procedure Pin
misiek20-Nov-03 23:26
misiek20-Nov-03 23:26 
Generalado Pin
ranjjj20-Nov-03 18:43
ranjjj20-Nov-03 18:43 
GeneralRe: ado Pin
Husein22-Nov-03 3:10
Husein22-Nov-03 3:10 
GeneralRe: ado Pin
ranjjj22-Nov-03 18:54
ranjjj22-Nov-03 18:54 
GeneralRe: ado Pin
Husein22-Nov-03 23:23
Husein22-Nov-03 23:23 
GeneralRe: ado Pin
ranjjj23-Nov-03 0:03
ranjjj23-Nov-03 0:03 
GeneralRe: ado Pin
ranjjj23-Nov-03 0:03
ranjjj23-Nov-03 0:03 
GeneralRe: ado Pin
Husein23-Nov-03 0:35
Husein23-Nov-03 0:35 
GeneralRe: ado Pin
ranjjj23-Nov-03 0:43
ranjjj23-Nov-03 0:43 
GeneralRe: ado Pin
ranjjj23-Nov-03 2:37
ranjjj23-Nov-03 2:37 
GeneralRe: ado Pin
Husein23-Nov-03 2:54
Husein23-Nov-03 2:54 
GeneralRe: ado Pin
ranjjj23-Nov-03 19:12
ranjjj23-Nov-03 19:12 
GeneralRe: ado Pin
ranjjj24-Nov-03 18:40
ranjjj24-Nov-03 18:40 
GeneralRe: ado Pin
Husein26-Nov-03 21:17
Husein26-Nov-03 21:17 
QuestionInserting identity columns with CommandBuilder generated commands? Pin
Carl Mercier20-Nov-03 7:51
Carl Mercier20-Nov-03 7:51 
AnswerRe: Inserting identity columns with CommandBuilder generated commands? Pin
Husein22-Nov-03 3:33
Husein22-Nov-03 3:33 

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.