Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Infor / Lawson Platforms
S3 Systems Administration
bldmsf2000ddl assistance
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Brady
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5274
People Online:
Visitors:
516
Members:
0
Total:
516
Online Now:
New Topics
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Infor / Lawson Platforms
S3 Systems Administration
bldmsf2000ddl assistance
Please
login
to post a reply.
8 Replies
0
Subscribed to this topic
27 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
CindyW
Veteran Member
Posts: 169
9/27/2013 8:51 PM
We have a testing data area that has been updated with lots of patches, far beyond our production version. One or more of those patches required reorgs. ( This was just a few months ago.) Our users test the new patches as they can.
Recently, we needed a program tested for a certain scenario, and the data area was refreshed with data from Production. Oops. Now we have a data mismatch situation, for several tables. We've dealt with this mismatch thing before, but not to this degree - not this many objects. BLDDBDICT won't create anything since it thinks all is okay, but VERIFYMSF2000 shows otherwise. So I was reading in the KB - and there is a command that we've not used before -
bldmsf2000ddl
. Looks like it creates the scripts to update the data objects, but how do I run this command to just see what it will do, rather that actually have it update the database? We have some large tables, and I see that we might need to dump and reload those. Just need to get a handle on how to use this thing. Thanks.
Roger French
Veteran Member
Posts: 549
9/30/2013 1:07 PM
Split
Just type bldmsf2000ddl and hit enter. You'll see all of the options.
The command is used for updating and creating tables, and truncating tables. You will see that it actually is used to read from your data dictionary, and then build the SQL code to build the tables/indices/etc for your SQL database(s). I use it regularly to truncate entire productlines when copying and refreshing productline data. You can use it also on individual tables too.
CindyW
Veteran Member
Posts: 169
9/30/2013 1:41 PM
Split
Yes, I know the options are listed with the command. BUt I don't understand exactly what the options are doing. For instance - the -S parameter....says "Generated DDL into files by Systemcode(s).(
.ddl)
I'm sure I should know what DDL means,
, but I've never even seen that term before. I googled it...is it just another name for SQL?
Also, which parameter will give me the results of what would be done, without actually doing it?
And lastly, if I need to KEEP all the data, is there a way to do that? I can't refresh again from anywhere else because none of the other databases match the product line data structures in this one.
What I am trying to do is correct the errors that were returned in verifymsf2000 without losing my data. I attached a screenshot of those results. I thought that bldmsf2000ddl was the way to to that...but maybe not?
John Henley
Posts: 3351
9/30/2013 2:25 PM
Split
Cindy,
DDL is "data definition language", which is the subset of SQL that defines the database schema.
As to finding out which tables are missing, you may find out that you are missing an unimportant table that can simply be re-created.
Or you may find that you are missing a very important table that invalidates your database integrity, renders the rest of the database useless, and would require that you do a complete refresh in order to have a valid database. An example would be (assuming you have HR, for instance) that you have EMPLOYEE but are missing PAEMPLOYEE.
Usually, this is the result of restoring a physical database that doesn't match the version of your applications (e.g. 9.0.0 database with 9.0.1 applications, or even just a service pack difference).
In other words, you really need to look at how the database was refreshed.
John Henley
Posts: 3351
9/30/2013 2:31 PM
Split
To answer you specific question, using the -U parameter is what actually connects to the database to make the changes.
So if you leave off that parameter, it will just generate the DDL/SQL to create the table definition, but not actually create the table.
John Henley
Posts: 3351
9/30/2013 2:39 PM
Split
So, for a specific table, say "EMPLOYEE":
bldmsf2000ddl -R prod HR EMPLOYEE
will generate SQL to drop and create the table and indexes
bldmsf2000ddl -RI prod HR EMPLOYEE
will generate SQL to drop and create the indexes
bldmsf2000ddl -RT prod HR EMPLOYEE
will generate SQL to drop and create the table without the indexes
bldmsf2000ddl -UR prod HR EMPLOYEE
will generate SQL to drop and create the table and indexes
-- AND ACTUALLY make the changes in the database (in other words, you will LOSE YOUR DATA IN THAT TABLE).
If all you want to do is capture the SQL, you can output the command output to a file using the > (>) like this:
bldmsf2000ddl -R prod HR EMPLOYEE
>create_employee.sql
will generate SQL to drop and create the table and indexes
CindyW
Veteran Member
Posts: 169
9/30/2013 3:00 PM
Split
Taken care of. Thanks all.
Kwane McNeal
Veteran Member
Posts: 479
9/30/2013 3:03 PM
Split
John,
I walked Cindy through the processes for each table, since I'm familiar with their setup.
Kwane
CindyW
Veteran Member
Posts: 169
10/8/2013 6:48 PM
Split
Yep...for which I am extremely grateful! I would have never figured all that out.
Please
login
to post a reply.