Search found 2 matches

by colinhay
23 Jul 2012 20:41
Forum: DOS Batch Forum
Topic: Escaping ! < and > within a SET statement that is then piped
Replies: 4
Views: 3600

Re: Escaping ! < and > within a SET statement that is then p

Thanks for the reply - I'm sure I had tried that but in the end I rewrote the SQL to

where not (policy_id = 0)

:lol:
by colinhay
10 Jul 2012 23:33
Forum: DOS Batch Forum
Topic: Escaping ! < and > within a SET statement that is then piped
Replies: 4
Views: 3600

Escaping ! < and > within a SET statement that is then piped

Trying to set a variable to an SQL statement with a != in it in a DOS batch file but am unable to escape the ! so that both the set and the pipe pass the SQL correctly. No number of ^'s prior to the ! make any difference. Using <> instead of != is just as problematic .... Running with enabledeleyexp...