{"id":983,"date":"2014-07-08T16:48:56","date_gmt":"2014-07-08T11:48:56","guid":{"rendered":"http:\/\/www.esearing.com\/v2010\/?p=983"},"modified":"2014-07-08T16:48:56","modified_gmt":"2014-07-08T11:48:56","slug":"odd-sql-server-error-message","status":"publish","type":"post","link":"https:\/\/www.esearing.com\/v2010\/2014\/07\/odd-sql-server-error-message\/","title":{"rendered":"Odd SQL Server Error message"},"content":{"rendered":"<p>This one took me a few minutes to figure out. &#8220;Incorrect syntax near &#8216;@P2&#8217;. &#8220;. At first I thought my Colfusion server was having an issue with an email address I was inserting but the &#8220;P2&#8221; was not in the data at all. I finally discovered that my insert statement was missing the comma for the 2nd Parameter.<\/p>\n<p>Insert into mytable<br \/>\nvalues (&#8216;p1&#8217;<br \/>\n<span style=\"color: red;\">&#8216;p2&#8217;<\/span><br \/>\n, &#8216;p3&#8217;<br \/>\n, &#8216;p4&#8217;<br \/>\netc..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one took me a few minutes to figure out. &#8220;Incorrect syntax near &#8216;@P2&#8217;. &#8220;. At first I thought my Colfusion server was having an issue with an email address I was inserting but the &#8220;P2&#8221; was not in the &hellip; <a href=\"https:\/\/www.esearing.com\/v2010\/2014\/07\/odd-sql-server-error-message\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,14],"tags":[66,67],"class_list":["post-983","post","type-post","status-publish","format-standard","hentry","category-problems-fixes","category-sql","tag-p2","tag-incorrect-syntax"],"_links":{"self":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/comments?post=983"}],"version-history":[{"count":1,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/983\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/983\/revisions\/984"}],"wp:attachment":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/media?parent=983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/categories?post=983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/tags?post=983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}