Help to find software for a client database for emailing/post

Hi,
Im trying to find the right software to use for my small business. I have a database of around a 500 clients that i would like to be able to contact with promotions and offers by both email and post.
So the key things I am looking for are-
1. To be able to mail entire database or selections of customers (ideally if I could sort customers into designated catagories)
2. To be able to print labels for envolpopes simply, for categories or all clients
3. Ideally but definately not essential is to be able to write the emails and schedule when they are to be sent
Also my small team all have company ipads so if it could be accessed by ipad even better.
Cheers

Boot in safe mode and try again.

Similar Messages

  • Windows has the following information about this file type. This page will help you find software needed to open your file. Cannot get SEO quale loaded please help

    I cannot download as I keep getting this when I try
    Windows has the following information about this file type. This page will help you find software needed to open your file.
    File Type: Firefox Browser Extension
    File Extension: .xpi
    Description: Compressed archive of primary file installation components – used by the Mozilla installer script to setup and install various applications. You may search the following Web site for related software and information:
    Please advise how I go about downloading

    despite the workaround, it doesn't fix the real problem. It shouldn't be a huge deal for adobe to add support for multiple svn versions. Dreamweaver is the first tool i've used that works with svn that doesn't support several types of svn meta data. If they're going to claim that Dreamweaver supports svn is should actually support svn, the current version, not a version several years old. This should have been among the first patches released, or at least after snow leopard came out (and packaged with it the current version of svn).
    does anyone know if the code that handles meta data formatting is something that is human readable, or where it might be, or is it in compiled code.
    i signed up for the forums, for the sole purpose of being able to vent about this very frustrating and disappointing situation.

  • Replacement for F1F logical database for ECC 6.0

    Hi to all experts.
    What is the replacement for F1F logical database in ECC 6.0.

    Hi,
    it's logical database FMF. More info about conversion is in OSS note 403150.
    Cheers

  • Help - cannot find digital copy movie on iPad for flight tomorrow

    Ok.  I'm not apple intelligent... But I do OK.  Flying with my 2, 3 year old and 5 month old alone....  I purchased the blu-ray combo pack today of despicable me for the kids tomorrow on the plane!  I only have my iPad.... So I downloaded iTunes onto my parents computer, authorized it, loaded the digital copy into iTunes (shows up and plays from computer) and synced without problems....so I thought.  I cannot find the movie anywhere on my ipad2 tho!  I can only find options for songs and some TV programs we have from iTunes.  The only videos in the Video option are music videos that came with a CD purchase.  HELP QUICK PLEASE!  The insert with the movie says it is compatible with iTunes and Apple devices/mobile devices?

    Ok.  Only music videos shows up on the videos options.  I tap all around and no other options.  I looked in advanced options and the iPad/iPod option is greyed out. 
    Think my iPad synced to my computer.... So for me to sync my computer to my iPad (as in just the movie...) it will erase everything?  I feel like I should be ale to drag it over, but I get a red no circle when I try that......

  • Help to Find Pro*C in installation disk for windows

    I need to install in a 9.2.0 db on windows the Pro*C/C++ precompiler (it seems that all components were not installed when the software was installed).
    I cannot find the component in a customized installation selection. Can someone help me?

    I found the solution in this thread:
    Proc/c++

  • Please help in finding the bug in this BDC for FB01

    Please find the bug in the following BDC for FB01 of mine. It picks up the entries from the very first record of the excel file, every time.
    report ZFI_BDC
           no standard page heading line-size 255.
    data: bdcdata1 like bdcdata occurs 0 with header line.
    data : vf_index type i.
    DATA: BEGIN OF ENTRIES occurs 0,
            BLDAT(8),
            BUKRS(4),
            BLART(2),
            WAERS(5),
            BUDAT(8),
            RECNO(5),
            NEWBS(2),
            NEWKO(17),
            NEWNUM(1),
            WRBTR(13),
            GSBER(4),
            SECCO(4),
            zuonr(18),
            SGTXT(50),
            NEWBS_2(2),
            NEWKO_2(17),
            NEWNUM_2(1),
            WRBTR_2(13),
            GSBER_2(4),
            SECCO_2(4),
            zuonr_2(18),
            SGTXT_2(50),
            no type i,
    END OF ENTRIES.
    DATA: BEGIN OF ENTRIES2 OCCURS 0 ,
            BLDAT(8),
            BUKRS(4),
            BLART(2),
            WAERS(5),
            BUDAT(8),
            RECNO(5),
            NEWBS(2),
            NEWKO(17),
            NEWNUM(1),
            WRBTR(13),
            GSBER(4),
            SECCO(4),
            zuonr(18),
            SGTXT(50),
            NEWBS_2(2),
            NEWKO_2(17),
            NEWNUM_2(1),
            WRBTR_2(13),
            GSBER_2(4),
            SECCO_2(4),
            zuonr_2(18),
            SGTXT_2(50),
            no type i,
    END OF ENTRIES2.
    DATA: TEMP(8),
          DOCDATE(8),
          SPLGL(1),
          PKEY(2),
          GL(17),
          VCHAMT(13),
          BUSAREA(4),
          SECCODE(4),
          zzuonr(18),
          COSTCEN(10),
          AUFNR(3),
          SGTXT(50),
          item(50)           TYPE c,
          DS TYPE I,
          DS2 TYPE I.
    data : vf_start_col type i value '1',      "start column
           vf_start_row type i value '1',      "start row
           vf_end_col   type i value '256',    "maximum column
           vf_end_row   type i value '65536',  "maximum row
           p_text(20).                         "stores error messages
    Internal Table
    data : it_excel type  kcde_cells occurs 0 with header line.
    */ Field symbol
    field-symbols : <fs>.
    parameters: p_file   LIKE rlgrap-filename MEMORY ID M01,
                NOHEADER AS CHECKBOX.
    parameters: COMPANY(4) TYPE C DEFAULT 'SCL',
                GROUP(12) TYPE C DEFAULT 'BDCTEST',
                USER(12) TYPE C DEFAULT SY-UNAME,
                KEEP(1) TYPE C DEFAULT 'X',
                POSTDATE LIKE SY-DATUM DEFAULT SY-DATUM,
                DOC_TYPE(2) TYPE C DEFAULT 'SA',
                HOLDDATE LIKE SY-DATUM.
    ***********************************************upload data from excel
    CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
      EXPORTING
        filename                      = p_file
        i_begin_col                   = VF_START_COL
        i_begin_row                   = VF_START_ROW
        i_end_col                     = VF_END_COL
        i_end_row                     = VF_END_ROW
      tables
        intern                        = IT_EXCEL
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3 .
    IF sy-subrc <> 0.
              WRITE: / 'EXCEL UPLOAD FAILED :', p_file, SY-SUBRC.
    else.
      sort it_excel by row col.
          loop at it_excel.
         IF NOHEADER = 'X'
        AND It_EXCEL-row = 1.
          CONTINUE.
        ENDIF.
         vf_index = it_excel-col.
       assign component vf_index of structure ENTRIES to <fs>.
            move  it_excel-value to <fs>.
          at end of row.
            append ENTRIES.
            clear ENTRIES.
          endat.
          endloop.
      endif.
    start-of-selection.
    DS = 1.
    LOOP AT ENTRIES.
    ENTRIES-NO = DS.
    MODIFY ENTRIES.
    DS = DS + 1.
    *ON CHANGE OF ENTRIES-zuonr.
    *DS = 1.
    *ENTRIES-NO = DS.
    *MODIFY ENTRIES.
    *DS = DS + 1.
    *ENDON.
    ENDLOOP.
    LOOP AT ENTRIES where no = 1.
        MOVE-CORRESPONDING  ENTRIES TO ENTRIES2.
    APPEND ENTRIES2.
    CLEAR ENTRIES2.
      ENDLOOP.
    DS2 = 1.
    LOOP AT ENTRIES2.
    ENTRIES2-NO = DS2.
    MODIFY ENTRIES2.
    DS2 = DS2 + 1.
    *ON CHANGE OF ENTRIES2-zuonr.
    *DS2 = 1.
    *ENTRIES2-NO = DS2.
    *MODIFY ENTRIES2.
    *DS2 = DS2 + 1.
    *ENDON.
    ENDLOOP.
    LOOP AT ENTRIES.
    REFRESH BDCDATA1.
      WRITE: /  ENTRIES-RECNO,
                ENTRIES-NEWBS,
                ENTRIES-NEWKO,
                ENTRIES-NEWNUM,
                ENTRIES-WRBTR,
                ENTRIES-GSBER,
                ENTRIES-SECCO,
                ENTRIES-ZUONR,
                ENTRIES-SGTXT.
    ENDLOOP.
    WRITE: / 'THIS IS THE BDC PROGRAM FOR SAMTEL'.
    TEMP = POSTDATE.
    DOCDATE = TEMP+6(2).
    DOCDATE2(2) = TEMP4(2).
    DOCDATE4(4) = TEMP0(4).
    *delete ENTRIES where no = 1.
    delete ENTRIES2 where no = 2.
    clear ENTRIES.
    clear ENTRIES2.
    LOOP AT ENTRIES .
    if ENTRIES-no = 2.
    perform bdc_dynpro      using 'SAPMF05A' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-NEWKO'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BKPF-BLDAT'            "DOCDATE.
                                   ENTRIES-BLDAT.
    perform bdc_field       using 'BKPF-BLART'            "DOC_TYPE.
                                   ENTRIES-BLART.
    perform bdc_field       using 'BKPF-BUKRS'            "COMPANY.
                                   ENTRIES-BUKRS.
    perform bdc_field       using 'BKPF-BUDAT'            "DOCDATE.
                                   ENTRIES-BUDAT.
    perform bdc_field       using 'BKPF-WAERS'            "INR'.
                                   ENTRIES-WAERS.
    perform bdc_field       using 'RF05A-NEWBS'
                                  ENTRIES-NEWBS.
    perform bdc_field       using 'RF05A-NEWKO'
                                  ENTRIES-NEWKO.
    perform bdc_dynpro      using 'SAPMF05A' '0300'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BSEG-SGTXT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COBL-GSBER'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_field       using 'COBL-GSBER'
                                  ENTRIES-GSBER.
    perform bdc_dynpro      using 'SAPMF05A' '0300'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-NEWKO'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT.
    perform bdc_field       using 'RF05A-NEWBS'
                                  ENTRIES-NEWBS.
    perform bdc_field       using 'RF05A-NEWKO'
                                  ENTRIES-NEWKO.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COBL-GSBER'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_field       using 'COBL-GSBER'
                                  ENTRIES-GSBER.
    perform bdc_dynpro      using 'SAPMF05A' '0301'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'BSEG-SGTXT_2'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR_2.
    perform bdc_field       using 'BSEG-GSBER'
                                  ENTRIES-GSBER_2.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT_2.
    perform bdc_dynpro      using 'SAPMF05A' '0301'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BSEG-WRBTR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR_2.
    perform bdc_field       using 'BSEG-GSBER'
                                  ENTRIES-GSBER_2.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT_2.
    call transaction 'F-02' using bdcdata1 mode 'A'.
    else.
    perform bdc_dynpro      using 'SAPMF05A' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-NEWKO'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BKPF-BLDAT'            "DOCDATE.
                                   ENTRIES-BLDAT.
    perform bdc_field       using 'BKPF-BLART'            "DOC_TYPE.
                                   ENTRIES-BLART.
    perform bdc_field       using 'BKPF-BUKRS'            "COMPANY.
                                   ENTRIES-BUKRS.
    perform bdc_field       using 'BKPF-BUDAT'            "DOCDATE.
                                   ENTRIES-BUDAT.
    perform bdc_field       using 'BKPF-WAERS'            "INR'.
                                   ENTRIES-WAERS.
    perform bdc_field       using 'RF05A-NEWBS'
                                  ENTRIES-NEWBS.
    perform bdc_field       using 'RF05A-NEWKO'
                                  ENTRIES-NEWKO.
    perform bdc_dynpro      using 'SAPMF05A' '0300'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BSEG-SGTXT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COBL-GSBER'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_field       using 'COBL-GSBER'
                                  ENTRIES-GSBER.
    perform bdc_dynpro      using 'SAPMF05A' '0300'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-NEWKO'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT.
    perform bdc_field       using 'RF05A-NEWBS'
                                  ENTRIES-NEWBS_2.
    perform bdc_field       using 'RF05A-NEWKO'
                                  ENTRIES-NEWKO_2.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'COBL-GSBER'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_field       using 'COBL-GSBER'
                                  ENTRIES-GSBER_2.
    perform bdc_dynpro      using 'SAPMF05A' '0301'.
    **perform bdc_field       using 'BDC_CURSOR'
                                 'BSEG-SGTXT_2'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR_2.
    perform bdc_field       using 'BSEG-GSBER'
                                  ENTRIES-GSBER_2.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT_2.
    perform bdc_dynpro      using 'SAPMF05A' '0301'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'BSEG-WRBTR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  ENTRIES-WRBTR_2.
    perform bdc_field       using 'BSEG-GSBER'
                                  ENTRIES-GSBER_2.
    perform bdc_field       using 'BSEG-SGTXT'
                                  ENTRIES-SGTXT_2.
    call transaction 'F-02' using bdcdata1 mode 'A'.
    endif.
    ENDLOOP.
    clear entries.
    refresh entries.
           Start new screen                                              *
    form bdc_dynpro using program dynpro.
       clear bdcdata1.
      bdcdata1-program  = program.
      bdcdata1-dynpro   = dynpro.
      bdcdata1-dynbegin = 'X'.
    append bdcdata1.
    endform.
           Insert field                                                  *
    form bdc_field using fnam fval.
       clear bdcdata1.
        bdcdata1-fnam = fnam.
        bdcdata1-fval = fval.
    append bdcdata1.
    endform.

    Alok,
    1) Write upload data from excel in Start of selection
    2) I could not find any need for table entries2 in the logic.
    3) I feel the data mapping from the uploaded file is wrong. Can you look into http://www.sapdevelopment.co.uk/file/file_upexcelalt1.htm for the proper usage. Actually, this logic will work. Similar way you can map the data to your internal table <b>entries</b>
    4) BDC part I feel its ok.
    Let me know if you have still error after these steps.
    Rgds,
    TM

  • I need help to find software to bring back deleted photos and texts, please?

    I synced my phone to my computer, and then my computer got wet... My syncs were not up to date (I know!) so I've lost tons of photos and texts. I know there is software that can help, but would appreciate a recommendation.
    Thanks!

    You've checked the purchase history on your account via your computer's iTunes (Store > View My Account), and you haven't got any auto-renewing subscriptions ? If you don't recognise the charges then contact iTunes support (these are user-to-user forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption.

  • Md5sum for Oracle 9i database for linux files

    Hello!
    Can anyone provide the md5sum for the following files?
    Linux9i_Disk1.cpio.gz
    Linux9i_Disk2.cpio.gz
    Linux9i_Disk3.cpio.gz
    Thanks,
    Anders Hermansen

    user464965 wrote:
    OK ... Using DB <font face="tahoma,verdana,sans-serif" size="1" color="#000">version</font> 10.1.0.5 :
    select XMLType.getStringVal(t.xml_data) my_data from mySchema.myTable t where t.myKey = '1'
    my_data
    ==================
    <WAREHOUSE whNo="101">
    <BUILDING>Brick</BUILDING>
    </WAREHOUSE>
    <P>update mySchema.myTable t set t.xml_data = XMLType.appendChildXml(t.xml_data, '/Warehouse', XMLType('<COLOR>red</COLOR>')) where t.myKey = '1'
    ORA-19039: Keyword APPENDCHILDXML reserved for future use
    ORA-06512: at "SYS.XMLTYPE", line 230
    ORA-06512: at line 1</P>It's quite useful, Thanks for your effort!

  • Help in finding the material for the OCA exam

    Hi Folks
    Could someone help me finding some handy and free material for preparing for OCA examination....
    Cheers

    Oracle Documentation is the best free material for preparing for OCA Exam.

  • Installations of 10G database for Demantra

    Hi
    I am trying to install 10g client database for demantra installations. I am not a DBA, but funtional person.
    I am getting various error. Is there a way to get some help on installations of database and demantra for self study?
    The error is as follows:
    The selected Oracle Client is mising the crucial utility (ies) utility
    Shah
    Edited by: user11991871 on Feb 9, 2010 8:32 AM

    I don't know what you posted but it is not an Oracle error message. It may be part of one but not the entire message.
    If you want help you need to provide enough information for us to know what you were doing, on what hardware and operating system, with what Oracle software, etc.

  • Failed to initialize MSDB database for tuning (exit code: -1073741819). (DTAClient)

    Hello,
    This is the first time I am using this forum. I am stuck and need some help. I received this error message both on SQL 2005 and 2008. I am currently using SQL 2008 DEV for testing purposes and I am experiencing this error message when trying to connect to Database Engine Tuning Advisor. I am using the SA account so I should not have any security issues. Also this is a fresh install of SQL 2008 DEV on a fresh install of Windows XP Pro with all SP. Can some please help.
    Error:
    "Failed to initialize MSDB database for tuning (exit code: -1073741819). (DTAClient)"
    ===================================
    Failed to open a new connection.
    ===================================
    Failed to initialize MSDB database for tuning (exit code: -1073741819). (DTAClient)
    Program Location:
       at Microsoft.SqlServer.Management.DTA.Client.TuningServer.InitializeTuningParametersDatabase()
       at Microsoft.SqlServer.Management.DTA.Client.TuningServer.InitializeConnection()
       at Microsoft.SqlServer.Management.DTA.Client.TuningServer.Connect()
       at Microsoft.SqlServer.Management.DTA.Shell.SessionMonitor.AddServerInternal(SqlConnectionInfo connectionInfo, SqlConnection connection)
       at Microsoft.SqlServer.Management.DTA.Shell.SessionMonitor.AddServer(SqlConnectionInfo connectionInfo, SqlConnection connection)
       at Microsoft.SqlServer.Management.DTA.Shell.SessionMonitor.OnConnect(Object sender, EventArgs e)

    I created the below MSDB SP and Tables. Now the issue is resolved.
    http://www.devnewsgroups.net/sqlservertools/t67379-database-engine-tuning-advisor.aspx 
    USE [msdb]
    GO
    /****** Object:  StoredProcedure [dbo].[sp_DTA_start_xmlprefix]    Script
    Date: 12/31/2008 10:56:11 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    create procedure [dbo].[sp_DTA_start_xmlprefix]
    as
    begin
        declare @startTags nvarchar(128)
        set @startTags = N'<DTAXML><DTAOutput><AnalysisReport>'
        select @startTags
    end
    GO
    /****** Object:  Table [dbo].[DTA_input]    Script Date: 12/31/2008 10:56:59
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_input](
        [SessionName] [sysname] NOT NULL,
        [SessionID] [int] IDENTITY(1,1) NOT NULL,
        [TuningOptions] [ntext] NOT NULL,
        [CreationTime] [datetime] NOT NULL DEFAULT (getdate()),
        [ScheduledStartTime] [datetime] NOT NULL DEFAULT (getdate()),
        [ScheduledJobName] [sysname] NOT NULL DEFAULT (''),
        [InteractiveStatus] [tinyint] NOT NULL DEFAULT ((0)),
        [LogTableName] [nvarchar](1280) NOT NULL DEFAULT (''),
        [GlobalSessionID] [uniqueidentifier] NULL DEFAULT (newid()),
    PRIMARY KEY CLUSTERED
        [SessionID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_progress]    Script Date: 12/31/2008
    10:57:29 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_progress](
        [ProgressEventID] [int] IDENTITY(1,1) NOT NULL,
        [SessionID] [int] NULL,
        [TuningStage] [tinyint] NOT NULL DEFAULT ((0)),
        [WorkloadConsumption] [tinyint] NOT NULL,
        [EstImprovement] [int] NOT NULL DEFAULT ((0)),
        [ProgressEventTime] [datetime] NOT NULL DEFAULT (getdate()),
        [ConsumingWorkLoadMessage] [nvarchar](256) NULL,
        [PerformingAnalysisMessage] [nvarchar](256) NULL,
        [GeneratingReportsMessage] [nvarchar](256) NULL
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_output]    Script Date: 12/31/2008
    10:57:10 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_output](
        [SessionID] [int] NOT NULL,
        [TuningResults] [ntext] NOT NULL,
        [StopTime] [datetime] NOT NULL DEFAULT (getdate()),
        [FinishStatus] [tinyint] NOT NULL DEFAULT ((0)),
    PRIMARY KEY CLUSTERED
        [SessionID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_tuninglog]    Script Date: 12/31/2008
    11:01:21 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_tuninglog](
        [SessionID] [int] NOT NULL,
        [RowID] [int] NOT NULL,
        [CategoryID] [nvarchar](4) NOT NULL,
        [Event] [ntext] NULL,
        [Statement] [ntext] NULL,
        [Frequency] [int] NOT NULL,
        [Reason] [ntext] NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_database]    Script Date:
    12/31/2008 10:57:56 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_database](
        [DatabaseID] [int] IDENTITY(1,1) NOT NULL,
        [SessionID] [int] NOT NULL,
        [DatabaseName] [sysname] NOT NULL,
        [IsDatabaseSelectedToTune] [int] NULL,
    PRIMARY KEY CLUSTERED
        [DatabaseID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_query]    Script Date: 12/31/2008
    10:59:42 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_query](
        [QueryID] [int] NOT NULL,
        [SessionID] [int] NOT NULL,
        [StatementType] [smallint] NOT NULL,
        [StatementString] [ntext] NOT NULL,
        [CurrentCost] [float] NOT NULL,
        [RecommendedCost] [float] NOT NULL,
        [Weight] [float] NOT NULL,
        [EventString] [ntext] NULL,
        [EventWeight] [float] NOT NULL,
    CONSTRAINT [DTA_reports_query_pk] PRIMARY KEY CLUSTERED
        [SessionID] ASC,
        [QueryID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_querydatabase]    Script Date:
    12/31/2008 11:00:04 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_querydatabase](
        [QueryID] [int] NOT NULL,
        [SessionID] [int] NOT NULL,
        [DatabaseID] [int] NOT NULL
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_table]    Script Date: 12/31/2008
    11:00:52 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_table](
        [TableID] [int] IDENTITY(1,1) NOT NULL,
        [DatabaseID] [int] NOT NULL,
        [SchemaName] [sysname] NOT NULL,
        [TableName] [sysname] NOT NULL,
        [IsView] [bit] NOT NULL DEFAULT ((0)),
    PRIMARY KEY CLUSTERED
        [TableID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_partitionfunction]    Script Date:
    12/31/2008 10:58:57 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_partitionfunction](
        [PartitionFunctionID] [int] IDENTITY(1,1) NOT NULL,
        [DatabaseID] [int] NOT NULL,
        [PartitionFunctionName] [sysname] NOT NULL,
        [PartitionFunctionDefinition] [ntext] NOT NULL,
    PRIMARY KEY CLUSTERED
        [PartitionFunctionID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_partitionscheme]    Script Date:
    12/31/2008 10:59:19 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_partitionscheme](
        [PartitionSchemeID] [int] IDENTITY(1,1) NOT NULL,
        [PartitionFunctionID] [int] NOT NULL,
        [PartitionSchemeName] [sysname] NOT NULL,
        [PartitionSchemeDefinition] [ntext] NOT NULL,
    PRIMARY KEY CLUSTERED
        [PartitionSchemeID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_tableview]    Script Date:
    12/31/2008 11:01:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_tableview](
        [TableID] [int] NOT NULL,
        [ViewID] [int] NOT NULL
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_querytable]    Script Date:
    12/31/2008 11:00:33 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_querytable](
        [QueryID] [int] NOT NULL,
        [SessionID] [int] NOT NULL,
        [TableID] [int] NOT NULL
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_index]    Script Date: 12/31/2008
    10:58:24 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_index](
        [IndexID] [int] IDENTITY(1,1) NOT NULL,
        [TableID] [int] NOT NULL,
        [IndexName] [sysname] NOT NULL,
        [IsClustered] [bit] NOT NULL DEFAULT ((0)),
        [IsUnique] [bit] NOT NULL DEFAULT ((0)),
        [IsHeap] [bit] NOT NULL DEFAULT ((1)),
        [IsExisting] [bit] NOT NULL DEFAULT ((1)),
        [Storage] [float] NOT NULL,
        [NumRows] [int] NOT NULL,
        [IsRecommended] [bit] NOT NULL DEFAULT ((0)),
        [RecommendedStorage] [float] NOT NULL,
        [PartitionSchemeID] [int] NULL,
        [SessionUniquefier] [int] NULL,
    PRIMARY KEY CLUSTERED
        [IndexID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_column]    Script Date: 12/31/2008
    10:57:42 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_column](
        [ColumnID] [int] IDENTITY(1,1) NOT NULL,
        [TableID] [int] NOT NULL,
        [ColumnName] [sysname] NOT NULL,
    PRIMARY KEY CLUSTERED
        [ColumnID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY =
    OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_queryindex]    Script Date:
    12/31/2008 11:00:19 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_queryindex](
        [QueryID] [int] NOT NULL,
        [SessionID] [int] NOT NULL,
        [IndexID] [int] NOT NULL,
        [IsRecommendedConfiguration] [bit] NOT NULL
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_querycolumn]    Script Date:
    12/31/2008 10:59:50 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_querycolumn](
        [QueryID] [int] NOT NULL,
        [SessionID] [int] NOT NULL,
        [ColumnID] [int] NOT NULL
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[DTA_reports_indexcolumn]    Script Date:
    12/31/2008 10:58:39 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[DTA_reports_indexcolumn](
        [IndexID] [int] NOT NULL,
        [ColumnID] [int] NOT NULL,
        [ColumnOrder] [int] NULL,
        [PartitionColumnOrder] [int] NOT NULL DEFAULT ((0)),
        [IsKeyColumn] [bit] NOT NULL DEFAULT ((1)),
        [IsDescendingColumn] [bit] NOT NULL DEFAULT ((1))
    ) ON [PRIMARY]
    GO
    /****** Object:  StoredProcedure [dbo].[sp_DTA_check_permission]    Script
    Date: 12/31/2008 10:53:21 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    create procedure [dbo].[sp_DTA_check_permission]
                    @SessionID int
    as
    begin
        declare @retcode  int
        declare @dbname nvarchar(128)
        declare @sql nvarchar(256)
        declare @dbid int
        set nocount on
        -- Check if SA
        if (isnull(IS_SRVROLEMEMBER(N'sysadmin'), 0) = 1)
        begin
            return(0)
        end
        -- if not yukon return
        if (patindex('%9.00.%',@@version) = 0)
        begin
            return (1)
        end
        -- declare and open a cursor and get all the databases specified in the input
        declare db_cursor cursor for
        select DatabaseName from DTA_reports_database
        where SessionID = @SessionID and IsDatabaseSelectedToTune  = 1
        -- open
        open db_cursor
        -- fetch first db name
        fetch next from db_cursor
        into @dbname
        -- loop and get all the databases selected to tune
        while @@fetch_status = 0
        begin
            -- build use db string
            select  @dbid = DB_ID(@dbname)
            -- In Yukon this masks the error messages
            set @sql = N'begin try
                dbcc autopilot(5,@dbid) WITH NO_INFOMSGS
            end try
            begin catch
                set @retcode = 1
            end catch'
            execute sp_executesql @sql
                , N'@dbid int output, @retcode int OUTPUT'
                , @dbid output
                , @retcode output
            -- if caller is not member of dbo
            if (@retcode = 1)
            begin
                -- close and reset cursor,switch context to current
                -- database and return 1
                close db_cursor
                deallocate db_cursor
                return(1)
            end
            fetch from db_cursor into @dbname
        end
        -- close and reset cursor,switch context to current
        -- database and return 1
        close db_cursor
        deallocate db_cursor
        return(0)
    end
    GO
    /****** Object:  StoredProcedure [dbo].[sp_DTA_index_usage_helper_xml]   
    Script Date: 12/31/2008 10:54:29 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    create procedure [dbo].[sp_DTA_index_usage_helper_xml]
        @SessionID        int,
        @IsRecommended    int
    as   
    begin
    select 1            as Tag,
            NULL          as Parent,
            '' as [IndexUsageReport!1!!ELEMENT],
            case when @IsRecommended = 1 then 'false'
            else 'true' end as [IndexUsageReport!1!Current],
            NULL as [Database!2!DatabaseID!hide],
            NULL  as [Database!2!Name!ELEMENT] ,
            NULL  as [Schema!3!Name!ELEMENT] ,
            NULL as [Table!4!TableID!hide],
            NULL as [Table!4!Name!ELEMENT],
            NULL as [Index!5!IndexID!hide],
            NULL as [Index!5!Name!ELEMENT],
            NULL as [Index!5!NumberOfReferences!ELEMENT],
            NULL as [Index!5!PercentUsage!ELEMENT]
        union all
    select 2            as Tag,
            1          as Parent,
            NULL as [IndexUsageReport!1!!ELEMENT],
            NULL as [IndexUsageReport!1!Current],
            D.DatabaseID as [Database!2!DatabaseID!hide],
            D.DatabaseName  as [Database!2!Name!ELEMENT] ,
            NULL  as [Schema!3!Name!ELEMENT] ,
            NULL as [Table!4!TableID!hide],
            NULL as [Table!4!Name!ELEMENT],
            NULL as [Index!5!IndexID!hide],
            NULL as [Index!5!Name!ELEMENT],
            NULL as [Index!5!NumberOfReferences!ELEMENT],
            NULL as [Index!5!PercentUsage!ELEMENT]
        from [msdb].[dbo].[DTA_reports_database] as D
        where
        D.SessionID = @SessionID and
        D.DatabaseID in
        (select D.DatabaseID from
                [msdb].[dbo].[DTA_reports_queryindex] as QI,
                [msdb].[dbo].[DTA_reports_index] as I,
                [msdb].[dbo].[DTA_reports_table] as T,
                [msdb].[dbo].[DTA_reports_database] as D
                where
                QI.IndexID = I.IndexID  and
                I.TableID = T.TableID and
                T.DatabaseID = D.DatabaseID and
                D.SessionID = @SessionID and
                QI.IsRecommendedConfiguration = @IsRecommended
                GROUP BY D.DatabaseID)
        union all
    select 3            as Tag,
            2          as Parent,
            NULL as [IndexUsageReport!1!!ELEMENT],
            NULL as [IndexUsageReport!1!Current],
            D.DatabaseID as [Database!2!DatabaseID!hide],
            D.DatabaseName  as [Database!2!Name!ELEMENT] ,
            R.SchemaName  as [Schema!3!Name!ELEMENT] ,
            NULL as [Table!4!TableID!hide],
            NULL as [Table!4!Name!ELEMENT],
            NULL as [Index!5!IndexID!hide],
            NULL as [Index!5!Name!ELEMENT],
            NULL as [Index!5!NumberOfReferences!ELEMENT],
            NULL as [Index!5!PercentUsage!ELEMENT]
        from [msdb].[dbo].[DTA_reports_database] as D,
            select D.DatabaseID,T.SchemaName from
            [msdb].[dbo].[DTA_reports_queryindex] as QI,
            [msdb].[dbo].[DTA_reports_index] as I,
            [msdb].[dbo].[DTA_reports_table] as T,
            [msdb].[dbo].[DTA_reports_database] as D
            where
            QI.IndexID = I.IndexID  and
            I.TableID = T.TableID and
            T.DatabaseID = D.DatabaseID and
            QI.IsRecommendedConfiguration = @IsRecommended and
            D.SessionID = @SessionID
            GROUP BY D.DatabaseID,T.SchemaName
        ) R
        where
        D.SessionID = @SessionID and
        D.DatabaseID = R.DatabaseID
    union all
    select 4            as Tag,
            3          as Parent,
            NULL as [IndexUsageReport!1!!ELEMENT],
            NULL as [IndexUsageReport!1!Current],
            D.DatabaseID as [Database!2!DatabaseID!hide],
            D.DatabaseName as [Database!2!Name!ELEMENT] ,
            R.SchemaName  as [Schema!3!Name!ELEMENT] ,
            R.TableID as [Table!4!TableID!hide],
            T.TableName as [Table!4!Name!ELEMENT],
            NULL as [Index!5!IndexID!hide],
            NULL as [Index!5!Name!ELEMENT],
            NULL as [Index!5!NumberOfReferences!ELEMENT],
            NULL as [Index!5!PercentUsage!ELEMENT]
        from    [msdb].[dbo].[DTA_reports_database] as D,
                [msdb].[dbo].[DTA_reports_table] as T,
            select D.DatabaseID,T.SchemaName,T.TableID from
            [msdb].[dbo].[DTA_reports_queryindex] as QI,
            [msdb].[dbo].[DTA_reports_index] as I,
            [msdb].[dbo].[DTA_reports_table] as T,
            [msdb].[dbo].[DTA_reports_database] as D
            where
            QI.IndexID = I.IndexID  and
            I.TableID = T.TableID and
            T.DatabaseID = D.DatabaseID and
            D.SessionID = @SessionID and
            QI.IsRecommendedConfiguration = @IsRecommended
            GROUP BY D.DatabaseID,T.SchemaName, T.TableID
        ) R
        where
        D.SessionID = @SessionID and
        D.DatabaseID = R.DatabaseID and
        R.TableID = T.TableID and
        T.DatabaseID = D.DatabaseID
    union all
    select 5            as Tag,
            4          as Parent,
            NULL as [IndexUsageReport!1!!ELEMENT],
            NULL as [IndexUsageReport!1!Current],
            D1.DatabaseID as [Database!2!DatabaseID!hide],
            D1.DatabaseName as [Database!2!Name!ELEMENT] ,
            T1.SchemaName  as [Schema!3!Name!ELEMENT] ,
            T1.TableID as [Table!4!TableID!hide],
            T1.TableName as [Table!4!Name!ELEMENT],
            I1.IndexID as [Index!5!IndexID!hide],
            I1.IndexName as [Index!5!Name!ELEMENT],
            R.Count as [Index!5!NumberOfReferences!ELEMENT],
            CAST(R.Usage as decimal(38,2))  as [Index!5!PercentUsage!ELEMENT]
            from
                [msdb].[dbo].[DTA_reports_database] as D1 ,
                [msdb].[dbo].[DTA_reports_index] as I1,
                [msdb].[dbo].[DTA_reports_table] as T1,
                    select D.DatabaseID,T.TableID ,
                            I.IndexID  ,SUM(Q.Weight) as Count,
                            100.0 *  SUM(Q.Weight) /
                            ( 1.0 * (    select    CASE WHEN SUM(Q.Weight) > 0 THEN  SUM(Q.Weight)
                                                else 1
                                                end   
                                        from [msdb].[dbo].[DTA_reports_query] as Q
                                        where Q.SessionID = @SessionID ))
                as Usage
            from
                [msdb].[dbo].[DTA_reports_index] as I   
                LEFT OUTER JOIN
                [msdb].[dbo].[DTA_reports_queryindex] as QI ON QI.IndexID = I.IndexID
                LEFT OUTER JOIN
                [msdb].[dbo].[DTA_reports_query] as Q ON QI.QueryID = Q.QueryID
                JOIN
                [msdb].[dbo].[DTA_reports_table] as T ON I.TableID = T.TableID
                JOIN
                [msdb].[dbo].[DTA_reports_database] as D ON T.DatabaseID = D.DatabaseID
                and Q.SessionID = QI.SessionID and
                QI.IsRecommendedConfiguration = @IsRecommended and
                Q.SessionID = @SessionID
                GROUP BY I.IndexID,T.TableID,D.DatabaseID) as R
                where R.DatabaseID = D1.DatabaseID and
                R.TableID = T1.TableID and
                R.IndexID = I1.IndexID and
                D1.SessionID = @SessionID  and
                R.Count > 0
        order by
    [Database!2!DatabaseID!hide],[Schema!3!Name!ELEMENT],[Table!4!TableID!hide],
                [Index!5!NumberOfReferences!ELEMENT] , [Index!5!IndexID!hide]
        FOR XML EXPLICIT
    end
    GO
    /****** Object:  StoredProcedure
    [dbo].[sp_DTA_index_usage_helper_relational]    Script Date: 12/31/2008
    10:54:26 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    create procedure [dbo].[sp_DTA_index_usage_helper_relational]
        @SessionID        int,
        @IsRecommended    int
        as begin select D1.DatabaseName as 'Database Name' ,T1.SchemaName as
    'Schema Name' ,T1.TableName as 'Table/View Name' ,I1.IndexName as 'Index
    Name' ,R.Count as 'Number of references' ,CAST(R.Usage as decimal(38,2)) as
    'Percent Usage' from
                    DTA_reports_database as D1 ,
                    DTA_reports_index as I1,
                    DTA_reports_table as T1,
                        select D.DatabaseID,T.TableID ,
                                I.IndexID  ,SUM(Q.Weight) as Count,
                                100.0 *  SUM(Q.Weight) /
                                ( 1.0 * (    select    CASE WHEN SUM(Q.Weight) > 0 THEN  SUM(Q.Weight)
                                                    else 1
                                                    end   
                                            from [msdb].[dbo].[DTA_reports_query] as Q
                                            where Q.SessionID = @SessionID ))
                    as Usage
            from
                    [msdb].[dbo].[DTA_reports_index] as I   
                    LEFT OUTER JOIN
                    [msdb].[dbo].[DTA_reports_queryindex] as QI ON QI.IndexID = I.IndexID
                    LEFT OUTER JOIN
                    [msdb].[dbo].[DTA_reports_query] as Q ON QI.QueryID = Q.QueryID
                    JOIN
                    [msdb].[dbo].[DTA_reports_table] as T ON I.TableID = T.TableID
                    JOIN
                    [msdb].[dbo].[DTA_reports_database] as D ON T.DatabaseID = D.DatabaseID
                    and Q.SessionID = QI.SessionID and
                    QI.IsRecommendedConfiguration = @IsRecommended and
                    Q.SessionID = @SessionID
                    GROUP BY I.IndexID,T.TableID,D.DatabaseID) as R
                    where R.DatabaseID = D1.DatabaseID and
                    R.TableID = T1.TableID and
                    R.IndexID = I1.IndexID and
                    D1.SessionID = @SessionID  and
                    R.Count > 0
                    order by R.Count desc end
    GO
    /****** Object:  StoredProcedure [dbo].[sp_DTA_database_access_helper_xml]  
    Script Date: 12/31/2008 10:53:31 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    create procedure [dbo].[sp_DTA_database_access_helper_xml]
                @SessionID        int
    as
    begin
        select 1            as Tag,
                NULL          as Parent,
                '' as [DatabaseAccessReport!1!!ELEMENT],
                NULL  as [Database!2!Name!ELEMENT] ,
                NULL as [Database!2!NumberOfReferences!ELEMENT],
                NULL as [Database!2!PercentUsage!ELEMENT]
            union all
        select 2 as Tag, 1 as Parent,NULL,D1.DatabaseName  ,
        R.Count  ,
        CAST(R.Usage as decimal(38,2))  from
                        [msdb].[dbo].[DTA_reports_database] as D1 ,
                            select D.DatabaseID,SUM(Q.Weight) as Count,
                                    100.0 *  SUM(Q.Weight) /
                                    ( 1.0 * (    select    CASE WHEN SUM(Q.Weight) > 0 THEN  SUM(Q.Weight)
                                                        else 1
                                                        end   
                                                from [msdb].[dbo].[DTA_reports_query] as Q
                                                where Q.SessionID = @SessionID ))
                        as Usage
                from
                            [msdb].[dbo].[DTA_reports_database] as D
                            LEFT OUTER JOIN
                            [msdb].[dbo].[DTA_reports_querydatabase] as QD ON QD.DatabaseID =
    D.DatabaseID
                            LEFT OUTER JOIN
                            [msdb].[dbo].[DTA_reports_query] as Q ON QD.QueryID = Q.QueryID
                            and Q.SessionID = QD.SessionID and
                            Q.SessionID = @SessionID       
                            GROUP BY D.DatabaseID
                        ) as R
                        where R.DatabaseID = D1.DatabaseID  and
                        D1.SessionID = @SessionID and
                        R.Count > 0
        order by Tag,[Database!2!NumberOfReferences!ELEMENT] desc
        FOR XML EXPLICIT
    end
    GO

  • How to handle different languages in Illustrator for big clients?

    Hi Guys,
    I need small suggestio for 'How to handle different languages in illustrator for big clients'. For instance; Arabic, this is a language which  needs to be read from right to left instead of left to right. There are  other strange languages as well (Cyrillic, Chinese etc.). It happens  also that when you copy strange languages from a word file it will not  be easy to paste it the correct way in a .ai file. Besides that, it’s  also difficult to do a language check when we are not able to read it!. So,  to make a long story short, I want to figure out how we can deal with multiple language  circles?
    Can you some please give me the solution for this...
    Thanks in advance...
    HARI

    I take it you might come from an arabic background.
    Here is how you can help yourself to some degree.
    Google has a translation feature and service which is at the moment free. It is excellent.
    Secondly if you are working with ME languages you really need the ME version of Illustrator or any other Creative Suites Application in order for it to work properly.
    It, is also best to enable the language and the input for that language for your system on the Mac it is easy you go to the Language and text feature in theSystem Preferences, once enabled you can select the fro the menu bar under the American flag if you are in the US. Thst will appear once you have more than one language selected.
    You select the language input you need and then a font for that language then paste and edit.
    You need fonts on your computer that are of those languages as well.
    How to manage this as a work flow well that is something you will have to work on yourself or hire a consultant who specializes in this area.
    We had a few visit here when they have come across a snafu. So they exists.

  • Protocol Router for Rich Client Front Controller

    Hello,
    I would like to support multiple client types in my J2EE application - Web Client and Rich Client (Swing Application).
    Java BluePrints (Designing Enterprise Applications
    with the J2EETM Platform, Second Edition) suggests using a Protocol Router for centralized control in case of supporting multiple client types with multiple controllers - http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html.
    I have several doubts with this approach and will appreciate very much any help with clarifying the following:
    1) How does a Rich Client communicate to Protocol Router? Using HTTP? That means then that each request/response has to be wrapped in HTTP Request/Response object. It may impact the performance and make the communication between Rich Client and back-end slower.
    2) If rich client communicates with Protocol Router through HTTP, what is the difference between Fron Controller for Web Client and for Rich Client?
    3) The J2EE Tutorial on the other hand, shows direct connection from Application (Rich) Client to EJB layer - http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Ebank.html.
    It will be greatly appreciated to know how would you address the above doubts.
    Best Regards.

    1) How does a Rich Client communicate to Protocol
    Router? Using HTTP? Yes, HTTP . You are right about performance issues. That protocol router seems to me like like overengineering. Anyway, I think a WEB service could be better choice. It's a standart way how to wrap remote requests in HTTP.
    2) If rich client communicates with Protocol Router
    through HTTP, what is the difference between Fron
    Controller for Web Client and for Rich Client?I think the difference is in types of requests. WEB client would request
    WEB pages, SWING client doesnt need WEB pages. It would request contents
    of list boxes and things like that.
    I would suggest you to use EJB's with session facade pattern. Provide WEB service style access to your app. Many app. servers provide feature to expose SLSB as WEB services. Thus you will support almost any types of clients (.NET, Perl, whatever). You can also use WEB service to connect from you'r SWING client. If later you are not satisfied with performance, you can switch to RMI. If you use BusinessDelegate pattern then you will need to change BusinessDelegate only, just one class.
    I have written an example EJB based app. which can be accessed by SWING client using RMI or SOAP, WEB client, .NET client and CORBA.
    You can get it from:
    http://www.datapro.lv/~mariso/ejb.html
    feel free to ask questions, if you have any
    Maris Orbidans

  • Oracle Announces Oracle9i Database for IBM Linux/390

    Hi Folks,
    Check out the following URL for the announcement, which went out this morning (March 18, 2002 at 8:00am Eastern).
    http://www.oracle.com/corporate/press/index.html?1270638.html
    Also, we've had a report that the Oracle9i Database Developer's Release for Linux/390 works on TurboLinux. I'll post distribution version information when I've received it.
    Barry

    From reading the other messages in this forum I now know that I'm not alone.
    I was lucky enough to get a valid download for 9.2 database for linux but it took
    a number of tries. It would be helpful if there could be a number of published
    mirror sites to try downloading from. Perhaps this is already implemented
    transparently to the end user and it's just luck of the draw that you hit a mirror
    that works...
    However, I've been having problems downloading ora9ias for about 4 days now.
    I'm probably making things worse for others because I've tried to download
    disk 1 and 4 at least 3 times and keep getting files that are close to the stated
    size but usually a few k bigger or smaller; then I get the invalid gzip file error
    message from gunzip. I've tried downloading from IE 5.5, netscape (from both
    windows and linux), trying various ways of downloading (holding shift, or right
    clicking with save as) and still no luck.
    I'll keep trying, but if anyone has any solutions please publish them to this forum.
    thanks.

  • Error coming while installing Berkeley database for IOS Device.

    Hi I want to install berkeley db in my MAC. My Xcode version is 4.5.2. I downloaded db-5.3.21(Berkeley) from oracle site.I installed command line tool for xcode. I installed berkeley db in my MAC for iPhoneSimulator. Where as for iPhone device I am unable to install. I am following below link for installing the berkeley db. http://docs.oracle.com/cd/E17076_02/html/installation/build_unix_iphone.html
    When I am installing berkeley db for IOS device it is showing following error.
    checking for arm-apple-darwin11.4.2-sh... no checking for sh... /bin/sh checking for a BSD-compatible install... /usr/bin/install -c checking for arm-apple-darwin11.4.2-cc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc checking whether the C compiler works... no configure: error: in /Users/celstra/rajaramesh/db-5.3.21/build_unix': configure: error: C compiler cannot create executables See config.log' for more details
    ............................... The error is telling that C compiler cannot create executables... But for iPhonesimulator it is not showing the error...
    Steps performed for installing Berkeley database for IOS device.
    export DEV_iOS=/Developer/Platforms/iPhoneOS.platform/Developer
    export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS6.0.sdk
    export COMPILER_iOS=${DEV_iOS}/usr/bin
    export CC=${COMPILER_iOS}/gcc
    export CXX=${COMPILER_iOS}/g++
    export CFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
    -no-cpp-precomp -mthumb -isysroot $SDKROOT "
    export CXXFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
    -no-cpp-precomp -mthumb -isysroot $SDKROOT "
    export CFLAGS=${LDFLAGS}
    export CXXFLAGS=${LDFLAGS}
    //export CPP=”/usr/bin/cpp ${CPPFLAGS}”
    export LD=${COMPILER_iOS}/ld
    export AR=${COMPILER_iOS}/ar
    export AS=${COMPILER_iOS}/as
    export NM=${COMPILER_iOS}/nm
    export RANLIB=${COMPILER_iOS}/ranlib
    ../dist/configure --host=arm-apple-darwin9\
    --prefix=$SDKROOT ...   
    Same steps i performed for iPHONESIMULATOR. But at that time c complier works fine. But while i am try to install for IOS device it is showing above error.
    Can we need any license software for this installation. Could any one please provide exact document regarding installation for IOS device.
    Any advice would be appreciated.
    Edited by: 1000547 on Apr 17, 2013 12:58 AM
    Edited by: 1000547 on Apr 17, 2013 1:03 AM
    Edited by: 1000547 on Apr 17, 2013 2:31 AM

    Thanks for the  reply komal i did that but not cleared..one thing when i create the build from my flash builder the error happens.but the same project i used in another flashbuilder and create build..That build works fine...is there any chance for flash builder compiler problem.
    cheers,
    venkat

Maybe you are looking for

  • Has anyone fixed problems with OIS after upgrading to iOS 8.3?

    MY camera worked absolutely fine on my 6 Plus until I upgraded to 8.3 at which point my rear camera won't focus. I Can't downgrade to the previous version so how do I fix it?

  • How to Restore Windows 8 if System Crashes

    Okay I purchased three HP Pavilions (1 last month two last year) from Best Buy.  They did not come with Windows 8.1 Recovery Disk.  So how can I restore Windows 8.1 if my disk crashes?  How can I get the media and the product key for Win 8.1 for my s

  • Error in my code??

    - I cant figure out wheres my error coz NetBeans 5.0 states Exceptionjava.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement. Can someone here please check for me.. My presentation to my course supervisor is

  • Legacy Asset

    Hi while doing AS91 for Legacy AUC-capitalisation date becomes mandatory field though in screen layout rules-same is set to "dispaly" status. Normal asset creation is OK(AS01) Anysuggestion

  • Application Language Problem

    Hello, I am writing From Turkey. I have an iphone 5s and i believe i am the one of first iphone 5s buyer in Turkey. I had a problem and i called apple and nobody solved my problem. I tunes help desk or whatever thay said that problem is not their pro