×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
We received an SQL script from one of our off-site developers, an SQL
expert who doesn't know scat about AS/400s, one that apparently runs
fine on DB2 for Unix/Linux, but failed miserably when I tested it on our
V6 box.
Even if I *could* publish all 938 lines of it, I wouldn't burden the
List with it. Instead, a rough summary of the thing, with my abridgments
in <angle brackets>:
--==============================================================
-- DBMS name: IBM DB2 UDB 9.7 Common Server
-- Created on: 2012/8/7 0:46:18
--==============================================================
alter table B_User_Roles
drop foreign key F_Relationship_20;
alter table B_User_Roles
drop foreign key F_Relationship_21;
<and so forth, a bunch of "alter table" statements for tables that don't
exist yet, which the developer *says* shouldn't stop the script from
creating the files from scratch>
drop table B_Groups;
drop table B_Roles;
drop table B_Settings;
drop index Relationship_21_FK;
drop index Relationship_20_FK;
drop table B_User_Roles;
<and so forth, dropping any existing files in the library>
--==============================================================
-- Table: B_Groups
--==============================================================
create table B_Groups
(
group_id NUMERIC(20) not null,
name VARCHAR(50) not null,
description VARCHAR(200),
constraint P_Identifier_1 primary key (group_id)
);
--==============================================================
-- Table: B_Roles
--==============================================================
create table B_Roles
(
role_id NUMERIC(20) not null,
name VARCHAR(50) not null,
description VARCHAR(100),
type SMALLINT,
is_grantable SMALLINT,
function_name VARCHAR(50),
object_id NUMERIC(20),
object_type INTEGER,
constraint P_Identifier_1 primary key (role_id)
);
--==============================================================
-- Table: B_Settings
--==============================================================
create table B_Settings
(
setting_id NUMERIC(20) not null,
name VARCHAR(50) not null,
content VARCHAR(1024),
owner_type SMALLINT,
owner_id NUMERIC(20),
constraint P_Identifier_1 primary key (setting_id)
);
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.