Advertisement

04.30.2008 at 02:44AM PDT, ID: 23364771
[x]
Attachment Details

Can a table adaptor update two tables via a stored procedure?

Asked by retrobot in Microsoft Visual C#.Net, MS SQL Server, Visual Studio .NET 2005

Tags: c#

Hi,
I'm trying to make a windows form app in VC2005. I need a datagrid which is a join of two tables (1:1). I used the wizards to set it up so far using a bindingsource like this:
    [actal sql database] >> Tableadaptor >> typed Dataset >> bindingsource >> Datagrid
The table adaptor uses a stored procedure to do the join and I thought I could write and update proc (started for just one table below), but I cannot set the parameters for it.

Why can I not set the source columns for the parameters? Is this approach even possible? Do I need two table adaptors? I have attached a screenshot which shows the problem.
-ThanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
GO
ALTER PROCEDURE sp_peoplejoin_upd
(@i_d Int, @fname VarChar (40))
AS
BEGIN
UPDATE People
SET FirstName = @fname
WHERE ID = @i_d
END
Attachments:
 
This is the problem area
This is the problem area
 
[+][-]04.30.2008 at 05:33PM PDT, ID: 21475683

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, MS SQL Server, Visual Studio .NET 2005
Tags: c#
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.02.2008 at 06:44AM PDT, ID: 21486551

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 06:52AM PDT, ID: 21486621

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 04:57AM PDT, ID: 21506449

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 05:01AM PDT, ID: 21506474

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 06:20AM PDT, ID: 21507013

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 08:26AM PDT, ID: 21533834

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 09:34AM PDT, ID: 21534488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 01:36AM PDT, ID: 21545331

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 06:15AM PDT, ID: 21546644

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:48AM PDT, ID: 21555588

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:53AM PDT, ID: 21555636

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:53AM PDT, ID: 21555643

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628