Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,817 of 19,505    |
|    Erland Sommarskog to JAW    |
|    Re: Purge Utility    |
|    13 Feb 13 22:25:31    |
      From: esquel@sommarskog.se              JAW (jwilliam@aglresources.com) writes:       > When I run code with the apostrophes like the above I get an error       > saying that a syntax error exists.              When I supplemented the code you posted with variable declarations and       a CATCH block, the code executed successfully.              Is your dynamically generated SQL producing an error? Did you look at the       actual code? You seem to have a PRINT there?                                          --       Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se              Links for SQL Server Books Online:       SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx       SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca