Insert Record Error MS SQL2000

Questions and answers regarding general SQL and backend databases

Insert Record Error MS SQL2000

Postby mpwiedemann » Thu Jun 19, 2003 7:40 pm

Hello,

I have a simple table that has an auto incremented primary key. I have set the Servoy dataprovider PK to 'managed by database'. I keep getting this error when creating a record.


java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near ','. [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near ','.
mpwiedemann
 
Posts: 49
Joined: Sun Jun 01, 2003 9:08 pm
Location: Seattle, WA

Postby Jan Aleman » Fri Jun 20, 2003 6:08 am

The primary key has to be managed by Servoy, you can have other auto increments be managed by the database but not the primary key. There is no generic way to get database increments back through JDBC currently so we can't support PK's managed by the database. We are looking at implementing database specific routines to be able to support this functionality.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby mpwiedemann » Fri Jun 20, 2003 7:52 am

Thanks Jan.
mpwiedemann
 
Posts: 49
Joined: Sun Jun 01, 2003 9:08 pm
Location: Seattle, WA


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 15 guests

cron