PGNP Native OLE DB Provider for Postgresql, Greenplum, Redshift Developer’S Manual

Total Page:16

File Type:pdf, Size:1020Kb

PGNP Native OLE DB Provider for Postgresql, Greenplum, Redshift Developer’S Manual CATA 2021 PGNP Native OLE DB Provider for PostgreSQL, Greenplum, Redshift Developer’s Manual This document contains description of various PGNP features, use cases and programming techniques. It is written for professional developers. Konstantin Izmailov Copyright © 2006-2019. All Rights Reserved. 2/12/2021 This document is property of PGNP team. Neither a part nor the entire document can be reproduced, changed, distributed or published without prior written permission of owners. Please contact us if you have any questions: [email protected]. Page 2 Table of Contents 1 Introduction .................................................................................................................................................................... 6 2 Installation and Product Activation ................................................................................................................................ 7 2.1.1 UI based installation ........................................................................................................................................ 7 2.1.2 Unattended/silent installation ...................................................................................................................... 10 2.1.3 Activation on a computer behind a firewall (in DMZ) .................................................................................. 11 3 Provider’s Features ....................................................................................................................................................... 12 3.1 Database Transformation ..................................................................................................................................... 12 3.1.1 Transforming MS SQL 2000 database into a PostgreSQL database using DTSWizard .................................. 12 3.1.2 Transforming MS SQL 2005, 2008, 2012 database into a PostgreSQL database using DTSWizard .............. 15 3.2 Transactions .......................................................................................................................................................... 15 3.2.1 Local Transactions ......................................................................................................................................... 15 3.2.2 Distributed Transactions ............................................................................................................................... 17 3.2.3 PostgreSQL Nested Transactions .................................................................................................................. 18 3.3 Linked Servers ....................................................................................................................................................... 19 3.3.1 Create Linked Server using SQL Server Wizard ............................................................................................. 19 3.3.2 Create Linked Server using SQL Server Stored Procedures .......................................................................... 21 3.3.3 Viewing and changing Linked Server RPC status........................................................................................... 22 3.3.4 Running Linked Server in a separate process (out-of-proc) .......................................................................... 22 3.4 Replication with SQL Server 2000 ......................................................................................................................... 23 3.4.1 Configuring Publisher, Subscribers and Distributor ...................................................................................... 23 3.4.2 Creating publication ...................................................................................................................................... 24 3.4.3 Create Snapshot ............................................................................................................................................ 27 3.4.4 Adding Subscribers ........................................................................................................................................ 28 3.4.5 Synchronize ................................................................................................................................................... 32 3.5 Replication with SQL Server 2005/2008/2012 ...................................................................................................... 34 3.5.1 Configure SQL Server as Distributor .............................................................................................................. 34 3.5.2 Configure the publisher to use a specified distribution database ................................................................ 34 3.5.3 Create Linked Server ..................................................................................................................................... 34 3.5.4 Create the snapshot publication ................................................................................................................... 35 3.5.5 Create the snapshot subscription ................................................................................................................. 35 3.5.6 Deleting subscription and publication .......................................................................................................... 37 3.5.7 Create publication for transactional replication ........................................................................................... 37 Page 3 3.5.8 Create subscription for transactional replication ......................................................................................... 38 3.6 Generating reports in SQL Server Reporting Services........................................................................................... 40 3.7 Two phase commit protocol (2PC) ........................................................................................................................ 42 3.7.1 Configuring DTC ............................................................................................................................................ 42 3.7.2 Starting DTC Service ...................................................................................................................................... 42 3.7.3 Enabling prepared transactions in PostgreSQL ............................................................................................. 42 3.7.4 Troubleshooting issues with 2PC .................................................................................................................. 42 3.8 FastLoad feature ................................................................................................................................................... 43 3.8.1 Configuring OLE DB connection in BIDS ........................................................................................................ 43 3.8.2 Configuring Source and Destination ............................................................................................................. 44 3.9 The Query Optimizer ............................................................................................................................................. 45 3.9.1 Simple query substitution ............................................................................................................................. 46 3.9.2 Template based substitution ........................................................................................................................ 47 3.9.3 Exact Match scenario: optimizing ROLAP cube ............................................................................................. 48 3.9.4 Optimizing metadata retrieval ...................................................................................................................... 49 3.10 “Hinting” statements ............................................................................................................................................ 51 3.10.1 Copying table from SQL Server to Postgres in DTSWizard ............................................................................ 51 3.10.2 Tweaking Data Flow in SSIS Package ............................................................................................................. 52 3.10.3 Using comments to change Extended Properties parameters per statement ............................................. 53 4 Programming with the Provider.................................................................................................................................... 54 4.1 Connection String .................................................................................................................................................. 54 4.1.1 Main String parameters ................................................................................................................................ 54 4.1.2 Extended Properties ...................................................................................................................................... 54 4.1.3 Parameter BULK_METHOD ........................................................................................................................... 58 4.1.4 Parameters for Redshift ................................................................................................................................ 58 4.1.5 Deprecated and not supported parameters ................................................................................................
Recommended publications
  • Not for Reproduction
    LSC Display Module INSTRUCTION MANUAL Reproduction for Not PHONE (308) 995-4495, (800) 562-1373 FAX (308) 995-5887 PARTS DEPT. FAX (308) 995-4883 WEB www.allmand.com Reproduction for Not TABLE OF CONTENTS MAIN OPERATING SCREEN ..................................................................1 Menu Screen .......................................................................................................................................3 Automatic Control Setup Screen ...................................................................................................4 Timed Events Menu Screen .....................................................................................................5 Timed Events Screen .........................................................................................................6 Copy Day Events Screen ...................................................................................................7 Block Heater Setup Screen ......................................................................................................8 Auto-Mode – Sunset/Sunrise-based Start/Stop Screen ...........................................................9 GPS Location Setup Screen ....................................................................................................10 System Screen ..............................................................................................................................11 Update Programming Screen ..................................................................................................12
    [Show full text]
  • Middleware in Action 2007
    Technology Assessment from Ken North Computing, LLC Middleware in Action Industrial Strength Data Access May 2007 Middleware in Action: Industrial Strength Data Access Table of Contents 1.0 Introduction ............................................................................................................. 2 Mature Technology .........................................................................................................3 Scalability, Interoperability, High Availability ...................................................................5 Components, XML and Services-Oriented Architecture..................................................6 Best-of-Breed Middleware...............................................................................................7 Pay Now or Pay Later .....................................................................................................7 2.0 Architectures for Distributed Computing.................................................................. 8 2.1 Leveraging Infrastructure ........................................................................................ 8 2.2 Multi-Tier, N-Tier Architecture ................................................................................. 9 2.3 Persistence, Client-Server Databases, Distributed Data ....................................... 10 Client-Server SQL Processing ......................................................................................10 Client Libraries ..............................................................................................................
    [Show full text]
  • Duty Station: Kathmandu, Nepal
    INDIVIDUAL CONSULTANT PROCUREMENT NOTICE (International Consultant – Human Rights Expert) UNDP/PN/31/2017 Date: 31 July 2017 Country: Nepal Description of the assignment: SPSP project needs a Human Rights Expert. He/She will be responsible to provide day-to-day management and technical support to implement the Project activities and ensure that the Project objectives are met as set out in the Project document. The expert will report directly to the Deputy Country Director (Programme) and be responsible to the secretary of the NHRC. Number of consultant required: 1 Project name: Strategic Plan Support Project for the National Human Rights Commission (SPSP) Period of assignment/services (if applicable): 01 September – 31 December 2017 (not to exceed 87 days in total) Duty Station: Kathmandu, Nepal Proposal should be submitted at the following address: Procurement Unit, UNDP (Ref.: UNDP/PN/31/2017: Human Rights Expert, UN House, Pulchowk, PO Box 107, Kathmandu, Nepal or by email to [email protected] not later than 1730 hours (Nepal Standard Time) of 09 August 2017. Any request for clarification must be sent in writing, or by standard electronic communication to the e- mail: [email protected] mentioning Procurement Notice Ref: UNDP/PN/31/2017: Human Rights Expert, on or before 03 August 2017. The procurement unit will respond in writing, including an explanation of the query without identifying the source of inquiry, to all consultants or via bulletin published on the UNDP website: http://www.np.undp.org/content/nepal/en/home/operations/procurement.html. Inquiries received after the above date and time shall not be entertained.
    [Show full text]
  • Docusign Envelope ID: 3F71DABF-9E5D-4742-9D5D-E477C06C49A4 Docusign Envelope ID: 3F71DABF-9E5D-4742-9D5D-E477C06C49A4
    DocuSign Envelope ID: 3F71DABF-9E5D-4742-9D5D-E477C06C49A4 DocuSign Envelope ID: 3F71DABF-9E5D-4742-9D5D-E477C06C49A4 IMPORTANT INFORMATION or at Phuentsholing check post. Further advice from Customs authorities in the US At Greaves Tours LLC we strongly hope that your information on Visas for Bhutan may be before departing on your tour. When shopping holiday lives up to your expectations. Our years discussed with your travel consultant or for expensive items such as precious stones, of experience in dealing with the Indian through the Bhutan Mission to the United carpets etc, the shopkeepers may guarantee the Subcontinent has gone into formulating the tour Nations in New York Tel: 1-212-682-2268 authenticity of the item, however expert programs on offer. Due care has been taken to knowledge is essential to ascertain their true put the best possible ground arrangements in TIBET: value. Please note that Greaves Tours LLC place for you to have a memorable holiday. Visas for Tibet will be processed by Greaves cannot be held responsible for any purchase that Tours LLC. The cost of the Visa for Tibet is you make and nor can we take up However, we seek your patience and included in your tour price. Visa applications correspondence on your behalf if you are not understanding while travelling in the and documentation will be completed by you satisfied with the item purchased or if goods are Subcontinent. Sometimes minor problems may on tour whilst in Kathmandu, en route to Tibet. not delivered in time. We pride ourselves on the occur, but our ground staff will always be on Only once the Visa has been cleared can quality of our sightseeing guides, however if at hand to try and solve such occurrences.
    [Show full text]
  • Comparing OLE DB and ODBC This Document Compares the Basic Features of OLE DB to the Basic Features of ODBC (Open Database Connectivity)
    Comparing OLE DB and ODBC This document compares the basic features of OLE DB to the basic features of ODBC (Open Database Connectivity). It is intended to help clarify when to use one over the other. Introduction OLE DB and ODBC are both specifications created by Microsoft to address universal data access. Each is intended as an industry standard that will make access between one vendor's data store and another vendor's data consumer seamless. Microsoft's definition of OLE DB is a strategic system-level programming interface to data across the organization. OLE DB is an open specification designed to build on the success of ODBC by providing an open standard for accessing all kinds of data. And the definition of ODBC is an industry standard and a component of Microsoft® Windows® Open Services Architecture (WOSA). The ODBC interface makes it possible for applications to access data from a variety of database management systems (DBMSs). ODBC permits maximum interoperability—an application can access data in diverse DBMSs through a single interface. Furthermore, that application will be independent of any DBMS from which it accesses data. Users of the application can add software components called drivers, which create an interface between an application and a specific DBMS. The two primary differences between the two are • OLE DB is a component based specification and ODBC is a procedural based specification • SQL is the core of accessing data using ODBC but just one of the means of data access through OLE DB • ODBC is constrained to relational data stores; OLE DB supports all forms of data stores (relational, hierarchical, etc) In general, OLE DB provides a richer and more flexible interface for data access because it is not tightly bound to a command syntax (like SQL in the case of ODBC).
    [Show full text]
  • JOURNEY to the END of the EARTH BY-TISHANI DOSHI CLASS XII ENGLISH [CORE] VISTAS PRESENTED by MRS LILY KUMAR DELHI PUBLIC SCHOOL RANCHI Akademik Shokalskiy
    JOURNEY TO THE END OF THE EARTH BY-TISHANI DOSHI CLASS XII ENGLISH [CORE] VISTAS PRESENTED BY MRS LILY KUMAR DELHI PUBLIC SCHOOL RANCHI Akademik Shokalskiy • MV Akademik Shokalskiy (Russian: Академик Шокальский) is an Akademik Shuleykin-class ice- strengthened ship, built in Finland in 1982 and originally used for oceanographic research.In 1998 she was fully refurbished to serve as a research ship for Arctic and Antarctic work; she is used also for expedition cruising. She is named after the Russian oceanographer Yuly Shokalsky. • For two weeks from 25 December 2013 Akademik Shokalskiy was trapped in thick ice in Commonwealth Bay, Antarctica, while operating an expedition for the Australasian Antarctic Expedition 2013-2014. The scientists and passengers were evacuated on 2 January. Introduction to the author: tishani doshi Tishani Doshi (9 December 1975) is an Indian poet, journalist and a dancer based in Chennai. Born in Madras, India, to a Welsh mother and Gujarati father, she graduated with a Master’s degree in Creative Writing from the Johns Hopkins University. She received Eric Gregory Award in 2001. Her first poetry collection Countries of the Body won the 2006 Forward Poetry Prize for the best first collection. Her First novel The Pleasure Seekers was published by Bloomsbury in 2010 and was long-listed for the Orange Prize in 2011 and shortlisted for The Hindu Best Fiction Award in 2010. She works as a freelance writer and worked with choreographer Chandralekha. Her poetry collection Everything Begins Elsewhere was published by Copper Canyon Press in 2013. Her most recent book of poetry, Girls Are Coming Out Of the Woods, was published by HarperCollins India in 2017.
    [Show full text]
  • Dot Net Programming CLASS: TYBBA(CA) V SEM (2013 PATTERN)
    DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI, PUNE – 45 Subject: 503 : Dot Net Programming CLASS: TYBBA(CA) V SEM (2013 PATTERN) Unit 1 :Introduction to .Net Framework Introduction to .NET Framework .NET is a software framework which is designed and developed by Microsoft. The first version of the .Net framework was 1.0 which came in the year 2002. In easy words, it is a virtual machine for compiling and executing programs written in different languages like C#, VB.Net etc. It is used to develop Form-based applications, Web-based applications, and Web services. There is a variety of programming languages available on the .Net platform, VB.Net and C# being the most common ones. It is used to build applications for Windows, phone, web, etc. It provides a lot of functionalities and also supports industry standards. .NET Framework supports more than 60 programming languages in which 11 programming languages are designed and developed by Microsoft. The remaining Non-Microsoft Languages which are supported by .NET Framework but not designed and developed by Microsoft. Common Language Runtime(CLR): CLR is the basic and Virtual Machine component of the .NET Framework. It is the run-time environment in the .NET Framework that runs the codes and helps in making the development process easier by providing the various services such as remoting, thread management, type-safety, memory management, robustness, etc.. Basically, it is responsible for managing the execution of .NET programs regardless of any .NET programming language. It also helps in the management of code, as code that targets the runtime is known as the Managed Code and code doesn’t target to runtime is known as Unmanaged code.
    [Show full text]
  • Autocad 2008 驱动程序和外围设备手册
    <$nopage>: <$nopage>: <$nopage>, <$nopage>: <$nopage>: <$nopage><$nopage>, <$nopage> (DWT) :, <$nopage> (DWT) : , <$nopage> (DWT) :, <$nopage> (DWT) :, <$nopage>, <$nopage>, <$nopage>, <$nopage>: <$nopage>, <$nopage>, <$nopage>: <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>: , <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage> , <$nopage>: <$nopage>: <$nopage>:, <$nopage>:, <$nopage>:: <$nopage>, <$nopage> (UCS): <$nopage>: <$nopage>:, <$nopage>: , <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage> :, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage>:, <$nopage><$nopage>, <$nopage>:, <$nopage>, <$nopage>Intellimouse, AutoCAD 2008 > 10 1 AutoCAD 2008 > > > OPTIONS OPTIONS PAN ZOOM MBUTTONPAN SHORTCUTMENU ZOOMFACTOR AutoCAD 2008 > > > OPTIONS OPTIONS REINIT / TABLET TABMODE <$nopage>D3D <$nopage>OGL AutoCAD 2008 > AutoCAD AutoCAD AutoCAD OpenGL (OGL) Direct 3D (D3D) AutoCAD 2008 > > > 3DCONFIG AutoCAD 2008 > > > 3DCONFIG AutoCAD 2008 > HDIHeidi ® HDI HDI (PC3) PC3 “” PC3 “” PC3 “” (PC3) Windows “” AutoCAD 2008 > > > PLOT PLOTTERMANAGER “” AutoCAD 2008 > > > PAGESETUP PCINWIZARD PCP PC2 “” PLOT PLOTTERMANAGER “” AutoCAD 2008 > > > PLOTTERMANAGER “” AutoCAD 2008 > > PC3 > PC3 PLOTTERMANAGER “” AutoCAD 2008 > > PC3 > PC3 PC3 PMP PMP HDI AutoCAD 2008 > > PC3 > > PLOTTERMANAGER “” AutoCAD 2008 > > PC3 > > PLOTTERMANAGER “” AutoCAD 2008 > > PC3 > > PLOTTERMANAGER “” AutoCAD 2008 > > PC3 > > PLOTTERMANAGER “” AutoCAD 2008 > > PC3 > > PLOTTERMANAGER “”
    [Show full text]
  • Using Unioledb
    C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\UNIOLEDB\OLDBTITL.fm March 10, 2010 10:42 am Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Using UniOLEDB UDT-720-OLDB-1 C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\UNIOLEDB\OLDBTITL.fm March 10, 2010 10:42 am Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Notices Edition Publication date: July 2008 Book number: UDT-720-OLDB-1 Product version: UniData 7.2 Copyright © Rocket Software, Inc. 1988-2008. All Rights Reserved. Trademarks The following trademarks appear in this publication: Trademark Trademark Owner Rocket Software™ Rocket Software, Inc. Dynamic Connect® Rocket Software, Inc. RedBack® Rocket Software, Inc. SystemBuilder™ Rocket Software, Inc. UniData® Rocket Software, Inc. UniVerse™ Rocket Software, Inc. U2™ Rocket Software, Inc. U2.NET™ Rocket Software, Inc. U2 Web Development Environment™ Rocket Software, Inc. wIntegrate® Rocket Software, Inc. Microsoft® .NET Microsoft Corporation Microsoft® Office Excel®, Outlook®, Word Microsoft Corporation Windows® Microsoft Corporation Windows® 7 Microsoft Corporation Windows Vista® Microsoft Corporation Java™ and all Java-based trademarks and logos Sun Microsystems, Inc. UNIX® X/Open Company Limited ii Using UniOLEDB The above trademarks are property of the specified companies in the United States, other countries, or both. All other products or services mentioned in this document may be covered by the trademarks, service marks, or product names as designated by the companies who own or market them. License agreement This software and the associated documentation are proprietary and confidential to Rocket Software, Inc., are furnished under license, and may be used and copied only in accordance with the terms of such license and with the inclusion of the copyright notice.
    [Show full text]
  • Powerbuilder® 2017 R3 for WINDOWS DOCUMENT ID: ADC20231-01-2017-03 LAST REVISED: July 30, 2018 Copyright © 2018 by Appeon Limited
    Release Bulletin for PowerBuilder 2017 R3 PowerBuilder® 2017 R3 FOR WINDOWS DOCUMENT ID: ADC20231-01-2017-03 LAST REVISED: July 30, 2018 Copyright © 2018 by Appeon Limited. All rights reserved. This publication pertains to Appeon software and to any subsequent release until otherwise indicated in new editions or technical notes. Information in this document is subject to change without notice. The software described herein is furnished under a license agreement, and it may be used or copied only in accordance with the terms of that agreement. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Appeon Limited. Appeon and other Appeon products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Appeon Limited. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP and SAP affiliate company. Java and all Java-based marks are trademarks or registered trademarks of Oracle and/or its affiliates in the U.S. and other countries. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. All other company and product names used herein may be trademarks or registered trademarks of their respective companies. Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies.
    [Show full text]
  • Programming with Windows Forms
    A P P E N D I X A ■ ■ ■ Programming with Windows Forms Since the release of the .NET platform (circa 2001), the base class libraries have included a particular API named Windows Forms, represented primarily by the System.Windows.Forms.dll assembly. The Windows Forms toolkit provides the types necessary to build desktop graphical user interfaces (GUIs), create custom controls, manage resources (e.g., string tables and icons), and perform other desktop- centric programming tasks. In addition, a separate API named GDI+ (represented by the System.Drawing.dll assembly) provides additional types that allow programmers to generate 2D graphics, interact with networked printers, and manipulate image data. The Windows Forms (and GDI+) APIs remain alive and well within the .NET 4.0 platform, and they will exist within the base class library for quite some time (arguably forever). However, Microsoft has shipped a brand new GUI toolkit called Windows Presentation Foundation (WPF) since the release of .NET 3.0. As you saw in Chapters 27-31, WPF provides a massive amount of horsepower that you can use to build bleeding-edge user interfaces, and it has become the preferred desktop API for today’s .NET graphical user interfaces. The point of this appendix, however, is to provide a tour of the traditional Windows Forms API. One reason it is helpful to understand the original programming model: you can find many existing Windows Forms applications out there that will need to be maintained for some time to come. Also, many desktop GUIs simply might not require the horsepower offered by WPF.
    [Show full text]
  • Release Bulletin Infomaker 11.5.1
    Release Bulletin InfoMaker® 11.5.1 Document ID: DC33824-01-1151-01 Last revised: May 14, 2009 Topic Page 1. Accessing current release bulletin information 2 2. Product summary 2 3. Special installation instructions 3 3.1 Before you install 3 3.2 Updating InfoMaker 11.5 to InfoMaker 11.5.1 3 4. Changed functionality in this version 4 4.1 Deployment support for the Windows 2000 platform 4 4.2 JDK 1.6 support 4 4.3 FIPS 140-2 certification 4 4.4 Support for Microsoft Office 2007 Excel formats 5 4.5 Support for SQL Anywhere 11.0 mirroring 5 4.6 Informix 11.5 Support 5 4.7 Microsoft SQL Server 2008 support 6 5. Known problems 6 5.1 Gradient, transparency and tooltip properties 6 5.2 New 3D graph styles 7 5.3 PNG support issues 8 5.4 Other issues 9 6. Product compatibilities 10 6.1 SQL Anywhere 10 6.2 Ghostscript 10 7. Third-party components and deployment 10 7.1 Apache files 10 7.2 Microsoft files 11 7.3 Sun Microsystems files 12 8. Documentation updates and clarifications 12 Copyright 2009 by Sybase, Inc. All rights reserved. Sybase trademarks can be viewed at the Sybase trademarks page at http://www.sybase.com/detail?id=1011207. Sybase and the marks listed are trademarks of Sybase, Inc. ® indicates registration in the United States of America. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.
    [Show full text]