Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
GeneralRe: enquary Pin
Pete O'Hanlon17-Nov-16 0:42
mvePete O'Hanlon17-Nov-16 0:42 
AnswerRe: enquary Pin
ZurdoDev17-Nov-16 1:11
professionalZurdoDev17-Nov-16 1:11 
AnswerRe: enquary PinPopular
V.17-Nov-16 2:55
professionalV.17-Nov-16 2:55 
AnswerRe: enquary Pin
Gerry Schmitz17-Nov-16 5:22
mveGerry Schmitz17-Nov-16 5:22 
QuestionDual Screen Display Pin
Member 972228316-Nov-16 0:59
Member 972228316-Nov-16 0:59 
AnswerRe: Dual Screen Display Pin
OriginalGriff16-Nov-16 1:40
mveOriginalGriff16-Nov-16 1:40 
GeneralRe: Dual Screen Display Pin
Member 972228316-Nov-16 2:20
Member 972228316-Nov-16 2:20 
GeneralRe: Dual Screen Display Pin
Dave Kreskowiak16-Nov-16 3:47
mveDave Kreskowiak16-Nov-16 3:47 
GeneralRe: Dual Screen Display Pin
Member 97222835-Dec-16 20:20
Member 97222835-Dec-16 20:20 
AnswerRe: Dual Screen Display Pin
Richard MacCutchan16-Nov-16 1:41
mveRichard MacCutchan16-Nov-16 1:41 
Questionhow to keep original image aspect ratio ? Pin
Member 1285075615-Nov-16 15:49
Member 1285075615-Nov-16 15:49 
AnswerRe: how to keep original image aspect ratio ? Pin
Dave Kreskowiak16-Nov-16 2:37
mveDave Kreskowiak16-Nov-16 2:37 
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 

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.