C
Join ServerC#
help
✅ Csharp returns nothing while reading SQL data table
Mmorry32911/30/2022
My current code is here: https://pastebin.com/0kwPVGWm
It was supposed to return the whole content of my SQL datatable (it's just an easy peasy table with 2 Columns and 2 rows). But if I run this C# program it returns absolutely nothing. What have I done wrong potentially?
It was supposed to return the whole content of my SQL datatable (it's just an easy peasy table with 2 Columns and 2 rows). But if I run this C# program it returns absolutely nothing. What have I done wrong potentially?
TTheRanger11/30/2022
make sure there is commited data in ur table
TTheRanger11/30/2022
also try deleting line 17 and change line 16 to
string sql = "SELECT * FROM mytable";
Mmorry32911/30/2022
Thank you so much! It worked 🙂
AAccord11/30/2022
Closed!