inherited SDACForm: TSDACForm
  Left = 190
  Top = 236
  Caption = 'SDACForm'
  PixelsPerInch = 96
  TextHeight = 13
  inherited TVSplitter: TSplitter
    Color = clGreen
  end
  inherited pnTopLabel: TPanel
    inherited lbTitle: TLabel
      Caption = ' SDAC'
      Color = clGreen
    end
    inherited lbAbout: TLabel
      Left = 939
      Color = clGreen
    end
  end
  inherited Panel2: TPanel
    inherited Shape1: TShape
      Brush.Color = clGreen
    end
    inherited Panel1: TPanel
      Color = clGreen
    end
    inherited pnShowSource: TPanel
      Color = clGreen
    end
    inherited pnOpenDemoDir: TPanel
      Color = clGreen
    end
  end
  inherited ImageList1: TImageList
    Left = 593
    Top = 15
    Bitmap = {
[encoded data, 40115 characters]
      83FFC01F80018003FFFFC03FFFFF8003}
  end
  object MSConnection: TMSConnection
    Database = 'master'
    ConnectDialog = MSConnectDialog1
    Left = 465
    Top = 10
  end
  object MSConnectDialog1: TMSConnectDialog
    Caption = 'Connect'
    UsernameLabel = 'User Name'
    PasswordLabel = 'Password'
    ServerLabel = 'Server'
    DatabaseLabel = 'Database'
    ConnectButton = 'Connect'
    CancelButton = 'Cancel'
    LabelSet = lsCustom
    Left = 500
    Top = 10
  end
  object scCreate: TMSScript
    SQL.Strings = (
      'CREATE TABLE SDAC_Long_char ('
      '  Code INT IDENTITY (1, 1) PRIMARY KEY,'
      '  Title VARCHAR(30),'
      '  Value VARCHAR(5000)'
      ');'
      ''
      'CREATE TABLE SDAC_Pictures ('
      '  UID int IDENTITY (1, 1) PRIMARY KEY NOT NULL,'
      '  Name VARCHAR(50),'
      '  Picture IMAGE'
      ');'
      ''
      'CREATE TABLE Loaded1 ('
      '  uid INT IDENTITY (1, 1) NOT NULL PRIMARY KEY,'
      '  Field1 VARCHAR(20),'
      '  Field2 VARCHAR(20),'
      '  Field3 VARCHAR(20)'
      ');'
      ''
      'CREATE TABLE Loaded2 ('
      '  uid INT IDENTITY (1, 1) NOT NULL PRIMARY KEY,'
      '  Field1 VARCHAR(20),'
      '  Field2 VARCHAR(20),'
      '  Field3 VARCHAR(20)'
      ');'
      ''
      'CREATE TABLE ThreadTable ('
      '  ID INT,'
      '  NAME VARCHAR(30)'
      ');'
      ''
      'CREATE TABLE SDAC_Text ('
      '  UID INT IDENTITY PRIMARY KEY,'
      '  [Name] NVARCHAR(50),'
      '  TextField TEXT'
      ');'
      ''
      'CREATE TABLE Sdac_Loaded ('
      '  Code INT,'
      '  Num INT,'
      '  Num1 FLOAT,'
      '  Str VARCHAR(50),'
      '  Dat DATETIME'
      ');'
      ''
      'CREATE TABLE CRGRID_TEST('
      '  Id int PRIMARY KEY,'
      '  Name VARCHAR(10),'
      '  Country VARCHAR(30),'
      '  City VARCHAR(30),'
      '  Street VARCHAR(30),'
      '  BirthDate DATETIME,'
      '  Job VARCHAR(9),'
      '  Hiredate DATETIME,'
      '  Sal NUMERIC(7, 2),'
      '  Remarks TEXT'
      ');'
      ''
      'INSERT INTO CRGRID_TEST '
      
        '  (Id, Name, Country, City, Street, BirthDate, Job, HireDate, Sa' +
        'l)'
      'VALUES '
      
        '  (5001, '#39'SMITH'#39', '#39'ENGLAND'#39', '#39'LONDON'#39', '#39'BOND st.'#39', '#39'12-OCT-63'#39', ' +
        #39'CLERK'#39','#39'17-DEC-80'#39', 800);'
      'INSERT INTO CRGRID_TEST'
      
        '  (Id, Name, Country, City, Street, BirthDate, Job, HireDate, Sa' +
        'l)'
      'VALUES '
      
        '  (5002, '#39'ALLEN'#39', '#39'ENGLAND'#39', '#39'LONDON'#39', '#39'BAKER st.'#39', '#39'04-MAR-61'#39',' +
        ' '#39'SALESMAN'#39','#39'20-FEB-81'#39', 1600);'
      'INSERT INTO CRGRID_TEST '
      
        '  (Id, Name, Country, City, Street, BirthDate, Job, HireDate, Sa' +
        'l)'
      'VALUES '
      
        '  (5003, '#39'MARTIN'#39', '#39'FRANCE'#39', '#39'LION'#39', '#39'WEAVER st.'#39', '#39'23-JAN-57'#39', ' +
        #39'MANAGER'#39','#39'02-APR-81'#39', 2900);'
      '  '
      '  CREATE TABLE DEPT ('
      '  DEPTNO INT PRIMARY KEY,'
      '  DNAME VARCHAR(14),'
      '  LOC VARCHAR(13)'
      ');'
      'INSERT INTO DEPT VALUES (10,'#39'ACCOUNTING'#39','#39'NEW YORK'#39');'
      'INSERT INTO DEPT VALUES (20,'#39'RESEARCH'#39','#39'DALLAS'#39');'
      'INSERT INTO DEPT VALUES (30,'#39'SALES'#39','#39'CHICAGO'#39');'
      'INSERT INTO DEPT VALUES (40,'#39'OPERATIONS'#39','#39'BOSTON'#39');'
      ''
      'CREATE TABLE emp ('
      '  EMPNO int IDENTITY(1,1) NOT NULL PRIMARY KEY,'
      '  ENAME varchar(10) default NULL,'
      '  JOB varchar(9) default NULL,'
      '  MGR int default NULL,'
      '  HIREDATE datetime default NULL,'
      '  SAL float default NULL,'
      '  COMM float default NULL,'
      '  DEPTNO int default NULL'
      '  );'
      
        'INSERT INTO emp VALUES ('#39'SMITH'#39', '#39'CLERK'#39', 7902, '#39'1980-12-17 00:0' +
        '0:00'#39', 800, NULL, 20);'
      
        'INSERT INTO emp VALUES ('#39'ALLEN'#39', '#39'SALESMAN'#39', 7698, '#39'1981-02-20 0' +
        '0:00:00'#39', 1600, 300, 30);'
      
        'INSERT INTO emp VALUES ('#39'WARD'#39', '#39'SALESMAN'#39', 7698, '#39'1981-02-22 00' +
        ':00:00'#39', 1250, 500, 30);'
      
        'INSERT INTO emp VALUES ('#39'JONES'#39', '#39'MANAGER'#39', 7839, '#39'1981-04-02 00' +
        ':00:00'#39', 2975, NULL, 20);'
      
        'INSERT INTO emp VALUES ('#39'MARTIN'#39', '#39'SALESMAN'#39', 7698, '#39'1981-09-28 ' +
        '00:00:00'#39', 1250, 1400, 30);'
      
        'INSERT INTO emp VALUES ('#39'BLAKE'#39', '#39'MANAGER'#39', 7839, '#39'1981-05-01 00' +
        ':00:00'#39', 2850, NULL, 30);'
      
        'INSERT INTO emp VALUES ('#39'CLARK'#39', '#39'MANAGER'#39', 7839, '#39'1981-06-09 00' +
        ':00:00'#39', 2450, NULL, 10);'
      
        'INSERT INTO emp VALUES ('#39'SCOTT'#39', '#39'ANALYST'#39', 7566, '#39'1987-07-13 00' +
        ':00:00'#39', 3000, NULL, 20);'
      
        'INSERT INTO emp VALUES ('#39'KING'#39', '#39'PRESIDENT'#39', NULL, '#39'1981-11-17 0' +
        '0:00:00'#39', 5000, NULL, 10);'
      
        'INSERT INTO emp VALUES ('#39'TURNER'#39', '#39'SALESMAN'#39', 7698, '#39'1981-09-08 ' +
        '00:00:00'#39', 1500, 0, 30);'
      
        'INSERT INTO emp VALUES ('#39'ADAMS'#39', '#39'CLERK'#39', 7788, '#39'1987-07-13 00:0' +
        '0:00'#39', 1100, NULL, 20);'
      
        'INSERT INTO emp VALUES ('#39'JAMES'#39', '#39'CLERK'#39', 7698, '#39'1981-12-03 00:0' +
        '0:00'#39', 950, NULL, 30);'
      
        'INSERT INTO emp VALUES ('#39'FORD'#39', '#39'ANALYST'#39', 7566, '#39'1981-12-03 00:' +
        '00:00'#39', 3000, NULL, 20);'
      
        'INSERT INTO emp VALUES ('#39'MILLER'#39', '#39'CLERK'#39', 7782, '#39'1982-01-23 00:' +
        '00:00'#39', 1300, NULL, 10);'
      ''
      'GO'
      ''
      'CREATE PROCEDURE SDAC_InsertEmp  '
      #9'@ENAME'#9'nvarchar(20),'
      #9'@JOB'#9'nvarchar(10)'
      'AS'
      #9'INSERT INTO '
      #9#9'EMP (ENAME, JOB) '
      #9'VALUES'
      #9#9'(@ENAME, @JOB) '
      #9'RETURN @@Identity;'
      ''
      'GO'
      ''
      'CREATE PROCEDURE SDAC_UpdateEmp  '
      #9'@EMPNO'#9'int,'
      #9'@ENAME'#9'nvarchar(20),'
      #9'@JOB'#9'nvarchar(10),'
      '        @EMPINFO   nvarchar(30) OUTPUT'
      'AS'
      #9'UPDATE EMP'
      #9'SET '
      #9#9'ENAME = @ENAME, JOB = @JOB '
      #9'WHERE'
      #9#9'EMPNO = @EMPNO'
      '      SET @EMPINFO = CAST(@EMPNO AS nvarchar) + '#39' '#39' + @JOB'
      '      RETURN @EMPNO;'
      ''
      'GO'
      ''
      'CREATE PROCEDURE SDAC_DeleteEmp  '
      #9'@EMPNO'#9'int,'
      #9'@Result'#9'int OUTPUT'
      'AS'
      #9'DELETE Emp'
      #9'WHERE'
      #9#9'EmpNO = @EmpNO'
      #9'SET @Result = @EmpNO + 2;'
      ''
      'GO'
      ''
      'CREATE PROCEDURE "Ten Most High-Paid Employees" AS'
      'BEGIN'
      '    SET ROWCOUNT 10'
      '    SELECT Emp.EName AS TenMostHighPaidEmployees, Emp.SAL'
      '        FROM Emp'
      '        ORDER BY Emp.SAL DESC'
      '    SET ROWCOUNT 0'
      'END;'#9)
    OnError = OnScriptError
    Connection = MSConnection
    Left = 465
    Top = 45
  end
  object scDrop: TMSScript
    SQL.Strings = (
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'Loaded1]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [Loaded1];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'Loaded2]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [Loaded2];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'SDAC_Long_char]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [SDAC_Long_char];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'SDAC_Pictures]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [SDAC_Pictures];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'dbo].[SDAC_DeleteEmp]'#39') AND OBJECTPROPERTY(id, N'#39'IsProcedure'#39') =' +
        ' 1)'
      '    DROP PROCEDURE [dbo].[SDAC_DeleteEmp];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'dbo].[SDAC_InsertEmp]'#39') AND OBJECTPROPERTY(id, N'#39'IsProcedure'#39') =' +
        ' 1)'
      '    DROP PROCEDURE [dbo].[SDAC_InsertEmp];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'dbo].[SDAC_UpdateEmp]'#39') AND OBJECTPROPERTY(id, N'#39'IsProcedure'#39') =' +
        ' 1)'
      '    DROP PROCEDURE [dbo].[SDAC_UpdateEmp];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'ThreadTable]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [ThreadTable];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'SDAC_Text]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [SDAC_Text];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'SDAC_Loaded]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [SDAC_Loaded];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'dbo].[Ten Most High-Paid Employees]'#39') AND OBJECTPROPERTY(id, N'#39'I' +
        'sProcedure'#39') = 1)'
      '    DROP PROCEDURE [dbo].[Ten Most High-Paid Employees];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'CRGRID_TEST]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [CRGRID_TEST];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'SDAC_Loaded]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [SDAC_Loaded];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'emp]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [emp];'
      
        'IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'#39'[' +
        'dept]'#39') AND OBJECTPROPERTY(id, N'#39'IsUserTable'#39') = 1)'
      '    DROP TABLE [dept];')
    OnError = OnScriptError
    Connection = MSConnection
    Left = 500
    Top = 46
  end
end
