473,499 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Standard db access component

Hello,

I've developed a component that encapsulates common database activities.

This example creates a parameter array and executes a stored procedure:

SqlParameter[] list = {
SqlTool.GetParameter("@ID", 11),
SqlTool.GetParameter("@Name", "Steve")
}

SqlTool.ExecuteNonQuery("spUpdateName", list);

The type of the parameter is determined by polymorphism. The connection
string is taken from a key in web.config.

Here's my question: Is there a commonly used component for this kind of
thing? I've heard that Microsoft has one, but I haven't been able to
find it on their site.

Thanks,
Jason
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #1
1 1322

http://msdn.microsoft.com/library/de...ml/daab-rm.asp
--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
"Guy Incognito" <an*******@devdex.com> wrote in message
news:e5**************@TK2MSFTNGP10.phx.gbl...
Hello,

I've developed a component that encapsulates common database activities.

This example creates a parameter array and executes a stored procedure:

SqlParameter[] list = {
SqlTool.GetParameter("@ID", 11),
SqlTool.GetParameter("@Name", "Steve")
}

SqlTool.ExecuteNonQuery("spUpdateName", list);

The type of the parameter is determined by polymorphism. The connection
string is taken from a key in web.config.

Here's my question: Is there a commonly used component for this kind of
thing? I've heard that Microsoft has one, but I haven't been able to
find it on their site.

Thanks,
Jason
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #2

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

Similar topics

11
3731
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
3
5687
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
6
4708
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
5
3305
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
1
4213
by: Thomas Holmgren | last post by:
Hi all I've tried to get my hands on the End User License Agreement for MS Visual C# .NET 2003 STANDARD edition, sofar without luck. Does anybody know where I can find the license agreement...
2
1468
by: Kirk Marple | last post by:
i'm attempting to interop from C# to a COM DLL, and have found some trouble with a non-standard interface (at bottom of post - followed by my C# version). typically COM methods return an HRESULT...
1
305
by: Guy Incognito | last post by:
Hello, I've developed a component that encapsulates common database activities. This example creates a parameter array and executes a stored procedure: SqlParameter list = {...
2
342
by: Gipson | last post by:
I build an application in C# that does both serial and TCP/IP communications. The application also uses some dlls build in VB.NET which are loaded using late binding. I use the 'Trasport' package...
270
9215
by: jacob navia | last post by:
In my "Happy Christmas" message, I proposed a function to read a file into a RAM buffer and return that buffer or NULL if the file doesn't exist or some other error is found. It is interesting...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7386
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...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4918
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
4599
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
3098
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
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
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 ...
0
295
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.