我试图根据在TextBox1的。我是在下面的代码得到错误给出的名称创建一个表表时:正确语法创建自TextBox名
附近有语法错误拉梅什“。
这里Ramesh是文本框中的值。
string Customername = Textbox1.text
SqlCommand cmd7 = new SqlCommand("CREATE TABLE '" + CustomerName + "' (ItemCode int,Quantity int,PricePerQuantity int,Brand char(50),Discount int , DateTime datetime)",connection
谢谢。是的,我尝试过使用这个,错误消失了,但表格并未在数据库中创建。 –