All Questions
Tagged with insert-update c#
109
questions
0
votes
0
answers
295
views
Update records in SQL Server database table after crystal report is exported
I am developing a WinForms application using C# and SQL Server 2015. I want to update the records of a table once the crystal report is generated and exported as pdf file.
Details: The user form ...
1
vote
1
answer
184
views
Updating Records on Zoho using C#
I am trying to update records on a Zoho database and there does not seem to be a single piece of C# code online for me to use to help find my issue. My code is:
WebRequest request = WebRequest.Create(&...
-2
votes
1
answer
375
views
C# stored procedure insert or update with DataTable problem?
I want to add or update with the code below. I get the following error. How should I edit this code?
Must declare the scalar variable "@UyeID".
Incorrect syntax near the keyword 'ELSE'.
My ...
0
votes
0
answers
499
views
Excel Oledb Update Query - Updating header row in Excel 2016
Trying to update the rows in Excel using Oledb, but update query updates Header row in Excel 2016.
It works perfectly fine in Excel 2010 or earlier, just wondering what is required in Excel 2016? To ...
-1
votes
2
answers
336
views
Sqlite INSERT or else return existing item
I have the following data structure: ID (int), Name (text), Info (text), List (text).
"List" is a list of enums as string with the intended syntax: "word1,word2,word3"
I'd like to ...
1
vote
1
answer
159
views
C# SetValues, EntityState.Modified not working
I have the following entries in my database:
MeetingID AgendaItem LegistarID Title
48620 3 60710 Comment
48620 5 60615 Extending report date
48620 ...
0
votes
0
answers
138
views
WPF- LINQ Database doesn't update
Im trying to write a WPF application using Linq but while trying to update the database (add new data to it) it doesn't update at all.
I want to add another row when I click a button but it doesn't ...
0
votes
1
answer
50
views
Edit data from a listbox to my SQL Database
Table name: highscores
Whenever I want to edit a selected registration (with gamer and hscore properties), my gamer value turns into "0" and the highscore remains unchanged.
For example, I've ...
0
votes
1
answer
339
views
Update is not working for many-to-many relationship. Entity Framework Core 2.2
I have many to many relationships between games and Categories. I am Using Sql Server. One game can have multiple categories. Create operation working but the update is not working. Getting an error:
...
0
votes
1
answer
48
views
Update one record using entity frame work
I wanna update one record to database using entity framework . when update this record all date for this employee set Null Only Employee Code And IsActive .. how update isAcive only
this is My Code
...
2
votes
1
answer
3k
views
Updating whole Document if already exist with mongodbDriver
I am using mongodb driver, insert worked with no problem, but that will lead me with multiple documents with the same ID.
What I´m trying to do it´s to use UpdateOne with upsert, to update my ...
3
votes
2
answers
3k
views
Check duplicate value in the database
Before I save value from TextBox into the database I need to check if that value already exists in the database.
This is the TextBox code:
<tr>
<td>
<asp:Label ID=...
0
votes
1
answer
148
views
C# MySql Insert or Upadte Command Syntax for a Survey form with 78 Radio Buttons
I have a C# Win form which contains (amongst other things) a popup panel with a survey containing 78 radio buttons. The survey has a submit button which inserts the data into a MySQL table. The code ...
-1
votes
1
answer
34
views
update in ms access using c#
can someone please help what is wrong with my code?
it is a update function and during my debug it executing properly but it is not updating my database.
I already search for an answer to for this ...
-1
votes
2
answers
81
views
Update windows form like if app restarted C#
I would like to update a panel in a windows form C# after adding an entity from another form and without having to use Application.Restart();
Form 1 :
private void kopf1_Load(object sender, ...