Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
Questionwhat is the difference between these two lines in c# Pin
nithla26-Jan-11 19:13
nithla26-Jan-11 19:13 
AnswerRe: what is the difference between these two lines in c# Pin
Pravin Patil, Mumbai26-Jan-11 20:30
Pravin Patil, Mumbai26-Jan-11 20:30 
AnswerRe: what is the difference between these two lines in c# Pin
OriginalGriff26-Jan-11 21:15
mveOriginalGriff26-Jan-11 21:15 
GeneralRe: what is the difference between these two lines in c# Pin
Pravin Patil, Mumbai26-Jan-11 21:24
Pravin Patil, Mumbai26-Jan-11 21:24 
GeneralRe: what is the difference between these two lines in c# Pin
OriginalGriff26-Jan-11 21:26
mveOriginalGriff26-Jan-11 21:26 
GeneralRe: what is the difference between these two lines in c# Pin
nithla26-Jan-11 21:30
nithla26-Jan-11 21:30 
AnswerRe: what is the difference between these two lines in c# Pin
Pravin Patil, Mumbai26-Jan-11 21:25
Pravin Patil, Mumbai26-Jan-11 21:25 
QuestionDataset Question Pin
eddieangel26-Jan-11 11:09
eddieangel26-Jan-11 11:09 
I need to load a dataset with data from a list of items.

That is to say, I have an excel spreadsheet with a list of category id numbers. I need to load all data into a dataset that matches that list of categories. What is the best way to go about this?

Right now it is easy enough to do, load the spreadsheet into memory, load the dataset for the first category id, process, and the move to the next item in the spreadsheet, but I don't want to reload the data set 60 times. I want something that looks like this for a datatable:

select item from itemsTable
where intCategoryId in @categories


What is the best way to do this? Do I need to loop through my spreadsheet and reload the dataset for each item? Or should I build my spreadsheet information into a comma separated list or something of the sort.

Thoughts?

Cheers, --EA
AnswerRe: Dataset Question Pin
RobCroll26-Jan-11 12:51
RobCroll26-Jan-11 12:51 
GeneralRe: Dataset Question Pin
eddieangel26-Jan-11 12:58
eddieangel26-Jan-11 12:58 
GeneralRe: Dataset Question Pin
RobCroll26-Jan-11 13:22
RobCroll26-Jan-11 13:22 
GeneralRe: Dataset Question Pin
eddieangel26-Jan-11 13:30
eddieangel26-Jan-11 13:30 
GeneralRe: Dataset Question Pin
RobCroll26-Jan-11 14:43
RobCroll26-Jan-11 14:43 
AnswerRe: Dataset Question Pin
PIEBALDconsult26-Jan-11 13:46
mvePIEBALDconsult26-Jan-11 13:46 
GeneralRe: Dataset Question Pin
eddieangel26-Jan-11 13:48
eddieangel26-Jan-11 13:48 
GeneralRe: Dataset Question Pin
PIEBALDconsult26-Jan-11 14:11
mvePIEBALDconsult26-Jan-11 14:11 
Questionwhat the code of this Pin
Nabawoka26-Jan-11 11:04
Nabawoka26-Jan-11 11:04 
AnswerRe: pleaaaaaaaase important and now iam in exam online the solution of this ????? PinPopular
Pete O'Hanlon26-Jan-11 11:11
mvePete O'Hanlon26-Jan-11 11:11 
AnswerRe: pleaaaaaaaase important and now iam in exam online the solution of this ????? Pin
TheGreatAndPowerfulOz26-Jan-11 11:11
TheGreatAndPowerfulOz26-Jan-11 11:11 
AnswerRe: what the code of this PinPopular
Paladin200026-Jan-11 11:22
Paladin200026-Jan-11 11:22 
GeneralRe: what the code of this Pin
Pete O'Hanlon26-Jan-11 11:26
mvePete O'Hanlon26-Jan-11 11:26 
GeneralRe: what the code of this Pin
Nabawoka26-Jan-11 11:26
Nabawoka26-Jan-11 11:26 
GeneralRe: what the code of this Pin
AspDotNetDev26-Jan-11 11:31
protectorAspDotNetDev26-Jan-11 11:31 
GeneralRe: what the code of this Pin
Nabawoka26-Jan-11 11:34
Nabawoka26-Jan-11 11:34 
GeneralRe: what the code of this Pin
TheGreatAndPowerfulOz26-Jan-11 11:49
TheGreatAndPowerfulOz26-Jan-11 11:49 

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.