sql执行后,如何知道有没有执行成功,
如下是动态生成的表,代码如下,执行不成功,但没
Dim cmdtxt As String
cmdtxt = (_Identify int Not null identity(1, 1), _Locked int, _SortKey real, Itid int, Fid int, FjID int, Sn int, Order nvarchar(255), JC int, ZFJID int, PRIMARY KEY (_Identify))
cmdtxt = "create Table " & bm1 & " JCB (" & cmdtxt & ",PRIMARY KEY (_Identify))"
cmd.CommandText = cmdtxt
cmd.ExecuteNonQuery
运行过程没有任何错误, 但将代码复制到SQL里执行就会有以下错误提示, 如何在Foxtable中获取到以下错误.
关键字 'Order' 附近有语法错误。