RRinTetons
IS-IT--Management
This query works fine in SSMS:
EXECUTE [dbo].[myProc] @BeginTransactionDate = '2019-12-01 22:52:00',@EndTransactionDate = '2019-12-5 22:52:00'
When I change it to work as a stored procedure call in MS Query to move data into an Excel workbook I *thought it should look like:
{CALL [dbo].[myProc] @BeginTransactionDate = '2019-12-01', @EndTransactionDate = '2019-12-05'}
but that returns a syntax error without much information. I tried the MS Query version with the parameters in parentheses, but that doesn't fix anything.
I used to do this a lot, but it's been a few years, my recollections of the very picky syntax MS Query expects is a little fuzzy. Does anybody see what I'm missing.
-
Richard Ray
Developer, Data Analyst
Jackson Hole, WY
EXECUTE [dbo].[myProc] @BeginTransactionDate = '2019-12-01 22:52:00',@EndTransactionDate = '2019-12-5 22:52:00'
When I change it to work as a stored procedure call in MS Query to move data into an Excel workbook I *thought it should look like:
{CALL [dbo].[myProc] @BeginTransactionDate = '2019-12-01', @EndTransactionDate = '2019-12-05'}
but that returns a syntax error without much information. I tried the MS Query version with the parameters in parentheses, but that doesn't fix anything.
I used to do this a lot, but it's been a few years, my recollections of the very picky syntax MS Query expects is a little fuzzy. Does anybody see what I'm missing.
-
Richard Ray
Developer, Data Analyst
Jackson Hole, WY