I'm trying to use an Execute SQL Task in SSIS to run an INSERT statement which runs fine from within SSMS, but for some reason I get an error. In testing I narrowed it down to the character sequence $( which is part of a string that is being inserted into a nvarchar(MAX) column. If I remove either of the characters it works fine....any ideas of what's going on ?
Test SQL Query
INSERT INTO [Test].[dbo].[TextTest]
([SomeText])
VALUES
('$(')
Error Message
[Execute SQL Task] Error: Executing the query "" failed with the following error: "". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
SQL Version
SQL version Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)