473,378 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

mass adding parameters t sql procedures

ive this procedure which needs some 10+ inputs as parameters. if i go by the
normal method of passing params to procedures in asp.net like
this(http://support.microsoft.com/kb/320916/EN-US/) it'll be really long.
isnt there some shorter way to specify the parameters like when we do EXEC in
Sql Query Analyser ? eg: EXEC CustomProcedure 1,'A%'

how can i do this?

thanx

--
Renjith Chembakarayil
- Is the world Round or Flat ? .. ive my doubts !
Nov 19 '05 #1
3 1170
Renjith,
Check out the Microsoft Data Application Block for .NET.

http://www.gotdotnet.com/workspaces/...c-aaeb21d1f431

It allows you to write one line SQL calls like this:

Dim dsData As DataSet = SqlHelper.ExecuteDataset(ConnectString,
"StoredProcedure", param1, param2)

This eliminates a lot of repetitive SQL boiler plate code, and answers
your question.
Jason
Renjith Chembakarayil wrote:
ive this procedure which needs some 10+ inputs as parameters. if i go by the normal method of passing params to procedures in asp.net like
this(http://support.microsoft.com/kb/320916/EN-US/) it'll be really long. isnt there some shorter way to specify the parameters like when we do EXEC in Sql Query Analyser ? eg: EXEC CustomProcedure 1,'A%'

how can i do this?

thanx

--
Renjith Chembakarayil
- Is the world Round or Flat ? .. ive my doubts !


Nov 19 '05 #2
Jason,
thanx man .. that is what i wanted ..

but i got a slight problem .. i downloaded & installed Data Application
Block v2 and later even the first version -- but still i cant load or import
the 'Microsoft.ApplicationBlocks.Data.dll' into my asp.net pages and i cant
find this dll anywhere on my hard disk. where am i supposed t find the dll &
load it ?

"Jason" wrote:
Renjith,
Check out the Microsoft Data Application Block for .NET.

http://www.gotdotnet.com/workspaces/...c-aaeb21d1f431

It allows you to write one line SQL calls like this:

Dim dsData As DataSet = SqlHelper.ExecuteDataset(ConnectString,
"StoredProcedure", param1, param2)

This eliminates a lot of repetitive SQL boiler plate code, and answers
your question.
Jason
Renjith Chembakarayil wrote:
ive this procedure which needs some 10+ inputs as parameters. if i go

by the
normal method of passing params to procedures in asp.net like
this(http://support.microsoft.com/kb/320916/EN-US/) it'll be really

long.
isnt there some shorter way to specify the parameters like when we do

EXEC in
Sql Query Analyser ? eg: EXEC CustomProcedure 1,'A%'

how can i do this?

thanx

--
Renjith Chembakarayil
- Is the world Round or Flat ? .. ive my doubts !


Nov 19 '05 #3
Renjith,
Personally, I use v3.1. But in any case, check your program files
folder for either

C:\Program Files\Microsoft Application Blocks for .NET
C:\Program Files\GotDotNet\

You'll want to Add a reference to the dll file(s) into your project,
then rebuild and it should work.

Jason

Nov 19 '05 #4

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

Similar topics

14
by: Ger | last post by:
Hi all. Atm i am writing special system to store and restore information. There were diffirent ideas how to do this, all have pluses and minuses. Finally we desided to write system, what is...
1
by: zlatko | last post by:
I use a stored procedure that is calling several other stored procedure which update or append values in several tables. All of them are stored procedures with input parameters by which they filter...
2
by: zlatko | last post by:
There is a form in an Access Project (.adp, Access front end with SQL Server) for entering data into a table for temporary storing. Then, by clicking a botton, several action stored procedures...
3
by: Zlatko | last post by:
A question concerning Access Project with SQL Server: I use a stored procedure that is calling several other stored procedure which update or append values in several tables. All of them are...
4
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update,...
1
by: Rob Meade | last post by:
Hi all, I thought I was being clever - no I'm doubting my abilities :o( My project reads in the content from an XML file, this is made up of a series of "courses", each "course" has a series...
3
by: Bonzol | last post by:
Thanx to the help of other memebers on this group i've gotten to where I am however, I seem unable to add the required paramater to my stored procedure my code Dim toreturn As...
1
by: Michel Esber | last post by:
Linux Db2 LUW V8 FP 15 I was readiong Serge´s SQL on Fire presentation (part 2), and there is a slide that shows how to mass delete data using procedures. Something like: loop: LOOP DELETE...
5
by: mnarewec | last post by:
Hi folks, I want to create a procedure where by it will take a sqlcommand, a string, and property. I want to use this procedure to add parameters to my sql command of type stored procedures since I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.