How can I use a dynamic table name in the below SQL query?
"INSERT INTO `tableName` (`ADUC`, `DHCP`, `DISK`, `DNS`, `Exchange`, `HOSTNAME`, `HWID`, `IP`, `OS`) values (@aduc,@dhcp,@disk,@dns,@exchange,@hostname,@hwid,@ip,@os)"
Currently I am declaring tableName via
Dim tableName = My.Computer.Name.ToString
I want the table name to reflect the computers name as that's what I've created within PhpMyAdmin, so any thoughs on how to do this?
Please note: that the ``needs to stay either side of the table name to support hyphenated table names in the query.