Questions tagged [ms-query]

Microsoft Query is a program for retrieving data from external sources into other Microsoft Office programs — in particular, Microsoft Excel

Microsoft Query is a program for bringing data from external sources into other Microsoft Office programs — in particular, Microsoft Excel. By using Query to retrieve data from your corporate databases and files, you don't have to retype the data you want to analyze in Excel. You can also update your Excel reports and summaries automatically from the original source database whenever the database is updated with new information.

Types of databases that you can access

You can retrieve data from several types of databases, including Microsoft Office Access, Microsoft SQL Server, and Microsoft SQL Server OLAP Services. You can also retrieve data from Excel workbooks and from text files.

Microsoft Office provides drivers that you can use to retrieve data from the following data sources:

  • Microsoft SQL Server Analysis Services (OLAP provider)
  • Microsoft Office Access
  • dBASE
  • Microsoft FoxPro
  • Microsoft Office Excel
  • Oracle
  • Paradox
  • Text file databases
170 questions
1
vote
1 answer

Use MS Query in Excel 2010 to Get Data from SQL Server Using Parameters-Complex Query Using Between Two Dates

I tried working with the solutions noted in Excel: Use a cell value as a parameter for a SQL query and How to add parameters to an external data query in Excel which can't be displayed graphically?. However, I can't get any of the solutions to…
Tyrone
  • 77
  • 1
  • 10
1
vote
3 answers

SUM function in Pivot Table Not Working

I have a pivot table on one sheet that is coming from a Microsoft Query MySQL datafeed on another one of my sheets. Consider the information from the datafeed to be like so: date | order | SKU | …
aCarella
  • 2,369
  • 11
  • 52
  • 85
1
vote
2 answers

How to run a query with date from a form?

I have a select query that returns records based on 2 dates from a form - >=Forms!frmReport!StartDate AND <=Forms!frmReport!EndDate. The problem is that whenever the user enters the same date in the both StartDate and EndDate no record is returned…
Kefash
  • 523
  • 2
  • 10
  • 24
1
vote
1 answer

MSSQL retrieve UTF-8 json data using PHP

Hi i am trying to retrieve Arabic data from my database using php but all i got is questions marks .. the data stored fine in the database and the column type is nvarchar I tried to put this code ini_set('mssql.charset', 'UTF-8'); in my php but…
FinalDark
  • 1,748
  • 1
  • 16
  • 26
1
vote
0 answers

Dynaset (Inconsistent Updates)

I just have a general question about setting an Access query to Dynaset (Inconsistent Updates). I know it opens up the fields for editing and this increases the risk of maintaining data integrity, but what about in "controlled cases"? For example, I…
mntyguy
  • 197
  • 2
  • 4
  • 18
1
vote
1 answer

Joomla! 2.5 Category Article Quick Jump Module

I have searched on the JDE but i can't find any extension that can do or that i can modify. I want a module that query a selected top category then filters the second sub category then displays the articles in the second category as a list in the…
Joe Ng'ethe
  • 874
  • 2
  • 12
  • 26
1
vote
0 answers

Passing parameters through Excel to an Informix DB works through MS Query but fails when returned to Excel due to General Error

I require to query an informix database using parameters and Excel. When the query is executed in Microsoft Query the dataset is fetched and returned succesfully, when I attempt to return to Excel the following error occurs: > [Informix][Informix…
Brecker01
  • 11
  • 3
1
vote
1 answer

SQL Limitations of Microsoft Query in Excel

I have using Microsoft Query in Excel 2007 for the past few weeks and have had many cases where the query works fine in SQL Server 2005 but gives irrelevant errors in Microsoft Query. For example I have this case Multipart identifier error in Excel…
Ram
  • 3,092
  • 10
  • 40
  • 56
1
vote
1 answer

Multipart identifier error in Excel 2007 MS Query but not in SQL Server 2008

I have the following SQL code SELECT pd1.Meter, pd1.BasicPool, pd1.RateClass, pd1.Flowdate, (SELECT upOrDownContract FROM PipelineData pd WHERE pd.id = pd1.sibling) AS DnK, match.Volume, …
Ram
  • 3,092
  • 10
  • 40
  • 56
1
vote
2 answers

Excel SSIS query returns null columns in Excel but not in Management studio

I did my best to look around the web but this problem eludes me. I have a stored procedure in SSIS that works fine. It does a bunch of stuff eventually returning some numbers and text. The procedure itself uses #temp tables since the data does not…
M.Ford
  • 369
  • 1
  • 4
  • 15
1
vote
0 answers

MS Query with multiple Parameters

I have this SQL Query and i want the results in an Excel 2013 sheet / table SELECT [MS Part Number], [Item Name], SUM([Aantal]) AS Aantal, [Prijs] FROM ( SELECT [MS Part Number], [Item Name], SUM([Aantal]) AS Aantal, [Prijs] …
BassieBas1987
  • 121
  • 1
  • 3
  • 9
1
vote
1 answer

Excel: Incorrect Syntax near the keyword 'SELECT'

Scenario: I am building a report in Excel to calculate commissions. This is based on Invoices from the previous month. I created the following tsql query and created a connection using MSQuery. I tested the query and it works perfect until I change…
MTRXITGuy
  • 19
  • 3
1
vote
1 answer

What could be SQL Query of a data source that is a spreadsheet, to be returned to a seperate spreadsheet? Including UDFs in the query?

I currently have a data source of a large table, sitting in workbook1. From workbook2, which is currently empty, I wish to set up a DSN connection to workbook1, so that I can query it from workbook 2. In the SQL query result, I wish to display…
1
vote
1 answer

Find the First occurrence value of data in Query

I have a table that has a lot of data, but only of four categories. I would like to return the ID of the First occurrence and last occurrence, of the type. The following is the simplified version of my data.. ID | FName | Password | …
PaulFrancis
  • 5,748
  • 1
  • 19
  • 36
1
vote
1 answer

Selecting and Importing Data Correlating with Most Recent Date with Microsoft Query SQL

I'm trying to modify a current SQL code in Microsoft Query I created to return the most recent production test conducted on a well. Right now the query below returns a list of tests for any well from [Date Parameter=01/01/08] to now for [Well…