varchar to nvarchar: TStringField to TWideStringField? How?

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
brace
Posts: 227
Joined: Wed 14 Feb 2007 08:26

varchar to nvarchar: TStringField to TWideStringField? How?

Post by brace » Tue 14 Jul 2009 13:55

Hello
I am using Delphi 2009 and Latest SDAC(470).

I changed all my DB varchar(n) fields to nvarchar(n) to support unicode.
These fields which were earlier generated as TStringField (using Fields Editor of TMSQuery Component)
now i need to change them TWideStringField while i expected them to be either changed automatically or automatically taken care without any change.
Can u please suggest the way to handle this issue, because changing this in entire program may not be feasible.

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Wed 15 Jul 2009 09:12

We do not provide any automation for this purpose. You can use any tool that has the "replace in files" functionality to change your *.pas and *.dfm files.

brace
Posts: 227
Joined: Wed 14 Feb 2007 08:26

Post by brace » Wed 15 Jul 2009 10:17

Ok, so I will use the technique (with free tool NotePad++).
I just aked to see if there was a better way.
Thanks.

ninken
Posts: 8
Joined: Thu 05 Apr 2007 18:31
Location: USA

Replace

Post by ninken » Wed 15 Jul 2009 16:23

I belive the GExpert Tools can do that for you.

http://www.gexperts.org/

Post Reply