Link to home
Start Free TrialLog in
Avatar of vd
vd

asked on

sp_addextendedproc usage

While using SQL Trace on an application, I noticed the following code:
sp_cursorfetch 95226679,2,0,1

sp_cursorfetch is defined as follows:
exec sp_addextendedproc 'sp_cursorfetch','(server internal)'

Could someone explain what is happening here?
Avatar of vd
vd

ASKER

Adjusted points to 70
There are two ways ODBC driver can 'request' data from SQL server can send data to your application - either by executing straight select and sending all the data at once -in this case you will see 'SELECT....' statement.
In the secon case it builds cursor on the server side and uses sp_cursorfetch to fetch data in chunks.
Avatar of vd

ASKER

What would be the reason to use this method? Also, what
are the parameters being used, such as 952266979 ?
ASKER CERTIFIED SOLUTION
Avatar of martyn_bannister
martyn_bannister
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial