Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

DataSet and SQL results dont match, help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JP - 01 Feb 2007 16:17 GMT
As anyone ever run into this before. VS 2005 C#. This is a combination of SQL
and framework so I wasn’t quite sure where to post it.

I have a SP that executes multiple SELECT statements. If the ROWCOUNT = 0 it
executes the next SELECT and so fourth. In the past its always been that the
last SELECT executed would be the results that were returned to whatever
objAdapter executed the SP.

However, I’ve noticed that the results in the data adapter always contain
the results of the first SELECT. So if SELECT #1 returned 0 records and the
last SELECT returned 3 records, the dataset would have 0 records.

Is this a bug? How can it be fixed?

--
JP
.NET Software Developer
pvdg42 - 01 Feb 2007 16:31 GMT
> As anyone ever run into this before. VS 2005 C#. This is a combination of
> SQL
[quoted text clipped - 13 lines]
>
> Is this a bug? How can it be fixed?

In order to address your question, we'd need to see your code. Can you show
the selection logic block, or better still, reproduce the symptoms in a
short, but complete program?
Robson Siqueira - 01 Feb 2007 22:07 GMT
JP,

If you are using DataReader, make sure you go for the next result set.
Normally I don't use data adapters, I fill the data set by myself or I use
the Microsoft Application Blocks for that.

I hope it helps.

Signature

Regards,
Robson Siqueira
Enterprise Architect

>
>> As anyone ever run into this before. VS 2005 C#. This is a combination of
[quoted text clipped - 18 lines]
> show the selection logic block, or better still, reproduce the symptoms in
> a short, but complete program?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.