NText fields not working with D2010.
Posted: Sat 26 Sep 2009 22:00
Hi guys,
The following test works on Delphi 2009, but doesnt on Delphi 2010 using MSSQL Server 2005.
We have a table with a ntext field, now it can be any table but just for the exercise, I'm including the script of the table we are using:
CREATE TABLE [dbo].[SYSTEM_Template_Text](
[TemplateID] [int] NOT NULL,
[LanguageID] [int] NOT NULL CONSTRAINT [DF_SYSTEM_Template_Text_LanguageID] DEFAULT ((0)),
[Content] [ntext] NULL,
[Enabled] [bit] NOT NULL CONSTRAINT [DF_SYSTEM_Template_Text_Enabled] DEFAULT ((1)),
[Created] [datetime] NOT NULL CONSTRAINT [DF_SYSTEM_Template_Text_Created] DEFAULT (getdate()),
[CreatedBy] [int] NULL,
[Updated] [datetime] NULL,
[UpdatedBy] [int] NULL,
CONSTRAINT [PK_SYSTEM_Template_Text] PRIMARY KEY CLUSTERED
(
[TemplateID] ASC,
[LanguageID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
Now the problem is that if you do a normal client/server app, and read those values from the table it will return all the other values, but it will not return any data on the ntext field. The same situation will work with no problems on D2009.
We are using the latest driver version that supports D2010.
Any help, hot fix is highly appreciated.
The following test works on Delphi 2009, but doesnt on Delphi 2010 using MSSQL Server 2005.
We have a table with a ntext field, now it can be any table but just for the exercise, I'm including the script of the table we are using:
CREATE TABLE [dbo].[SYSTEM_Template_Text](
[TemplateID] [int] NOT NULL,
[LanguageID] [int] NOT NULL CONSTRAINT [DF_SYSTEM_Template_Text_LanguageID] DEFAULT ((0)),
[Content] [ntext] NULL,
[Enabled] [bit] NOT NULL CONSTRAINT [DF_SYSTEM_Template_Text_Enabled] DEFAULT ((1)),
[Created] [datetime] NOT NULL CONSTRAINT [DF_SYSTEM_Template_Text_Created] DEFAULT (getdate()),
[CreatedBy] [int] NULL,
[Updated] [datetime] NULL,
[UpdatedBy] [int] NULL,
CONSTRAINT [PK_SYSTEM_Template_Text] PRIMARY KEY CLUSTERED
(
[TemplateID] ASC,
[LanguageID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
Now the problem is that if you do a normal client/server app, and read those values from the table it will return all the other values, but it will not return any data on the ntext field. The same situation will work with no problems on D2009.
We are using the latest driver version that supports D2010.
Any help, hot fix is highly appreciated.