There is a space missing between
Table
and
TableName
. Secondly query is not properly formatted(single quote):
SqlConnection con = new SqlConnection(@"Data Source=ABHINAV-PC\SQLEXPRESS;Initial Catalog=E1;Integrated Security=True;");
con.Open();
string str = "CREATE TABLE "+ textBox1.Text +" (userid number(10), password varchar2(20), email varchar2(20));";
SqlCommand cmd = new SqlCommand(str, con);
cmd.ExecuteNonQuery();