<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Deprecation in ADO.NET</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx</link><description>On the topic of deprecation, I came across this post today from Plip : Do you use SqlCommand.Parameters.Add("@Name","Value"); ? Well, you're in for a shock, it's been depricated in ADO.NET 2.0. When you move to 2.0, you should instead be using: - SqlCommand</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>calling stored procedure in ADO.NET 2.0 | keyongtech</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx#6854148</link><pubDate>Thu, 22 Jan 2009 05:42:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6854148</guid><dc:creator>calling stored procedure in ADO.NET 2.0 | keyongtech</dc:creator><author>calling stored procedure in ADO.NET 2.0 | keyongtech</author><description>&lt;p&gt;Pingback from &amp;nbsp;calling stored procedure in ADO.NET 2.0 | keyongtech&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6854148" width="1" height="1"&gt;</description></item><item><title>re:Deprecation in ADO.NET</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx#398535</link><pubDate>Sun, 10 Apr 2005 01:19:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:398535</guid><dc:creator>TrackBack</dc:creator><author>TrackBack</author><description>^_^,Pretty Good!&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=398535" width="1" height="1"&gt;</description></item><item><title>re: Deprecation in ADO.NET</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx#397482</link><pubDate>Thu, 07 Apr 2005 06:27:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:397482</guid><dc:creator>Ranjan</dc:creator><author>Ranjan</author><description>I think&lt;br&gt; &amp;quot;In general, having multiple overloads where the distinguishing parameter type is “object” in one of them is a dangerous thing to do.&amp;quot;&lt;br&gt; should become an FxCop rule now.&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=397482" width="1" height="1"&gt;</description></item><item><title>SqlParameters.Add(string, object) is Out!</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx#397479</link><pubDate>Wed, 06 Apr 2005 21:55:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:397479</guid><dc:creator>TrackBack</dc:creator><author>TrackBack</author><description>One of the pleasures of working with Beta products is just when your code is working, you find out a...&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=397479" width="1" height="1"&gt;</description></item><item><title>re: Deprecation in ADO.NET</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx#397085</link><pubDate>Mon, 04 Apr 2005 19:10:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:397085</guid><dc:creator>Pablo Castro [MS]</dc:creator><author>Pablo Castro [MS]</author><description>Hi Eric,&lt;br&gt;&lt;br&gt;Note that AddWithValue is a strict replacement for Add(string name, object value), it's not an attempt to extend the API.&lt;br&gt;&lt;br&gt;I somewhat agree that adding more overloads would save a line of code, but it would also increase the surface area of the ADO.NET API quite a bit (we'd need an Add method for every CLR primitive type, and probably one for every SQL type as well).&lt;br&gt;&lt;br&gt;We have certainly thought avoid this (more along the lines of avoiding boxing than for avoiding the extra line), but we decided not to go ahead with the extension in the Whidbey release.&lt;br&gt;&lt;br&gt;Also note that if you don't specify the type we'll not introduce implicit conversions on the client; we'll infer the type directly from your value. We'll only do conversions if you give us both a value and a type and they don't match. (conversions also might happen on the server-side if the target type is different, of course)&lt;br&gt;&lt;br&gt;I hope this helps clarify the issue.&lt;br&gt;&lt;br&gt;Pablo Castro&lt;br&gt;Program Manager - ADO.NET Team&lt;br&gt;Microsoft Corp.&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=397085" width="1" height="1"&gt;</description></item><item><title>re: Deprecation in ADO.NET</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx#397068</link><pubDate>Mon, 04 Apr 2005 17:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:397068</guid><dc:creator>Eric Newton</dc:creator><author>Eric Newton</author><description>But the addwithvalue doesnt allow us to type the parameter, leading to possible implicit conversions.&lt;br&gt;&lt;br&gt;&lt;br&gt;I've proposed some AddWithValue overloads that take typed parameters and set the SqlDbType for them:&lt;br&gt;&lt;a target="_new" href="http://lab.msdn.microsoft.com/productFeedback/viewfeedback.aspx?feedbackid=c334a645-8f20-4d0a-80c1-c1fdca1bc39e"&gt;http://lab.msdn.microsoft.com/productFeedback/viewfeedback.aspx?feedbackid=c334a645-8f20-4d0a-80c1-c1fdca1bc39e&lt;/a&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=397068" width="1" height="1"&gt;</description></item><item><title>re: Deprecation in ADO.NET</title><link>http://weblogs.asp.net/jackieg/archive/2005/03/22/395517.aspx#395552</link><pubDate>Tue, 22 Mar 2005 21:11:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:395552</guid><dc:creator>Phil</dc:creator><author>Phil</author><description>Jackie,&lt;br&gt;&lt;br&gt;That's great I had wondered myself but had not gotten round to asking :-)&lt;br&gt;&lt;br&gt;Plip.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=395552" width="1" height="1"&gt;</description></item></channel></rss>