Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
QuestionParse 17,000 text files and insert into database Pin
davers15-Nov-16 6:29
davers15-Nov-16 6:29 
AnswerRe: Parse 17,000 text files and insert into database Pin
peterkmx15-Nov-16 7:01
professionalpeterkmx15-Nov-16 7:01 
AnswerRe: Parse 17,000 text files and insert into database Pin
Gerry Schmitz15-Nov-16 7:13
mveGerry Schmitz15-Nov-16 7:13 
GeneralRe: Parse 17,000 text files and insert into database Pin
davers15-Nov-16 8:07
davers15-Nov-16 8:07 
GeneralRe: Parse 17,000 text files and insert into database Pin
OriginalGriff15-Nov-16 8:17
mveOriginalGriff15-Nov-16 8:17 
GeneralRe: Parse 17,000 text files and insert into database Pin
Gerry Schmitz15-Nov-16 8:19
mveGerry Schmitz15-Nov-16 8:19 
GeneralRe: Parse 17,000 text files and insert into database Pin
peterkmx15-Nov-16 8:50
professionalpeterkmx15-Nov-16 8:50 
AnswerRe: Parse 17,000 text files and insert into database Pin
Philippe Mori15-Nov-16 8:11
Philippe Mori15-Nov-16 8:11 
  • Your code is prone to SQL injection (if the source file can be modified).
  • You might want to process files in order.
  • Your code do not validate that the data is the expected one.
  • There are a bunch of hard-coded constant.
If you do it one, then it does not matters much but it would also do not matters much that it would take about one hour to process the file.

One thing that would have a significant impact on the performance is to keep the connection opened for the whole importation if it is not already done.
Philippe Mori

AnswerRe: Parse 17,000 text files and insert into database Pin
Nathan Minier15-Nov-16 8:33
professionalNathan Minier15-Nov-16 8:33 
AnswerRe: Parse 17,000 text files and insert into database Pin
Mycroft Holmes15-Nov-16 11:54
professionalMycroft Holmes15-Nov-16 11:54 
AnswerRe: Parse 17,000 text files and insert into database Pin
Bernhard Hiller15-Nov-16 21:33
Bernhard Hiller15-Nov-16 21:33 
AnswerRe: Parse 17,000 text files and insert into database Pin
Jimmanuel23-Nov-16 10:48
Jimmanuel23-Nov-16 10:48 
QuestionDevelop Web Service REST Pin
Member 1283622014-Nov-16 3:37
Member 1283622014-Nov-16 3:37 
QuestionTextbox updation Pin
Avinash.Banda14-Nov-16 0:24
Avinash.Banda14-Nov-16 0:24 
AnswerRe: Textbox updation Pin
OriginalGriff14-Nov-16 0:31
mveOriginalGriff14-Nov-16 0:31 
GeneralRe: Textbox updation Pin
Avinash.Banda14-Nov-16 0:36
Avinash.Banda14-Nov-16 0:36 
GeneralRe: Textbox updation Pin
OriginalGriff14-Nov-16 0:39
mveOriginalGriff14-Nov-16 0:39 
GeneralRe: Textbox updation Pin
Avinash.Banda14-Nov-16 0:43
Avinash.Banda14-Nov-16 0:43 
GeneralRe: Textbox updation Pin
OriginalGriff14-Nov-16 0:45
mveOriginalGriff14-Nov-16 0:45 
GeneralRe: Textbox updation Pin
Avinash.Banda14-Nov-16 0:52
Avinash.Banda14-Nov-16 0:52 
GeneralRe: Textbox updation Pin
OriginalGriff14-Nov-16 1:03
mveOriginalGriff14-Nov-16 1:03 
GeneralRe: Textbox updation Pin
Avinash.Banda14-Nov-16 1:04
Avinash.Banda14-Nov-16 1:04 
QuestionCan I send Push Notifications to mobile phones from Windows Forms Application? Pin
Onur ERYILMAZ13-Nov-16 23:58
Onur ERYILMAZ13-Nov-16 23:58 
AnswerRe: Can I send Push Notifications to mobile phones from Windows Forms Application? Pin
Eddy Vluggen14-Nov-16 3:51
professionalEddy Vluggen14-Nov-16 3:51 
QuestionFile Transfer Queue Architecture Pin
Kevin Marois10-Nov-16 6:16
professionalKevin Marois10-Nov-16 6:16 

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.