Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data type mapping between VFP and SQL Server
Message
From
22/04/2005 07:19:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/04/2005 02:11:18
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01006843
Message ID:
01007400
Views:
15
>Hi,
>I have an custom program that will move data from SQL Server databaseA.tableA to SQL Server databaseB.tableB using SQL Passthrough. That is situation that, some mandatory fields in databaseB.tableB are not exist in databaseA.tableA.
>
>I am trying to define 0 as logical default value (bit in SQL server) of those tableA mandatory fields in sql when retrieve tableA record. However, I faced problem that, VFP converted the the logical field mentioned above to .F./.T. for tableB which cause "operator/operand mismatch" when comparing them.
>
>Any ideas to resolve it without change the major design?
>
>Thank you

John,
Why don't you directly move from A to B?

Insert into databaseB..TableB select < fieldlist > from databaseA..TableA

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform