Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

C# .NET - INSERT Statement with parameter using TableAdapter Expand / Collapse
Posted Monday, March 10, 2014 10:38 AM


Group: General Forum Members
Last Login: Monday, January 11, 2016 3:55 PM
Points: 138, Visits: 421

I have a Windows Form and am trying to pass a value as part of my INSERT statement. I have one field that requires a new value which is entered in the dataset. Then when clicking update, the row writes to the database.

Here is my line of code:

this.ScriptParametersTableAdapter.Insert("abc", txtScriptType, txtConfigField, txtActive, txtDateNow);

The first data inserted is "abc". I would like to change this to be the value entered into the dataset. Is this possible?
Post #1549375
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse