Hi,
I have a Problem running some SQL-commands with powershell:
$Command.CommandText = “Insert into [smartPN_Config].[dbo].[Text] (textid,languageid, textclass,
text, longtext,informadministrator) values
(‘ERROR_1000’,‘DE’,‘error’,‘Fehler beim Empfang einer Nachricht von Unit "{smartUnitId}" (RemoteEndpoint:{RemoteEndpoint})’,
'Beim Empfang einer Nachricht von der smartUnit "{smartUnitId}" (RemoteEndpoint="{RemoteEndpoint})" wurde eine unerwartete Exception Type="{ExceptionType}" mit der Nachricht "{ExceptionMessage}"empfangen. ',‘1’);”
$Command.ExecuteNonQuery()
He complains as Parser error for the { and } in the data of the SQL-command.
Taking of the brackets - no Problems.
The SQL-commands in the Management Studio work fine.
Any ideas?
Thanks!