Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COLLATE on VFP and backend
Message
From
26/09/2003 05:49:06
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00832332
Message ID:
00832593
Views:
15
Hi Sergey,

----------------
Hi Fabio,

I think it's
Latin1_General_CI_AS
------------------

Also I thought it, but he is not therefore!

VFP COLLATE GENERAL not exists on SQL Server.

Example:
VFP
SET COLLATE TO "GENERAL"
IF CHR(32)=CHR(9)
  ? '='
ELSE
 ? '#'
ENDIF
Result is =

On SQL_Server
IF CHAR(32) COLLATE Latin1_General_CI_AS =CHAR(9) COLLATE Latin1_General_CI_AS
  SELECT '='
ELSE
 SELECT '#'
Result is #

I have write a complete routine for compare VFP COLLATE with SQL COLLATE.

Only MACHINE match with Latin1_General_BIN.

I have confidence in the collate ones of SQL_Server.
In-fact on SQL_Server with COLLATE Latin1_General_CI_AS:
'0'<'¼'<'½'<'1'
on VFP with SET COLLATE TO "GENERAL":
'¼'<'½'<'0'<'1'
Then, VFP "GENERAL" what is it ?

Exists one international norm on the COLLATE?

If i use VFP like front-end, Crystal Report like reporting i can
give different ordered result. Other problem exist.

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform