when I create a new sql-table, I get an error message, but the table is being created anyway, exactly as I want the table to be. Any ideas, how I won't get an error but still the same table?
This is my code:
- Code: Select all Expand view
function neue_tabelle()
local cExec
cExec := "CREATE TABLE test ("+;
"id INT NOT NULL AUTO_INCREMENT, "+;
"name VARCHAR(50), "+;
"place VARCHAR(50), "+;
"PRIMARY KEY (id) )"
oConSql:Execute(cExec)
return .t.
and this the error I get:
Application
===========
Path and name: C:\FWH\samples\1sql.exe (32 bits)
Size: 1,573,888 bytes
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 09/27/08, 12:53:16
Error description: Error ADODB.Connection/0 S_OK: EXECUTE
Args:
[ 1] = C CREATE TABLE test (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(50), place VARCHAR(50), PRIMARY KEY (id) )
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:EXECUTE(0)
Called from: 1sql.prg => NEUE_TABELLE(90)
Called from: 1sql.prg => (b)BUILDMENU(125)
Called from: .\source\classes\MENU.PRG => TMENU:COMMAND(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND(0)
Called from: .\source\classes\MDIFRAME.PRG => TMDIFRAME:COMMAND(0)
Called from: => TMDIFRAME:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE(0)
Called from: 1sql.prg => MAIN(37)