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:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
334
Members:
0
Total:
334
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
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
1372
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
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
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: 3353
9/30/2013 2:25 PM
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: 3353
9/30/2013 2:31 PM
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: 3353
9/30/2013 2:39 PM
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
Taken care of. Thanks all.
Kwane McNeal
Veteran Member
Posts: 479
9/30/2013 3:03 PM
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
Yep...for which I am extremely grateful! I would have never figured all that out.
Please
login
to post a reply.