I am new to SQL Server so sorry if my question seems trivial but I have not been able to find a good answer to this or at least one that I can utilize.
My problem is that I need to use sql datareader to get table GUIDs which I will use later to insert entries into another database. Closing the datareader disposes of all information inside of it and I have not been able to find how to return the datareader values so that I can call them later in my code. How do you return or store datareader values to be called upon later?
List<T>(any other generic collection or just array)