on 07-03-2018 3:01 PM
Currently we are using below method to create database user:
Use dbName;
Exec sp_adduser ?, ? ,?
I have found below store procedure execution method :
Exec databaseName.sys.procedureName ? ? ?
I do have following questions
1.what is the difference between this two methods regarding to resource allocation and performance?
ASE engine looks for procedures in certain order.
All procedure names are searched in the current database first.
If procedure name begins with sp_ and the procedure does not exist in local database,
- it is searched in sybsystemprocs database and if not found there
- then it is searched in master database.
When you specify database.owner.procedure_name you giving the absolute path with no ambiguity.
If the procedure exists it is executed.
There is no implicit search done in sybsystemprocs and master databases.
HTH
Avinash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well sorry to say you posted this under the Sybase Mainframe Tag.
I will try to get an ASE expert to take a look.
The correct tags would be:
Sybase Adaptive Server Enterprise
Sybase Adaptive Server Enterprise Cluster Edition
The ASE experts monitor those tags.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.