Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upsizing to SQL and nullable fields
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00704288
Message ID:
00704597
Views:
19
Hi!

Unfortunately, VFP upsizing wizard does not take into account all nuisances for SQL Server. When upsizing, you should manually (or create your own program) check and update SQL Server tables structure to make them at least close to VFP's structure. Problems mpstly related to primary and foreign keys, relationships, triggers, default field values, generating primary key values when new record inserted (you might want to use Identity field type on SQL Server for this) etc. In many cases this also requires changes in VFP client application, if too much VFP-specific things were used.


>I went through a test run on upsizing our database (VFP7 to SQL2K) and am now starting to go through the error report to check things out.
>
>One thing I noticed a few times is that there was a problem trying to create a primary key constraint on a nullable column in a table. When I look at the structure in VFP, the column in question is not checked off as allowing null values. Yet, when I look at the table design in SQL the column is marked as allowing nulls. With one table it's a character field and in another it's a date field.
>
>What would trigger the upsize wizard to make the column nullable in SQL? Should I be checking somewhere in the RI for this?
>
>Any info would be greatly appreciated.
>
>Laterness,
>Jon
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform