Bloggin in the UK RSS 2.0
 Wednesday, July 27, 2005

Okay so it turns out it's all about performance (read my previous post) not forcing VB6 developers in ADO to set command parameter attributes like size and type, meant an additional round trip to the database. I don't have a problem with MS taking this functionality out for the default but they could have allowed us a way to turn it back on.

Fear not I a have written a class that will go off to the database fetch all the attributes of the parameters in your query so that all you have to do is specify the values. WARNING: This will slow things down two trips to the database are slower than one, the only way I can see you could remove some of this overhead would be come up with a caching scheme.

I have tried to comment the code so you should find it fairly straghtforward to use, I have only tried using it on SQL Server 2000 so far. The source is attached to this post for your dining pleasure.

SQL.zip (1.51 KB)
Wednesday, July 27, 2005 8:08:19 PM (GMT Standard Time, UTC+00:00)  #    Comments [1] -

Tracked by:
"european diet pills" (european diet pills) [Trackback]
Wednesday, May 23, 2007 9:10:44 AM (GMT Standard Time, UTC+00:00)
Hi, thanks for your post on stored procedures, however your project is in .net and not VB6 although your post mentions VB6 and I was interested in a VB6 solution that's why the search engine directed me to your page.

Do you have any VB6 code?
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview
Archive
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010
Charlie Barker
Sign In
Statistics
Total Posts: 163
This Year: 5
This Month: 1
This Week: 0
Comments: 76
Themes
Pick a theme:
All Content © 2010, Charlie Barker
DasBlog theme 'Business' created by Christoph De Baene (delarou)