Click here to Skip to main content
15,921,174 members
Home / Discussions / Database
   

Database

 
AnswerRe: Can you create tables from dataset/tables? Pin
RChin25-Feb-04 7:08
RChin25-Feb-04 7:08 
GeneralSimple question that is KILLING me!!! Pin
HarleyJase24-Feb-04 9:24
HarleyJase24-Feb-04 9:24 
GeneralRe: Simple question that is KILLING me!!! Pin
Edbert P24-Feb-04 11:28
Edbert P24-Feb-04 11:28 
GeneralRe: Simple question that is KILLING me!!! Pin
HarleyJase24-Feb-04 12:09
HarleyJase24-Feb-04 12:09 
GeneralRe: Simple question that is KILLING me!!! Pin
Edbert P24-Feb-04 17:34
Edbert P24-Feb-04 17:34 
GeneralRe: Simple question that is KILLING me!!! Pin
HarleyJase25-Feb-04 5:06
HarleyJase25-Feb-04 5:06 
GeneralRe: Simple question that is KILLING me!!! Pin
HarleyJase25-Feb-04 5:20
HarleyJase25-Feb-04 5:20 
GeneralRe: Simple question that is KILLING me!!! Pin
Edbert P25-Feb-04 11:37
Edbert P25-Feb-04 11:37 
I had a suspicion that the error Specified argument was out of the range of valid values. Parameter name: index was returned by controls like combobox/listbox. However, since I wasn't quite sure what ddlGenre is I couldn't confirm this before.

The error Additional information: Update requires a valid InsertCommand when passed DataRow collection with new rows. may mean that:

1. You didn't set an InsertCommand. You told me you just changed ddlGenre with textbox, but did you include the DataAdapter.InsertCommand = cmd line?
The DataAdapter.InsertCommand is a property, not a method. You use it to set the InsertCommand into the DataAdapter, not to update the table. Please read the MSDN sample I have given Creating Insert Command[^] and Updating Database With Data Adapter[^] or check the code automatically generated by Visual Studio.

2. You didn't set a primary key in your table.

3. The InsertCommand provided is invalid. Try to test your insert command before you use it (especially if you write it yourself).


Edbert P.
Sydney, Australia.
GeneralRe: Simple question that is KILLING me!!! Pin
HarleyJase26-Feb-04 7:05
HarleyJase26-Feb-04 7:05 
GeneralRe: Simple question that is KILLING me!!! Pin
Edbert P26-Feb-04 11:01
Edbert P26-Feb-04 11:01 
GeneralSQL Server Stored Procedure Pagination Pin
Braulio Dez24-Feb-04 6:13
Braulio Dez24-Feb-04 6:13 
GeneralData type mismatch blues. Pin
Marypoppins23-Feb-04 22:39
Marypoppins23-Feb-04 22:39 
GeneralRe: Data type mismatch blues. Pin
Verdant12324-Feb-04 5:12
Verdant12324-Feb-04 5:12 
GeneralRe: Data type mismatch blues. Pin
Marypoppins24-Feb-04 18:52
Marypoppins24-Feb-04 18:52 
Generalconnect to web service Pin
arzu23-Feb-04 21:43
arzu23-Feb-04 21:43 
GeneralRe: connect to web service Pin
Verdant12324-Feb-04 5:08
Verdant12324-Feb-04 5:08 
Generalbase de donnée avec une classe en C++ Pin
MagicFans9122-Feb-04 23:24
MagicFans9122-Feb-04 23:24 
GeneralRe: base de donnée avec une classe en C++ Pin
Sarvesvara (BVKS) Dasa23-Feb-04 2:06
Sarvesvara (BVKS) Dasa23-Feb-04 2:06 
GeneralRe: base de donnée avec une classe en C++ Pin
Verdant12323-Feb-04 12:06
Verdant12323-Feb-04 12:06 
GeneralRe: base de donnée avec une classe en C++ Pin
maevava26-Apr-04 1:54
maevava26-Apr-04 1:54 
GeneralInstall my SQL Database to other Machine Pin
Sarvesvara (BVKS) Dasa22-Feb-04 20:12
Sarvesvara (BVKS) Dasa22-Feb-04 20:12 
GeneralRe: Install my SQL Database to other Machine Pin
TLWallace22-Feb-04 20:43
TLWallace22-Feb-04 20:43 
GeneralRe: Install my SQL Database to other Machine Pin
Sarvesvara (BVKS) Dasa23-Feb-04 2:05
Sarvesvara (BVKS) Dasa23-Feb-04 2:05 
GeneralRe: Install my SQL Database to other Machine Pin
Verdant12323-Feb-04 12:10
Verdant12323-Feb-04 12:10 
GeneralSaving DataSet into Access MDB Pin
dave charlton22-Feb-04 18:15
dave charlton22-Feb-04 18:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.