Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

nesting quotes around a value

$
0
0

I am trying to edit this XML containing a SQL statement.  I get an error:  "Required whitespace is missing"

Apparently it is seeing the quote before the SELECT as ending at the 'A549  and then doesn't understand the rest of the statement.  I would normally nest two single quotes but doesn't seem to work in this case.

 <z:row AorB='B' OrderIndex='6' SQLStatement='SELECT [Bill to acct #] AS GroupField, Count(*) AS CountTran, Sum([Net TN]) AS SumTons
 FROM [Transactions]
 WHERE [Transaction Type]!=16  AND [Date Out]>GetDate()-1 AND [Bill to acct #]='A549' 
 GROUP BY [Bill to acct #]
 ORDER BY [Bill to acct #];'
    Description='Ace' Values='A549' />

Can anyone offer suggestions on how to resolve it ?

thanks


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>