Is possible to get connection to mysql server from excel macro, without downloading any ODBC connector? I have found solutions only with this connector. Problem is, that I have to send excel workbook to some people which they don't have this connector in their computer, and it will be a little problem to set it for them.
I need to make only one INSERT query.
Related
Is it possible to have the queries I have written in developer run in excel? I can connect to the db in excel but I'm unsure of how to find and run the queries.
Check out this page.
Once you're able to connect, you should be able to query the database in its native language. Select the Power Query tab, then the drop-down From Database -> From Oracle Database. Simply copy/paste your existing Oracle query into the SQL Statement box and you should be good to go.
In case you don't already have it, Power Query is an add-in for Excel. You can find it here.
Is it possible to create a spreadsheet that updates itself on a regular basis (daily, bi-weekly or monthly)? We use PostgreSQL. The content of the sheet is going to be based off a query I wrote.
What's the easiest way to connect an Excel spreadsheet to Postgres?
So far I have looked at:
A Microsoft product: https://support.office.com/en-us/article/Connect-to-a-PostgreSQL-database-Power-Query-bf941e52-066f-4911-a41f-2493c39e69e4
PostgreSQL's ODBC: https://odbc.postgresql.org/
However I can't find a clear explanation of how I am practically going to set up the spreadsheet.
A quick high-level explanation to connect excel to a database:
You can connect to a ODBC enabled DBMS's view or table using Excel's Get External Data buttons. Specifically in the Data tab, the From other Sources button.
To use this, you need to create a new DSN for your connection. Start>>"Search Box">>ODBC and use the 64-bit ODBC administrator to create a new System DSN. The DSN is the thing that will hold your ODBC connection's information, like the server address, username, password, etc...
Back in Excel you click the From Other Sources button in the Data tab and pick that DSN you just made. Then you can find the View you generated in Postgres and tell it which range you want to dump the data. That range then will hold the connection information so you can refresh any time you want.
Then, when you open the workbook you can just refresh the connection and pick up new data lickety-split.
There's other ways to connect Excel to ODBC and OLEDB enabled databases like using ADODB in VBA, but that's more complicated and probably overkill for you needs.
I have a Web Service call that returns reporting data using Linq-To-Entity (strongly type class list). I connected this task to a foreach loop container with a Execute SQL Task. I have come to a crossroad as to what approach I should take on whether the OLE DB connection or to use EXCEL. The server [W2k8 R2] does not have Excel installed (we want to avoid that as much as possible).
15 worksheets would have the same schema info (each sheet is a per client basis) while the last worksheet is a summary and has a different schema. The summary has its own strongly typed class as well.
The end goal is to pass that report data into the xlsx file then to an SMTP task as an email attachment.
Would I be better off creating the Excel Tables in a script task using OLE DB or using EXCEL connection?
Using SSIS with SQL Server 2012
You might want to take a look at report subscription and delivery with SQL Server Reporting Services. Might be an easier and more maintainable way to implement your requirement (msdn).
Not sure what you mean by an EXCEL connection, but if it's the connection manager in SSIS, then an EXCEL and OLEDB connection are practically the same thing. The EXCEL connection manager uses the Microsoft OLE DB Provider for Jet 4.0 (msdn).
I have some data in access(and excel) and I don't find a Free and not-really-hard-way to do it... any help?
I have excel and access 2003*
Add the DB2 iSeries database as an ODBC datasource in Windows. You should be able to do this with the Client Configuration Assistant that comes with the DB2 Client for Windows.
Open up your data in MS Access, you should be able to export it to an ODBC datasource from there. Good luck.
Another option is to export the data to a CSV file, then use the "Data Transfer to iSeries" utility that comes with Client Access.
I am trying to render a simple chart using SSRS. The data is in an Excel sheet. I have set up an user DSN and created a data source in SSRS using ODBC.
I am able to query the excel in Data tab. However while trying to preview, I get the following error:
error [hy000] [microsoft] [odbc excel driver] the connection for
viewing your linked Microsoft Excel worksheet was lost.
Anyone knows why this is happening and how this can be solved?
I would consider creating a SQL Sever Integration Services package to import the data from Excel to a SQL database and using the database as the data source for the report. The SSIS package could be scheduled to periodically refresh the data.
Using a file based data source like Excel is vulnerable to people modifying the structure of the spreadsheet and moving, deleting or locking the file.
Seems to be a fleeting error. I deleted the dataset, created a new one and re-ran again. It worked.