.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 15th, 2003, 07:07 AM
msrnivas msrnivas is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 30 msrnivas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 15
sql using union

Hi
i am doing project in asp.net when try to asign a dataset which contains unions query (ex select user from a union select user from b union select user from c ect) its displaying wrong result means it supposed to display 100 rec but always displaying 1 rec only.but when i hardcode the same sql in my page its diplaying correctly(100 rec).i am not getting why its doing like this.when try to find the length of my sql string its 505.when i debug the code in quick watch window its not showing whole sql but when i try to print it on browser(using response.write) its displaying whole sql correctly.what could be the problem?pl advice me here is my code


v_dataadapter = New SqlDataAdapter(finalsql, objConn)
v_dataadapter.Fill(v_dataset, "ds")
v_dataview = v_dataset.Tables("ds").DefaultView()
grd.DataSource = v_dataset
grd.DataBind()

Reply With Quote
  #2  
Old October 16th, 2003, 09:20 PM
numbernine numbernine is offline
Up To His Eyes In Ads
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Chicago
Posts: 160 numbernine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 16
What you have here looks fine. Could you post the part of your code where you set the finalsql variable?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > sql using union


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap