Click here to Skip to main content
15,912,507 members
Home / Discussions / C#
   

C#

 
AnswerRe: Lock ComboBox Pin
Henry Minute6-Feb-09 2:28
Henry Minute6-Feb-09 2:28 
RantRe: Lock ComboBox Pin
MatthysDT7-Apr-10 5:11
MatthysDT7-Apr-10 5:11 
GeneralRe: Lock ComboBox Pin
Henry Minute7-Apr-10 5:17
Henry Minute7-Apr-10 5:17 
QuestionMy SQL Import xls files Pin
Burim Rama5-Feb-09 22:14
Burim Rama5-Feb-09 22:14 
AnswerRe: My SQL Import xls files Pin
Christian Graus5-Feb-09 22:21
protectorChristian Graus5-Feb-09 22:21 
GeneralRe: My SQL Import xls files Pin
Burim Rama5-Feb-09 22:23
Burim Rama5-Feb-09 22:23 
GeneralRe: My SQL Import xls files Pin
Christian Graus5-Feb-09 22:45
protectorChristian Graus5-Feb-09 22:45 
AnswerRe: My SQL Import xls files Pin
MacSpudster6-Feb-09 9:57
professionalMacSpudster6-Feb-09 9:57 
Burim,

I had written an app to import excel files. That was some 3 years ago, so I no longer have the code.

I did a google search for "C# import excel file into sql" and I found the same link I had used to write the code some 3 years ago. The link:

http://davidhayden.com/blog/dave/archive/2006/05/31/2976.aspx[^]

I recommend you use this link to do the following:

1) SQLBulkImport the Excel file into an import table (a table in the same database but that is only used for this purpose)
2) Call stored procedure that grabs the needed data from the import table and updates whatever table(s) you need to update.

In my case, I had a Unique partNumber, too, so I would
A) Mark records in my primary table as "inactive" (I use a tinyint with 1=inactive and 2=active) that were no longer in the import table
B) Add new records from the import table into the primary table.
C) Update records in the primary table with changed values in the import table (usually the description and price).

Hope this helps.

ASP ~ Apple Simply Performs

QuestionHow to make real time progress bar in winform Pin
azad yadav5-Feb-09 21:43
azad yadav5-Feb-09 21:43 
AnswerRe: How to make real time progress bar in winform Pin
Harvey Saayman5-Feb-09 21:57
Harvey Saayman5-Feb-09 21:57 
AnswerRe: How to make real time progress bar in winform Pin
musefan5-Feb-09 22:12
musefan5-Feb-09 22:12 
AnswerRe: How to make real time progress bar in winform Pin
Fayu6-Feb-09 9:25
Fayu6-Feb-09 9:25 
QuestionSimulation of Circuits Pin
sabeel alwosol5-Feb-09 21:33
sabeel alwosol5-Feb-09 21:33 
AnswerRe: Simulation of Circuits Pin
Harvey Saayman5-Feb-09 21:59
Harvey Saayman5-Feb-09 21:59 
AnswerRe: Simulation of Circuits Pin
Bharat Jain6-Feb-09 0:00
Bharat Jain6-Feb-09 0:00 
Questionis it posible to run WS IIS on UNIX ? Pin
E_Gold5-Feb-09 20:42
E_Gold5-Feb-09 20:42 
AnswerRe: is it posible to run WS IIS on UNIX ? Pin
Bharat Jain5-Feb-09 21:00
Bharat Jain5-Feb-09 21:00 
AnswerRe: is it posible to run WS IIS on UNIX ? Pin
SeMartens5-Feb-09 21:05
SeMartens5-Feb-09 21:05 
AnswerRe: is it posible to run WS IIS on UNIX ? Pin
Harvey Saayman5-Feb-09 22:03
Harvey Saayman5-Feb-09 22:03 
QuestionOptimize this code Pin
anderslundsgard5-Feb-09 20:36
anderslundsgard5-Feb-09 20:36 
AnswerRe: Optimize this code Pin
Christian Graus5-Feb-09 20:41
protectorChristian Graus5-Feb-09 20:41 
AnswerRe: Optimize this code Pin
Vikram A Punathambekar5-Feb-09 21:27
Vikram A Punathambekar5-Feb-09 21:27 
AnswerRe: Optimize this code Pin
kaminem5-Feb-09 23:52
kaminem5-Feb-09 23:52 
AnswerRe: Optimize this code Pin
Daniel Grunwald6-Feb-09 1:37
Daniel Grunwald6-Feb-09 1:37 
AnswerRe: Optimize this code Pin
DaveyM696-Feb-09 2:17
professionalDaveyM696-Feb-09 2:17 

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.