Trying to learn to do a pass-through query with the following but I am getting syntax error trying to get data from a table called dbo.Sales Invoices from our SQL Server.
SELECT dbo.Sales Invoices.SalesInvoiceID, dbo.Sales Invoices.SalesInvoiceDate
FROM dbo.Sales Invoices;
ODBC---call failed.
[Micosoft][ODBC SQL Server Driver][SQL Server]Lne 1: Incorrect syntax near ‘,’,(#170)
Could anyone let me know what I am doing wrong?
Thanks
SELECT dbo.Sales Invoices.SalesInvoiceID, dbo.Sales Invoices.SalesInvoiceDate
FROM dbo.Sales Invoices;
ODBC---call failed.
[Micosoft][ODBC SQL Server Driver][SQL Server]Lne 1: Incorrect syntax near ‘,’,(#170)
Could anyone let me know what I am doing wrong?
Thanks