{"id":5801,"date":"2014-04-07T09:17:00","date_gmt":"2014-04-07T09:17:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/problem-about-select-statement-collection-of-common-programming-errors\/"},"modified":"2014-04-07T09:17:00","modified_gmt":"2014-04-07T09:17:00","slug":"problem-about-select-statement-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/problem-about-select-statement-collection-of-common-programming-errors\/","title":{"rendered":"problem about select-statement-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9ad76aea35b144e074dc1d809edc5bb0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTom H.<br \/>\nc# sql parameters sqlcommand select-statement<br \/>\nI&#8217;m paging data using an ObjectDataSource and I have the following method:public int GetNumberOfArticles(string employeeIds) {System.Data.DataTable dataTable;System.Data.SqlClient.SqlDataAdapter dataAdapter;System.Data.SqlClient.SqlCommand command;int numberOfArticles = 0;command = new System.Data.SqlClient.SqlCommand();command.Connection = Classes.Database.SQLServer.SqlConnection;command.CommandText = @&#8221;SELECT COUNT(*)FROM [Articles]WHERE [Articles].[EmployeeID] IN (@EmployeeIds)&#8221;;command.Param<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tom H. c# sql parameters sqlcommand select-statement I&#8217;m paging data using an ObjectDataSource and I have the following method:public int GetNumberOfArticles(string employeeIds) {System.Data.DataTable dataTable;System.Data.SqlClient.SqlDataAdapter dataAdapter;System.Data.SqlClient.SqlCommand command;int numberOfArticles = 0;command = new System.Data.SqlClient.SqlCommand();command.Connection = Classes.Database.SQLServer.SqlConnection;command.CommandText = @&#8221;SELECT COUNT(*)FROM [Articles]WHERE [Articles].[EmployeeID] IN (@EmployeeIds)&#8221;;command.Param Web site is in building<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5801","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5801"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5801\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}