I'm using:
Code: Select all
Delphi: BDS 2009 with all updates installed.
SDAC: 4.70.0.44 Standart.
SQL Server: SQL Express 2008 Latest
OS: Windows Vista 64-Bit Up to Date with 4GB Ram
Code: Select all
CREATE TABLE [dbo].[gunlukkur] (
[gunlukkurid] bigint IDENTITY(1, 1) NOT NULL,
[gunlukkur] money CONSTRAINT [DF__gunlukkur__gunlu__060DEAE8] DEFAULT 0 NOT NULL,
[parabirimiid] bigint CONSTRAINT [DF__gunlukkur__parab__07020F21] DEFAULT 0 NOT NULL,
[parabirimi] varchar(5) COLLATE Turkish_CI_AS NOT NULL,
[tarih] datetime NOT NULL,
[tstamp] timestamp NULL,
CONSTRAINT [gunlukkur_pk] PRIMARY KEY CLUSTERED ([gunlukkurid])
)
ON [PRIMARY]
GO
Code: Select all
...binary data or string truncated error...
For eg: the latest Autoincrement field value is: 5,
if i did not got any errors the new value will be 6.
But after getting every error, the autoincrement field continues increasing / counting. But there's no data after getting the errors.
For eg: If I got 3 errors; the next successful record's autoincrement value be 9 (cause i got 3 errors this means, 6-7-8 numbered autoincrement numbers fly away), but the next successful record must be 6 cause no data entered to the table for caused by errors...
I'm using DBedits (Devexpress) and Query.Append & Query.Post for new records... not insert into queries...
Is there any way to defeat this?
thanks for helps...