No, that won't work because
dt
is a DataTable in your C# code, and the SQL is very likely to to running on a totaly diffferent machine. So passing the name of your c# object as part of the command string is never goign to work...
Instead, look at using SqlBulkCopy:
SqlBulkCopy.WriteToServer Method (DataTable)[
^]