SQLHelper Class

Hi Experts,
Do you know any SQL Helper Class (C#) free for use?
I find one one the web, but don't know whether it has licensing issue...
http://code.google.com/p/codesmith/source/browse/trunk/Projects/CSharp/VSIntegrationSample/SqlService.cs?r=1930
bbkevinAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

santhimurthydCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AlokJain0412Commented:
Please check these links. They may be helpful for you.


http://vbnetsample.blogspot.com/2007/10/sql-helper-class.html

http://social.msdn.microsoft.com/Forums/it-IT/adodotnetdataproviders/thread/fd9229c0-53d0-4b3b-a7da-5df4047343a3

http://www.csharpmagic.com/2011/02/new-version-of-sql-helper-class.html#.TusM0rL8K7s


if you have download it from microsoft site then there is option for code and dll.

Now you have downloaded the dll so sqlhelper.cs will not be available in app_code folder.

Sqllnjuction can be prevented if you most Stored-procedures.

If you want to use sqlhelper class function.

First you have to add namespace Microsoft.ApplicationBlocks.Data

After that you can use all its functions using SqlHelper.ExecuteNonQuery() like this.
Note:--
Apart from that i would like to add my opinion
A lot of people still use the SqlHelper Class that was a part of the original Data Access Application Block, but if you are building new applications I recommend using the Data Access Application Block that is a part of Enterprise Library.

SqlHelper was actually replaced with an abstract class, called Database, and two concrete classes that derive from it:  SqlDatabase and OracleDatabase
0
bbkevinAuthor Commented:
Hi santhimurthyd and AlokJain0412,

I have a project which is a Web Site, not Web Application, therefore I have to put all the common code to App_Code folder.
Should I copy the code from http://www.sharpdeveloper.net/source/SqlHelper-Source-Code-cs.html and remove the namespace?
Do I need to reference dll / class?
I do not want to install the Enterprise Library in the production server..
0
santhimurthydCommented:
No need for any third part dll reference, You may need to add reference to .Net Dll
System.Collections;

As you request, Just repalce the namespace to your requirment, that's enough
0
bbkevinAuthor Commented:
Thanks experts,
I finally use dll in Microsoft Enterprise Library 3.1.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.