MS SQL Server - "incorrect syntax near" error.
Posted: Wed 02 Nov 2016 10:21
Hi,
Using Delphi 10.1 Update 1, UniDAC 6.4.14, MS SQL Server 2012 64bit.
Below is my table structure:
I have below SQL which is dislpayed on a DBGrid with Editing allowed.
I can edit *any* column directly in the grid. When automatically posting (when changing records by arrow keys) I get subject error. Depending on field data type error displayed as:
- Incorrect syntax near "NVARCHAR"
- Incorrect syntax near "FLOAT"
Sample project and sample database backup file including records can be found in below link:
record_edit.7z
I appreciate any solution as I need to fix that pretty fast.
Thanks.
Using Delphi 10.1 Update 1, UniDAC 6.4.14, MS SQL Server 2012 64bit.
Below is my table structure:
Code: Select all
CREATE TABLE kurlar(
tarih date NOT NULL,
kur nvarchar(10) NOT NULL,
da float NULL,
ds float NULL,
ea float NULL,
es float NULL,
ckusd float NULL,
ckdiger float NULL,
serbest float NULL,
CONSTRAINT [PK_kurlar] PRIMARY KEY CLUSTERED
(
tarih ASC,
kur ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Code: Select all
select tarih, kur as "Döviz Cinsi", da as "Döviz Alış", ds as "Döviz Satış", ea as "Efektif Alış", es as "Efektif Satış", Serbest as "Serbest Piyasa"
from kurlar
where tarih = :tarih
- Incorrect syntax near "NVARCHAR"
- Incorrect syntax near "FLOAT"
Sample project and sample database backup file including records can be found in below link:
record_edit.7z
I appreciate any solution as I need to fix that pretty fast.
Thanks.