Bypassing character limit on OPENQUERY failing use EXECUTE
问题 I am currently using SQL Server Management Studio 17 to connect to an Oracle database instance and then extract some data and insert it into a SQL Server Table I have. I have tried doing the following: DROP TABLE IF EXISTS [jerry].[dbo].[purchases] SELECT * INTO [jerry].[dbo].[purchases] FROM OPENQUERY(OLAP, ' proprietary sql code '); However the SQL code is about 9500 characters and thus OPENQUERY fails, which is supported by MSDN articles I referenced these sites: - MSDN One - MSDN Two and