Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8826599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:10:42+00:00 2026-06-14T07:10:42+00:00

I have a dataset and in the designer under each dataTable there is a

  • 0

I have a dataset and in the designer under each dataTable there is a table adapter. So I can add->query to the dataTable and select a stored procedure that then gets listed below in the table adapter section. I can also select the table adapter and set it’s select/insert/update/delete commands to stored procedures.

My question is what is the difference and more importantly how do you know when a query or command is getting called?? (I need to know as I can configure the parameters differently and ones aren’t working right)

For instance how do I know which one this is using?

    private void saveToolStripButton_Click(object sender, EventArgs e)
    {
        this.Validate();
        this.permitInfoLinksBindingSource.EndEdit();
        this.linksTableAdapter.Update(this.dataSet1);
    }

It seems that the following is properly calling the stored proc with the Environment variable… but if I try to put Environment.UserName.ToUpper() in the “Parameters Collection Editor” under SourceColumn it sends null instead.

this.linksTableAdapter.spInsertLink(Environment.UserName.ToUpper(), fkPermitInfoID, 
fPath, ref ident);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:10:44+00:00Added an answer on June 14, 2026 at 7:10 am

    Does this excerpt from MSDN help?

    TableAdapters use data commands to read to and write from the database. The TableAdapter’s initial Fill (main) query is used as the basis for creating the schema of the associated data table, as well as the InsertCommand, UpdateCommand, and DeleteCommand commands associated with the TableAdapter.Update method. This means that calling a TableAdapter’s Update method executes the statements created when the TableAdapter was originally configured, and not one of the additional queries added with the TableAdapter Query Configuration Wizard.
    When you use a TableAdapter, it effectively performs the same operations with the commands that you typically would perform. For example, when you call the adapter’s Fill method, the adapter executes the data command in its SelectCommand property and uses a data reader (for example, SqlDataReader) to load the result set into the data table. Similarly, when you call the adapter’s Update method, it executes the appropriate command (in the UpdateCommand, InsertCommand, and DeleteCommand properties) for each changed record in the data table.

    As far as I understand, the *Command are boilerplate queries, whilst the one below the table are more specific custom stuff that you created yourself to suit your more complex needs, so if you use the commands you cannot pass more complex parameters into the query.

    I also surmise from this that when you call the basic actions like update etc, the default command gets executed as opposed to the a query defined afterwards.

    I only worked with tableadapters briefly though and my knowledge of them is quite shallow (moved over to entity framework as soon as I found out about it), so this answer night not be worth much…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a strongly typed DataTable created with the VS2005/VS2008 DataSet designer. The table
I have created a strongly typed dataset in the VS 2005 Dataset Designer. There
I have some designer generated code that I am using to query a dataset.
I have a DataSet , where in the first table and in the row
I have a dataset with one datatable. Now I want to set a filter
I have a dataset with multiple tables. One table in particular has one record
I have a DataSet with a DataTable having the columns Number and Description. I
I have a typed dataset which I designed using the dataset designer and a
I created a strongly-typed dataset in the dataset designer. The DataSet has a Table
I have a DataSet Designer in my project. One of my generated datasets has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.