Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
Author
Message
Posted Monday, March 10, 2014 10:38 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, July 22, 2015 2:07 PM
Points: 101, Visits: 241
Hello,

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