Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS SQL SERVER equivalent commands for the following Oracle commands

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi! I am new to SQL. Can anyone please help me with the MS SQL SERVER versions of these Oracle database commands:

(The underlying OS is Windows NT)

#ls -la $ORACLE_HOME

sql>SELECT username, password FROM DBA_USERS

sql>SELECT * FROM DBA_DB_LINKS


sql>SELECT * FROM DBA_SYS_PRIVS


sql>SELECT table_name, username, tablespace_name from DBA_TABLES

sql>SELECT * FROM DBA_ROLE_PRIVS

sql>SELECT * FROM DBA_TAB_PRIVS


sql>SELECT*FROM DBA_COL_PRIVS

INIT.ORA

 
Not to sure if I have remembered the Oracle stuff correctlty but these might be the ones:

sp_helprotect - gives infromation on the permissions associated with a role

sp_tables - gives the informtion similar to DBA_TABLES

sp_table_privileges 'table_name' - gives the priviliges on a table

sp_column_priviliges 'table_name' - gives the specified tables column privilige information

sp_linkedservers - gives the name of all the linked servers

sp_helplogins - similar to DBA_USERS


I'm not sure if a lot of the stuff cannot be directly mapped, but the information is available.

James :)


James Culshaw
jculshaw@active-data-solutions.co.uk
 
James,
Thank you for the response. That gives me a start. I was reading up on SQL server commands and to know the user names and passwords, it seems that the table syslogins is used. Is this the same as sp_helplogins since this also has dba users information.
And what command would you run for system privileges in sql server?

Thanks,
Ruchi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top