• Solutions
    • FERC XBRL Reporting
    • FDTA Financial Reporting
    • SEC Compliance
    • Windows Clipboard Management
    • Legato Scripting
  • Products
    • GoFiler Suite
    • XBRLworks
    • SEC Exhibit Explorer
    • SEC Extractor
    • Clipboard Scout
    • Legato
  • Education
    • Training
    • SEC and EDGAR Compliance
    • Legato Developers
  • Blog
  • Support
  • Skip to blog entries
  • Skip to archive page
  • Skip to right sidebar

Friday, November 04. 2016

Legato Developers Corner #8: ODBC Connectors

One of the most powerful tools in Legato is the ability to utilize an ODBC Connector to pull information from a database. ODBC (Open Database Connectivity) is a standard interface included in Windows that lets you connect to any type of database. Other applications (such as GoFiler through Legato) can talk to the database using this ODBC interface as an intermediary. This week’s blog post will be discussing ODBC, what it is, how to set it up, and what it can do for you. Next week we will explore an example where Legato actually uses it.


Before you can actually use this ODBC connector with Legato, it first has to be set up. The application for administering database connections is called odbcad32.exe, and it is in your SysWOW64 folder in your Windows installation folder. So it’s usually at "C:\Windows\SysWOW64\odbcad32.exe". There is a very similar application by the same name in the System32 folder of Windows, but that is for 64 bit ODBC connections, and Legato only supports the 32 bit ODBC connector. So make sure you use the one in the SysWOW64 folder. Once you open it, you can add, remove, or configure connections to different databases.


Depending on the database to which you’re trying to connect, you will likely need to download and install its ODBC drivers. MySQL, a very popular database format, hosts its drivers here: https://dev.mysql.com/downloads/connector/odbc/. Other popular database formats include PostgreSQL (available here: https://odbc.postgresql.org/) and MS SQL (available here: https://www.microsoft.com/en-us/download/details.aspx?id=36434), although there are of course a lot of other different database types out there. You need to find out what database you’re trying to access, find the driver for it, and install it so that you can set up a connection to it using the ODBC.


Once you have your driver installed, there may be a couple of different login options when you connect to the database. These are the options that the connector will use to actually talk to the database.
Legato doesn’t have access to these options, just to the connector itself, so you can create a lower permission user to connect to the database if you don’t want your script to have access to the full database. The common parameters it will ask for when setting up a new connection are:


1) Data Source Name: This is going to be the name of the connection you create. You will pass this to a Legato function when you actually want to connect to a database using Legato.


2) Description: A brief description of the connection that is going to be established.


3) TCP/IP Server and Port: The actual address of the SQL server to which you’re connecting.


4) User: This is the username of the SQL user that the connection use to log into the database. This is not a Windows username or any other system user.


5) Password: The password for the SQL user name above.


6) Database: The name of the database in the SQL server that you are accessing.


Depending on the driver you’re using, there may be a lot of other settings for things like SSL Tunneling, encryption, etc. Our example next week will involve a connection to an Excel file (which should be supported by default, so no new connection is required), so it has some different options. It still asks for a data source name and description, but it also lets you select a workbook to which the ODBC connector will connect. Excel connections are generally read only, but the same Legato functions apply to an Excel file as to a more complex SQL database.

Posted by
Steven Horowitz
in Development at 17:32
Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)
No comments
Add Comment
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
   
 

Quicksearch

Categories

  • XML Accounting
  • XML AICPA News
  • XML FASB News
  • XML GASB News
  • XML IASB News
  • XML Development
  • XML Events
  • XML FERC
  • XML eForms News
  • XML FERC Filing Help
  • XML Filing Technology
  • XML Information Technology
  • XML Investor Education
  • XML MSRB
  • XML EMMA News
  • XML FDTA
  • XML MSRB Filing Help
  • XML Novaworks News
  • XML GoFiler Online Updates
  • XML GoFiler Updates
  • XML XBRLworks Updates
  • XML SEC
  • XML Corporation Finance
  • XML DERA
  • XML EDGAR News
  • XML Investment Management
  • XML SEC Filing Help
  • XML XBRL
  • XML Data Quality Committee
  • XML GRIP Taxonomy
  • XML IFRS Taxonomy
  • XML US GAAP Taxonomy

Calendar

Back May '25 Forward
Mo Tu We Th Fr Sa Su
Monday, May 19. 2025
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Feeds

  • XML
Sign Up Now
Get SEC news articles and blog posts delivered monthly to your inbox!
Based on the s9y Bulletproof template framework

Compliance

  • FERC
  • EDGAR
  • EMMA

Software

  • GoFiler Suite
  • SEC Exhibit Explorer
  • SEC Extractor
  • XBRLworks
  • Legato Scripting

Company

  • About Novaworks
  • News
  • Site Map
  • Support

Follow Us:

  • LinkedIn
  • YouTube
  • RSS
  • Newsletter
  • © 2024 Novaworks, LLC
  • Privacy
  • Terms of Use
  • Trademarks and Patents
  • Contact Us