Hack Forums
[C#] [C#] SQL Table Generator [Snippet] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] [C#] SQL Table Generator [Snippet] (/showthread.php?tid=865500)



[C#] SQL Table Generator [Snippet] - xSilent - Dec 2, 2010

Here is a code that will generate a simple SQL table for you.
Spoiler (Click to View)

Use:
Make an array of the columns you want
Code
string[] columns = new string[] {"Username", "Password", "HWID", "Blah"};
GenerateQuery("TableName", columns, ref WhateverYouWantAsOutput);



* - Blimp - Dec 2, 2010

Thanks, Might help me in one of my projects.


* - laptopguy - Dec 3, 2010

Useful snippet. Cheers. 🙂