Unix Technical Forum

SP3 & CURSORS

This is a discussion on SP3 & CURSORS within the SQL Server forums, part of the Microsoft SQL Server category; --> We just installed SP3 and the cursor behaviors changed, does anyone know anything about that? I call this stored ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:10 PM
Ahmed B. Zayan
 
Posts: n/a
Default SP3 & CURSORS


We just installed SP3 and the cursor behaviors changed, does anyone know
anything about that? I call this stored procedure from DTS:

DECLARE Queue_cursor
SCROLL CURSOR FOR SELECT SOURCE_PATH,COMPANY, TABLE_NAME FROM
dl.dbo.companies
OPEN Queue_cursor
FETCH ABSOLUTE @lineNumber FROM Queue_cursor
CLOSE Queue_cursor
DEALLOCATE Queue_cursor

If the cursor returns more than one row I get the number of rows
instead of
the selection!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:10 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SP3 & CURSORS

Ahmed B. Zayan (ahmed.@zayan.com) writes:
> We just installed SP3 and the cursor behaviors changed, does anyone know
> anything about that? I call this stored procedure from DTS:
>
> DECLARE Queue_cursor
> SCROLL CURSOR FOR SELECT SOURCE_PATH,COMPANY, TABLE_NAME FROM
> dl.dbo.companies
> OPEN Queue_cursor
> FETCH ABSOLUTE @lineNumber FROM Queue_cursor
> CLOSE Queue_cursor
> DEALLOCATE Queue_cursor
>
> If the cursor returns more than one row I get the number of rows
> instead of the selection!


Could you provide a script that runs on the Northwind database and
which exposes the problem when you run it from Query Analyzer?

If the problem does appear when you run from QA, maybe there are some
surprises in DTS. In such case you should try microsoft.public.sqlserver.dts
The people there probably needs to see your DTS code too.

--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com