rwahdan2023
Member
- Joined
- Aug 28, 2023
- Messages
- 10
- Programming Experience
- 1-3
Hi,
I have the following code and I need to put them in a list:
SqlConnection conn1 = new SqlConnection("Server=(localdb)\\mssqllocaldb;Database=aspnet-ExpenseTracker-63f88f9b-d2f8-444d-a998-9ce2ab1e3f81;Trusted_Connection=True;MultipleActiveResultSets=true");
conn1.Open();
SqlCommand cmd = new SqlCommand("Select * from CalEvents");
List<string> thedata = new List<cmd>;
I am getting error using cmd.
I have the following code and I need to put them in a list:
SqlConnection conn1 = new SqlConnection("Server=(localdb)\\mssqllocaldb;Database=aspnet-ExpenseTracker-63f88f9b-d2f8-444d-a998-9ce2ab1e3f81;Trusted_Connection=True;MultipleActiveResultSets=true");
conn1.Open();
SqlCommand cmd = new SqlCommand("Select * from CalEvents");
List<string> thedata = new List<cmd>;
I am getting error using cmd.