Re: [started] Output string
When outputing as a SQLString the string is not formatted correctly.
e.g. SELECT [RowNum] , [SomeID] , [SomeCode] FROM [TestData] becomes : SELECT @SQLString = N'SELECT [RowNum] ,' + N' [SomeID] ,' + N' [SomeCode]' + N'FROM [TestData]' which is equivalent to : SELECT [RowNum] , [SomeID] , [SomeCode]FROM [TestData] which does not execute as there is not space between the last selected column and FROM. One solution would be to add a space before each ending quote or after each beginning quote by default. Hope this example makes sense.If there is an alternative please let me know. thanks. Edited 2 time(s). Last edit at 03/02/2012 05:31PM by guidomarcel.
|