Question: Hi everyone, I need a help in C# and SQL server. i want to create a list or array in c# to save a distinct

Hi everyone, I need a help in C# and SQL server.

i want to create a list or array in c# to save a distinct data column from data base and save data to list or array.

this is my sql qurey which is work fine

select distinct BatchId from _ImportAPCWageIndex

but i need a help to save these data from sql server in to the list or array.

is anybody can help, me please?

best regards.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!