Jump to content

Recommended Posts

Posted

there is an accounting package that share data over odbc connection to excel

can some one please help me use this odbc connection in autoit

odbc connection looks like this
 

XLODBC
1
DRIVER={Tally ODBC Driver};SERVER=(local);PORT=9000;
SELECT Ledger.`$Name`  FROM client.TallyUser.Ledger Ledger


$Name

if anyone can help i would be thankful

Posted

Look in my signature for ado.au3

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

DRIVERS SEEM TO CHANGE IN MY CASE IE 

Tally ODBC Driver

BUT WHAT ABOUT DATABASE?

CAN YOU JUST WRITE A SHORT SNIPPET FOR JUST CONNECTING TO ODBC ON SAID CONFIG

Posted (edited)

Download Ado.au3 UDF
Open ADO_EXAMPLE.au3
Add and try this function:

Func _Example_Tally()
    #cs
        https://www.autoitscript.com/forum/topic/184381-odbc-connection-for-accounting-software/
        DRIVER={Tally ODBC Driver};SERVER=(local);PORT=9000;
    #ce
    
    Local $sDriver = 'Tally ODBC Driver'
    Local $sServer = '(local)' 
    Local $sPort = '9000' 
    
    Local $sConnectionString = 'DRIVER={' & $sDriver & '};SERVER=' & $sServer & ';PORT=' & $sPort & ';'

    _Example_1_RecordsetToConsole($sConnectionString, "SELECT Ledger.`$Name`  FROM client.TallyUser.Ledger Ledger")
    _Example_2_RecordsetDisplay($sConnectionString, "SELECT Ledger.`$Name`  FROM client.TallyUser.Ledger Ledger")
    _Example_3_ConnectionProperties($sConnectionString)

EndFunc   ;==>_Example_Tally

 

mLipok

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 1 month later...
Posted

Thanks it worked out great. can you also help me out with getting all table lists

m attaching a snapshot of how it looks in ms excel

1.png

2.png

Posted

using ADO.au3 UDF
 

_ADO_Schema_GetAllTables($oConnection, 'dbName')

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...