我希望将这句话存储在SQL中 “ WorkForceNow(WFN):生产:DS适用于培训农场的新架构”
我的插入代码:
Dim sqq, sqq1 As New SqlConnection
sqq.ConnectionString = "##Conection string##"
sqq.Open()
Dim sqq2 As String = "Insert into [Reviews] values('" & TextBox1.Text & "')"
Dim cmd1 As New SqlCommand(sqq2, sqq)
cmd1.ExecuteNonQuery()
sqq.Close()
错误:
字符串或二进制数据将被截断。声明一直如此 终止。
如何忽略SQL中的特殊符号?