I don't know if this is really needed... but I would like write as robust code as possible, so:
What SqlDbType
should be used when creating a table? SqlDbType.NChar
? Or would there be a problem with a Unicode table name? Or perhaps one of the Var
types because the length is unknown? I'm used to thinking about these types in the context of a database row, not table, so I'm not sure what should be used here.
EDIT
For example, a line like:
sqlCommand.Parameters.Add(new SqlParameter(parameterName,SqlDbType.NChar){ Value = value });
for a CREATE TABLE
command.