NetTalk Central

Author Topic: Import MSSQL database and reconstructing table relations  (Read 3212 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Import MSSQL database and reconstructing table relations
« on: January 16, 2012, 12:12:46 AM »
Hi,

I am about to import a huge MSSQL database into a dictionary.
Is there anyone who has experience on how to convert the MSSQL table dependencies into dct table relations without having to type a lot?

Cheers,
Rene
Rene Simons
NT14.14

rjmiller

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Email
Re: Import MSSQL database and reconstructing table relations
« Reply #1 on: January 16, 2012, 05:01:21 AM »
I have done so with small app I have created with NT 6.14.  The dependencies came correctly using the sync feature of dictionary editor in CW 8.0.8778 but it looks like there may be issues with TN 6.14 with regards to file relationships and lookups.  1 to Many relationships are identified by NT 6.14 as having links back to parent even when they do not.  This can be fixed by removal of parent tab in child update procedure but even then I have not been able to get multiple lookups to work properly in MSSQ although it does seem to work with TPS files.

I have posted regarding this and sent a couple of small test apps/dcts but have not yet heard from Bruce.

Look at the attached zip and try the apps/dcts before you go to a lot of trouble.  One of the apps is an appwizarded app from CW8 and other is a wizarded webserver app from NT6.14.  Both used the included dct.



[attachment deleted by admin]
« Last Edit: January 16, 2012, 05:08:21 AM by rjmiller »

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Import MSSQL database and reconstructing table relations
« Reply #2 on: January 19, 2012, 01:17:42 AM »
Hi,

Thanks for your reply.
Yes, it is as simple as you describe.
I imported the database structure into the DCT.
There were "only" 357 tables there and their relations.
It took some time to complete but I'm a happy acmer now.

I used the application wizzard for the new app but dared not to generate the Browses and Forms. ;)
I'll do the required ones by hand.

Cheers,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Import MSSQL database and reconstructing table relations
« Reply #3 on: January 19, 2012, 05:39:45 AM »
<cluck cluck cluck>...

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Import MSSQL database and reconstructing table relations
« Reply #4 on: January 19, 2012, 02:02:53 PM »
Yup!
Rene Simons
NT14.14