Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 September 6th, 2006, 08:18 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default dataadapter setting proble, please help

hi all,

i want to display 5 fields in a datagrid

but in that 2 fields come from table1 and 3 fields come from table2

but i configured the dataadapter, so that i have the 5 fields

and the dataset also displays the 5 fileds(also the values which i inserted after join)

but the confusion is how will i set the select statement for the sqldataadapter?

which table name shall i give to fill the adapater?

is there anyway to solve this problem?

i think the problem is clear to you all



thanks in advance



 
Old September 6th, 2006, 08:35 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Just create a SQL statement that joins table 1 and table 2 and all 5 fields will be returned in a single resultset.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
How many DataAdapter in a Form melvik ADO.NET 5 November 2nd, 2008 03:14 AM
In Cursor set and execute statement related proble param99 SQL Server 2000 0 December 15th, 2006 02:55 AM
dataadapter --- dataset thas123 ASP.NET 2.0 Basics 0 December 13th, 2006 08:58 AM
DataAdapter.Fill() kadesskade VB.NET 2002/2003 Basics 1 July 10th, 2006 02:57 AM
buliding an asp.net intranet content module proble rolisharma ASP.NET 1.0 and 1.1 Basics 0 February 25th, 2006 09:40 AM





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