About 328,000 results
Open links in new tab
  1. c# - Inserting new row in sql database table - Stack Overflow

    Dec 22, 2012 · I have textBoxes in my application. The data entered in those textBoxes are to be inserted in the database. The commandString accepts string type only. So, how can I …

  2. Insert records into database (.NET Framework) - Visual Studio …

    Aug 26, 2024 · Call the TableAdapter's Insert method, and pass the values for each column as parameters. The following procedure demonstrates how to use the TableAdapter.Insert …

  3. How to Insert Data into SQL Server Table Using C# - Web Dev Tutor

    Aug 7, 2024 · To insert data into a SQL Server table, you need to create an INSERT INTO SQL command and execute it using the SqlCommand class. Here's an example of inserting data …

  4. Insert data into Database in Windows Forms - ASPSnippets

    Dec 14, 2023 · In this article I will explain with an example, how to insert data into database in Windows Forms (WinForms) Application using C# and VB.Net.

  5. Insert row into SQL Server with C# Winforms - Stack Overflow

    Jun 24, 2012 · stringInsert += "INSERT INTO MyDatabase(dateTime, Name, Surname)"; stringInsert += "VALUES(@Date, @NameString, @SurnameString)"; SqlCommand cmd = …

  6. Insert Records using Simple and Parameterized QueryC# SQL

    However, you can use your own database and table to run the query. Insert Row in Table. The keyword INSERT INTO is used for inserting records in a table. There are 2 ways to insert …

  7. SQL Insert Query in C# - Delft Stack

    Feb 16, 2024 · There are 2 main methods that can be used to insert records to a database in C#, the direct query method and the parameterized query method.

  8. Binding to SQL Data | WinForms Controls - DevExpress …

    Sep 3, 2021 · Binding to SQL Data in Code. The following code illustrates how to bind the GridControl to SQL data at runtime using the SqlDataSource component. In this example, a …

  9. Insert Data Into The Database In Windows Form Using C# - C#

    In this article, I will show you how to save or submit data into the database or data table in windows form using C#.

  10. Inserting new row of data into C# Windows Form using SQL Server

    You can draft a sql insert using the above method, and use cmd.ExecuteNonQuery() to perform the insert. An Example..