Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2003, 06:08 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default sql 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()






Similar Threads
Thread Thread Starter Forum Replies Last Post
UNION query. rupen Access 3 April 28th, 2006 02:49 AM
SQL-Union works in Access but not in Jet tonatwinemaker Access ASP 5 February 20th, 2006 04:37 PM
Problem with UNION - Please Help brettk_1 SQL Server 2000 1 November 9th, 2004 08:08 AM
Union joins in SQL sellis Access 3 April 7th, 2004 12:25 AM
UNION BUGS?? virtualdave Pro VB Databases 2 March 8th, 2004 05:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.