473,508 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sqlhelper or not Sqlhelper that is the question.

Hello All,

What is the consensus on using sqlhelper or not using sqlhelper when calling
stored procedures?

We're trying to go with a standard for our projects and personally I prefer
not using sqlhelper, but some here do. I'm just curious if there are any
good arguments for or against it...

Thanks,
John
Oct 6 '06 #1
4 2114
What version of the framework are you using. If you're using SqlHelper I'm
assuing you're using the 1.0 or 1.1 framework correct?

The decision on a standard for your DAL and other data access truly depends
on how you want to design your business objects or data container objects
that your filling with the data from the stored procedure. SqlHelper is great
if you want a fast way to implement ADO.NET to fill custom class instances,
however if you want to use strongly typed datasets from XSD, SqlHelper is not
the best or most flexible way to fill and manage those datasets when it comes
to persistence and referential integrity.

If you're simply executing a stored procedure on the fly with no concern on
retriving data for business logic or do not have a business layer (and are
not using complex forms of databinding), then by all means SqlHelper is a
pretty quick way to get the job done with little overhead.

"John F" wrote:
Hello All,

What is the consensus on using sqlhelper or not using sqlhelper when calling
stored procedures?

We're trying to go with a standard for our projects and personally I prefer
not using sqlhelper, but some here do. I'm just curious if there are any
good arguments for or against it...

Thanks,
John
Oct 6 '06 #2
We're using version 2.0. Thanks for your input Chad.
"Chad Scharf" wrote:
What version of the framework are you using. If you're using SqlHelper I'm
assuing you're using the 1.0 or 1.1 framework correct?

The decision on a standard for your DAL and other data access truly depends
on how you want to design your business objects or data container objects
that your filling with the data from the stored procedure. SqlHelper is great
if you want a fast way to implement ADO.NET to fill custom class instances,
however if you want to use strongly typed datasets from XSD, SqlHelper is not
the best or most flexible way to fill and manage those datasets when it comes
to persistence and referential integrity.

If you're simply executing a stored procedure on the fly with no concern on
retriving data for business logic or do not have a business layer (and are
not using complex forms of databinding), then by all means SqlHelper is a
pretty quick way to get the job done with little overhead.

"John F" wrote:
Hello All,

What is the consensus on using sqlhelper or not using sqlhelper when calling
stored procedures?

We're trying to go with a standard for our projects and personally I prefer
not using sqlhelper, but some here do. I'm just curious if there are any
good arguments for or against it...

Thanks,
John
Oct 6 '06 #3
At my shop, we use the SqlHelper v2.0 (not the Ent Lib provider model one)
for almost everything. Its very compact code, and everybody is familiar with
it. In our case, it's very unlikely we'll ever use anything but SQL Server,
and it works fine with SQL 2005 as well. Plus, we like the idea that you can
make a stored proc call passing an object array of parameter values all in a
single line of code, and have your SqlParameters automatically cached by the
static SqlParameterCache class in it.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"John F" wrote:
Hello All,

What is the consensus on using sqlhelper or not using sqlhelper when calling
stored procedures?

We're trying to go with a standard for our projects and personally I prefer
not using sqlhelper, but some here do. I'm just curious if there are any
good arguments for or against it...

Thanks,
John
Oct 6 '06 #4
Thanks Peter!
--
John F
"Peter Bromberg [C# MVP]" wrote:
At my shop, we use the SqlHelper v2.0 (not the Ent Lib provider model one)
for almost everything. Its very compact code, and everybody is familiar with
it. In our case, it's very unlikely we'll ever use anything but SQL Server,
and it works fine with SQL 2005 as well. Plus, we like the idea that you can
make a stored proc call passing an object array of parameter values all in a
single line of code, and have your SqlParameters automatically cached by the
static SqlParameterCache class in it.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"John F" wrote:
Hello All,

What is the consensus on using sqlhelper or not using sqlhelper when calling
stored procedures?

We're trying to go with a standard for our projects and personally I prefer
not using sqlhelper, but some here do. I'm just curious if there are any
good arguments for or against it...

Thanks,
John
Oct 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2968
by: Rajesh Madhra | last post by:
Hi everybody I just solved my probem about creating my own assemblies by using the command line vbc /nologo /t:library /out:MyClass.dll ... MyClass.vb with your help. But I still cannot make...
3
8388
by: Brian | last post by:
I am trying to pass a null value into a stored procedure so that it can save the data. I am using Microsoft's SQLHelper dll to do this. My example code is below. How do I pass in a null value...
0
1626
by: Rajesh Kumar | last post by:
Hi Gregory Thanks for your answer. I did not see any attached file so I copied your text into a text file and named it compiler.bat Checked the wrapped lines and runned the file. It said Dataset,...
0
3357
by: Rajesh Madhra | last post by:
Hi Gregory Thanks for your answer. I did not see any attached file so I copied your text into a text file and named it compiler.bat Checked the wrapped lines and runned the file. It said Dataset,...
7
11991
by: Neven Klofutar | last post by:
Hi, I have a problem with SqlHelper.ExecuteScalar ... When I try to execute SqlHelper.ExecuteScalar I get this message: "System.InvalidCastException: Object must implement IConvertible.". ...
4
2859
by: FyinsFlip | last post by:
Microsoft Data Access Blocks (SqlHelper) you can do an insert and get the new row ID without using a stored procedure? DataMembers.Car_IDObject = SqlHelper.ExecuteScalar( _connectionString ,...
0
1285
by: Manuel | last post by:
I'm using the SQLHelper class to do an insert and get the identity field this way: -------------- Dim sql As String = "INSERT INTO () VALUES ('MyMessage');SELECT SCOPE_IDENTITY()" Dim ds As...
0
2320
by: rockdale | last post by:
Hi, All How to get the output parameter's value when you use the SQLHelper (Microsoft Data Access Block)? When I try to access my ourput parm I got the following error. ...
0
1091
by: Tim::.. | last post by:
Can someone tell me how you change this code for an Oledb connection rather than SQL Server. The code currently uses Microsoft.Data.Access.Application.Block and the SQLHelper object... I need to...
0
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.