C
C#2y ago
morry329#

✅ Csharp returns nothing while reading SQL data table

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?
Pastebin
databank_program - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
TheRanger
TheRanger2y ago
make sure there is commited data in ur table also try deleting line 17 and change line 16 to string sql = "SELECT * FROM mytable";
morry329#
morry329#OP2y ago
Thank you so much! It worked 🙂
Accord
Accord2y ago
Closed!
Want results from more Discord servers?
Add your server