Connecting Tally ERP 9 real time data with Excel workbook - excel

I want to connect my client's live Tally ERP 9 data with Excel in order to make some reports. My purpose is fetch the real time accounting data into Excel. I have tried connecting Excel to Tally through ODBC Connection but I am unable to find the data of Transactions from the given data tables. Is there any other way to do it?

Yes, Using Tally Definition Language you can create your own data source (Collection), and expose it in odbc connection
[Collection : ODBCTrans]
Type : Voucher
IsOdbcTable : Yes
Fetch : Date, VoucherTypeName, Amount
Copy paste above code in a text file and attach it with tally erp, to know steps follow below links:
https://help.tallysolutions.com/article/DeveloperReference/td9/working_with_projects/load_tcp_file.htm
After this file is loaded successfully with tally, when you connect to odbc you will find a new table with name "ODBCTrans"
for more details about creating collections follow below link
https://help.tallysolutions.com/article/DeveloperReference/tdlreference/objects_and_collections.htm#collectioncapabilities

Related

Excel create multiple MS Queries using one data connection between two sheets in the same workbook

In Excel 2021, what exactly is a "data connection", "query" and "domain source name"?
Let's say I have a Workbook "Manahil_Customer_Database.xlsm" in which I have a sheet "sht_Customer_Cities" that has a table "tbl_Customer_Cities". In a new sheet "sht_Report" I want to run two queries using one connection via MS Query. Now when I go through the MS Query route I get one Domain Name Source File "Manahil_Customer_Database.dsn" and one MS Query file "Customer_Countries_Cities.dqy" and one Connection file "Customer_Countries_Cities.odc".
However when I look at the "Queries & Connections" it says 0 Queries and 1 Connection named "Customer_Countries_Cities". I want to be able to establish a single Data Connection via MS Query from the "sht_Report" to the Workbook "Manahil_Customer_Database.xlsm" and than run multiple queries using the same connection.
Power Query replaced MS:Query from Excel 2016 onwards. The objects and panes you are describing relate to Power Query, not MS:Query.
Power Query is far more functional, reliable, flexible and performant than MS:Query.
For example depending on your exact requirement, you might create a base query that gathers all the required data, then refer to that base query in Reference queries that filter the output needed for each destination table.
Here's a starting point for Power Query:
https://support.microsoft.com/en-us/office/about-power-query-in-excel-7104fbee-9e62-4cb9-a02e-5bfb1a6c536a
Power Query is a MS tool that assists you on your ETL tasks.
As read in a previous answer, it is based on M language.
To be able to import / modify / connect your data, the command is:
DATA / GET DATA and select your input
Check this link for a quick introduction:
https://learn.microsoft.com/en-us/power-query/power-query-what-is-power-query
If I understand the situation correctly, you are working internally, within a single excel file. Data connections, queries, and domain sources, are all used to associate externally.
Internally I would think you could use a pivot-table and/or a slicer.
If you provide additional details on what specifically you are trying to do, a better answer could be provided.
Some additional reading below may help further:
Power Query Help
Data Connections
Queries
External Links

How can I setup Power BI Report Builder to an Excel Data Connection and retrieve the data from a Table

I am new to Power BI Report Builder and I am trying to setup an Excel spreadsheet as a Data Source. I'm not quite sure on the Connection String, so any help on that would be a great start. But I really don't have a clue how to build a query to specify the data I want from the Data Source. When I try it gives me the error message "The XmlDP query is invalid". I haven't used XmlDP before so I don't know what I should be writing.
In the Excel spreadsheet, I have a table called "Table_Calendar", in Sheet2. I want to pick up all columns in this table and all rows. Please help!

Importing data from excel to multiple tables in Oracle DB

I have an excel sheet with a single workbook with data in it. The data is around 1000 rows and 50 columns. I need to import these data to an Oracle DB every week. Here comes the problem, the columns in the sheet belongs to different tables with some columns go in multiple tables. I use SQL Developer V.18.1.0.095. Thanks in advance for the help.
Note: I created a temp table and copied all data to it, then wrote the query to push each column to its respective tables. But, I feel its complex and think it won't work. Is there any better way.
PL/SQL Developer has special tool for tasks like this, calls ODBC Importer (Menu 'Tools'-> ODBC Importer).
For use it you have to set Excel File in USER / System DSN field and your domain user and password, and push Connect after.
After connection developer will ask you path of excel file, and after you can create table in heiborhood tab for your dataset.
Or, you can use sql loader. Ask google how to. It's easy.

Compare excel data with oracle using c#

Can any one please advice what is the best way to compare excel data with data in Oracle and return matching information using c#?
I can create a temp table in oracle database, upload excel data to table and run query to compare data in temp table with actual table and get data.
But let me know if it can be done in any other way.
Ex: I have excel data with vehicle numbers and Oracle has details of vehicles, owner name & address.
I want to get all the information which match vehicle numbers in excel.
please let me know best to do this. It would be great if you can provide sample code.
Thanks in Advance.
You Can do it with fetching excel data in C# code and fetch the data from select query from oracle database and then try to compare it in C# using datatables. You can refere to one of the stackoverflow link Compare Datatables.
and to insert excel data in datatable in C# refer to below linkFetch Excel Data in Datatable
For inserting data from excel to C# Application you have to connect through OLEDB and then fetch the records

Has anyone achieved to use ODBC connection from Excel file into Powerpivot?

I have installed Powerpivot for Excel 2010. I don't have Access 2010 so I thought could I arrange the data in the similar manner as I would for a database.
I'm wanting to query an excel file that has rows of self-generated data into Powerpivot in order to perform simple pivot table. In a sense attempt to get an overview of information about a data set.
At the moment, I'm unable to get set up correctly the ODBC I'm hoping I need to accept an Excel file and to get PowerPivot to accept a database from an Excel file.
Edit: I come to understand that I need to set up a table correctly in Excel so that the ODBC works correctly. Does the picture I provided be right manner to set up a table or any other manner?
Has anyone attempted to do this and if so what would the steps be?
Thanks,
Peter.
Peter, I am working on the basis that your data is in a recognizable table on a worksheet (and that you are not interested in using the standard Excel import method through 'From Other Sources')
If you create the connection to the Excel file in a very particular way it is possible to then query it as if it were a database.
Create a Connection to the spreadsheet in question in Excel through Data>Connections>Add.
In the PowerPivot window on the Design tab click on existing connections and find the connection you just created. Select the connection and Open.
You need to name the connection and then you will be offered the normal import options. Select the sheet you want to get the table from (its actually not important which one you choose at this point).
Once the table has been imported you can re-enter the setup through the 'table properties' on the design tab and you will now be able to 'Switch to' the query editor at which point you can not only write SQL to query your DB but reference any other .xlsx you like.
Jacob
the easiest way is to use a linked table from the excel sheet which has the data - is there any reason why you have not considered this as an option?

Resources