ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



General discussions > Public newsgroups > microsoft.public.sqlserver.server > Profiler - Cursors

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread






Author Profiler - Cursors
SQL DBA
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Profiler - Cursors

Hi,

I wanted to track the events that happen when cursor is
opened and run. I looked at the docs in BOL and created a
trace template in profiler by selecting all the event
classes under "Cursor".

Then I created a sample script which created and opened a
cursor over a very small table. The script worked fine,
however nothing shows up in the trace except an event
class "trace started". The script was run AFTER starting
the trace.

Am i doing something wrong ????

Thanks In Advance

Report this post to a moderator

Old Post 06-28-02 04:25 PM
Reply w/Quote Edit/Delete Message IP: Logged
Brian Moran
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Re: Profiler - Cursors

It would help if you posted the script as well as the SQL Profiler trace
you're using. You can script a trace from the Script Trace menu from File on
the SQL Profiler GUI.

--

Brian Moran
SQL Server MVP
SQL Server Magazine Columnist


"SQL DBA" <jsingh87@hotmail.com> wrote in message
news:1387d01c21ec6$cedec8e0$39
ef2ecf@TKMSFTNGXA08...
> Hi,
>
> I wanted to track the events that happen when cursor is
> opened and run. I looked at the docs in BOL and created a
> trace template in profiler by selecting all the event
> classes under "Cursor".
>
> Then I created a sample script which created and opened a
> cursor over a very small table. The script worked fine,
> however nothing shows up in the trace except an event
> class "trace started". The script was run AFTER starting
> the trace.
>
> Am i doing something wrong ????
>
> Thanks In Advance
>



Report this post to a moderator

Old Post 06-28-02 06:25 PM
Reply w/Quote Edit/Delete Message IP: Logged
SQL DBA
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Re: Profiler - Cursors

I could not trace the script, it produce a script file
with 0KB of data. But here is the script that I want to
test in the trace.

declare @site_ndx int
declare @manager_ndx int
declare @last_name nvarchar(30)
declare @first_name nvarchar(30)

declare test_cursor cursor
for
select *
from branch_manager

open test_cursor
fetch next from test_cursor into
@site_ndx,
@manager_ndx,
@last_name,
@first_name

while @@fetch_status <> -1
begin
select @site_ndx, @manager_ndx, @last_name,
@first_name
fetch next from test_cursor into
@site_ndx,
@manager_ndx,
@last_name,
@first_name
end
close test_cursor
deallocate test_cursor

>-----Original Message-----
>It would help if you posted the script as well as the SQL

Profiler trace
>you're using. You can script a trace from the Script

Trace menu from File on
>the SQL Profiler GUI.
>
>--
>
>Brian Moran
>SQL Server MVP
>SQL Server Magazine Columnist
>
>
>"SQL DBA" <jsingh87@hotmail.com> wrote in message
> news:1387d01c21ec6$cedec8e0$39
ef2ecf@TKMSFTNGXA08...
>> Hi,
>>
>> I wanted to track the events that happen when cursor is
>> opened and run. I looked at the docs in BOL and created

a
>> trace template in profiler by selecting all the event
>> classes under "Cursor".
>>
>> Then I created a sample script which created and opened

a
>> cursor over a very small table. The script worked fine,
>> however nothing shows up in the trace except an event
>> class "trace started". The script was run AFTER starting
>> the trace.
>>
>> Am i doing something wrong ????
>>
>> Thanks In Advance
>>

>
>
>.
>

Report this post to a moderator

Old Post 06-28-02 08:25 PM
Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Featured site: MCSE, MCSD, CompTIA, CCNA training videos



Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps