updating dataset when adding a new field in database in c#

hamed

I have made a database and created a table with five fields and used add new datasource and added a new dataset by using that. And I have made a form and inserted all fields by dragging them into the form and changed lots of the properties. Now I need to add a new field into the table in database. Do I have to create a new datasource and a new dataset and do everything from beginning or there is a way to update the datasource and dataset so that the new field automatically appears in them? Any answer would be appreciated.

faby

As you can read here you should right-click the TableAdapter in the Dataset Designer and click 'Configure' the TableAdapter Configuration Wizard opens where you can reconfigure the main query that defines the schema of your table. This should leave the additional TableAdapter queries (the additional methods) that were added after initial configuration.

So follow these steps

  1. Open you xsd file.
  2. Right click on Fill,GetData -> Configure
  3. Click Query builder and add the new column in the query statment
  4. Click ok and then your dataset is updated with the new database structure

If it doesn't work try deleting the dataTable and drag your table from Server Explorer again in your xsd file

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

SSRS Dataset Field Refresh not updating for Tablix

From Dev

Updating client page only when new entry comes in database in Django

From Dev

Adding columns to dataset in c#

From Dev

error when adding tableadapter to dataset

From Dev

Update an array of hashes with records from the database adding a new field into each existing hash

From Dev

delete sqlite database when updating new version of application

From Dev

Adding a field of an object to list in C# when list

From Dev

QlikView "field not found" workaround for adding a new field

From Dev

Error when adding a new field to database context

From Dev

Adding New Row to DataSet DataTable

From Dev

Insert new line when updating field in ACF

From Dev

Updating scaffold views after adding new column

From Dev

Adding a login field to a database?

From Dev

Adding a new table to model (edmx) without updating the other models in Database First Entity Framework MVC application

From Dev

Adding a new field to an entity

From Dev

Backward compatibility when adding a new field in response

From Dev

select option created with var not displaying when adding a new field dynamically

From Dev

Adding a new field in the DhtmlX library

From Dev

Adding a new field in SQLite in android

From Dev

error when adding tableadapter to dataset

From Dev

updating dataset when adding a new field in database in c#

From Dev

Insert new line when updating field in ACF

From Dev

Adding and updating details to SQLite database

From Dev

Adding new record from dataset

From Dev

NullPointerExcpetion when updating database

From Dev

Adding a new Field to FDMemTable when loading an existing data

From Dev

C# SQL DataGridView change field before updating database

From Dev

Input field not updating in the database

From Dev

Adding a media field when creating a new entry

Related Related

  1. 1

    SSRS Dataset Field Refresh not updating for Tablix

  2. 2

    Updating client page only when new entry comes in database in Django

  3. 3

    Adding columns to dataset in c#

  4. 4

    error when adding tableadapter to dataset

  5. 5

    Update an array of hashes with records from the database adding a new field into each existing hash

  6. 6

    delete sqlite database when updating new version of application

  7. 7

    Adding a field of an object to list in C# when list

  8. 8

    QlikView "field not found" workaround for adding a new field

  9. 9

    Error when adding a new field to database context

  10. 10

    Adding New Row to DataSet DataTable

  11. 11

    Insert new line when updating field in ACF

  12. 12

    Updating scaffold views after adding new column

  13. 13

    Adding a login field to a database?

  14. 14

    Adding a new table to model (edmx) without updating the other models in Database First Entity Framework MVC application

  15. 15

    Adding a new field to an entity

  16. 16

    Backward compatibility when adding a new field in response

  17. 17

    select option created with var not displaying when adding a new field dynamically

  18. 18

    Adding a new field in the DhtmlX library

  19. 19

    Adding a new field in SQLite in android

  20. 20

    error when adding tableadapter to dataset

  21. 21

    updating dataset when adding a new field in database in c#

  22. 22

    Insert new line when updating field in ACF

  23. 23

    Adding and updating details to SQLite database

  24. 24

    Adding new record from dataset

  25. 25

    NullPointerExcpetion when updating database

  26. 26

    Adding a new Field to FDMemTable when loading an existing data

  27. 27

    C# SQL DataGridView change field before updating database

  28. 28

    Input field not updating in the database

  29. 29

    Adding a media field when creating a new entry

HotTag

Archive