I am trying to run an OPENQUERY
to get data from a table connected with in a API. I am trying to do this via SQL server and having no joy.
I have looked at SSIS to query the data, but i don't know how to connect to an API XML server as my knowledge of SSIS is very little - does anyone know of a simple steps tutorial as would love to try
First i tried
SELECT * FROM OPENQUERY ([https://server.com], ' SELECT * FROM Booking A')a
But realized that i needed to add a username and password
I have tried below with no joy
SELECT a.*
FROM OPENROWSET('SQLOLEDB','Data Source=https://webserver.com;Initial Catalog=dbName;Persist Security Info=True;User ID=server.com;Password=pass',
'select top 1 * from Booking') AS a
Can someone point me in the correct direction please, as I have tried SQL Server 2012 and SSIS 2010