Click here to Skip to main content
15,790,957 members
Home / Discussions / C#
   

C#

 
Questionc# Pin
Impana D patel24-Jul-23 0:46
Impana D patel24-Jul-23 0:46 
AnswerRe: c# Pin
Richard MacCutchan24-Jul-23 1:03
mveRichard MacCutchan24-Jul-23 1:03 
QuestionWhat should be the principles of multilayer software design? Pin
farshad valizade 202323-Jul-23 23:00
farshad valizade 202323-Jul-23 23:00 
AnswerRe: What should be the principles of multilayer software design? Pin
Richard Deeming24-Jul-23 0:11
mveRichard Deeming24-Jul-23 0:11 
QuestionMulti-threading Pin
MAW3017-Jul-23 10:52
MAW3017-Jul-23 10:52 
AnswerRe: Multi-threading Pin
Gerry Schmitz17-Jul-23 16:32
mveGerry Schmitz17-Jul-23 16:32 
AnswerRe: Multi-threading Pin
Dave Kreskowiak17-Jul-23 16:53
mveDave Kreskowiak17-Jul-23 16:53 
QuestionParameterized Query Pin
Richard Andrew x6416-Jul-23 9:47
professionalRichard Andrew x6416-Jul-23 9:47 
My program inserts thousands of records into a SQLite database. That works fine.

I do it by building an INSERT statement with 1000 VALUE groups, each group representing a different record to add. If I were to execute a separate INSERT statement for each record, then the insert would take hours, so I make the compound INSERT statement.

So the question is, how can I transform the INSERT query into a parameterized query, if every VALUE group has unique values?

There are four fields that need to be populated for each record, so that means I must create a SQLiteCommand with 4000 parameters?

Or is there a better way?



The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Parameterized Query Pin
Dave Kreskowiak16-Jul-23 11:44
mveDave Kreskowiak16-Jul-23 11:44 
GeneralRe: Parameterized Query Pin
Richard Andrew x6416-Jul-23 12:39
professionalRichard Andrew x6416-Jul-23 12:39 
AnswerRe: Parameterized Query Pin
OriginalGriff16-Jul-23 12:24
mvaOriginalGriff16-Jul-23 12:24 
GeneralRe: Parameterized Query Pin
Richard Andrew x6416-Jul-23 12:42
professionalRichard Andrew x6416-Jul-23 12:42 
GeneralRe: Parameterized Query Pin
OriginalGriff16-Jul-23 19:34
mvaOriginalGriff16-Jul-23 19:34 
GeneralRe: Parameterized Query Pin
Richard Andrew x6417-Jul-23 6:35
professionalRichard Andrew x6417-Jul-23 6:35 
AnswerRe: Parameterized Query Pin
Gerry Schmitz16-Jul-23 20:32
mveGerry Schmitz16-Jul-23 20:32 
GeneralRe: Parameterized Query Pin
Richard Andrew x6417-Jul-23 6:33
professionalRichard Andrew x6417-Jul-23 6:33 
QuestionGetting a VST3 effect name and vendor Pin
spice3d8-Jul-23 10:19
spice3d8-Jul-23 10:19 
AnswerRe: Getting a VST3 effect name and vendor Pin
Pete O'Hanlon8-Jul-23 11:09
subeditorPete O'Hanlon8-Jul-23 11:09 
GeneralRe: Getting a VST3 effect name and vendor Pin
spice3d8-Jul-23 12:18
spice3d8-Jul-23 12:18 
QuestionAdvices for my learning path Pin
coco2437-Jul-23 22:10
coco2437-Jul-23 22:10 
AnswerRe: Advices for my learning path Pin
OriginalGriff7-Jul-23 22:19
mvaOriginalGriff7-Jul-23 22:19 
AnswerRe: Advices for my learning path Pin
Richard Andrew x648-Jul-23 4:26
professionalRichard Andrew x648-Jul-23 4:26 
GeneralRe: Advices for my learning path Pin
coco2439-Jul-23 10:07
coco2439-Jul-23 10:07 
GeneralRe: Advices for my learning path Pin
jschell10-Jul-23 4:50
jschell10-Jul-23 4:50 
AnswerRe: Advices for my learning path Pin
BillWoodruff9-Jul-23 16:06
professionalBillWoodruff9-Jul-23 16:06 

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.