473,394 Members | 2,100 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,394 software developers and data experts.

ASp.net stored procedures parameters for search functions

I'm able to find info for using input parameters for stored procedures
to do inserts and update type SQL functions in asp.net (vb.net), but I
need to find something that will use input parameters with Select sql
statements to do search functions in an sql dbase and sql tables.
TIA
..NetSports

Nov 19 '05 #1
3 1285
".Net Sports" <ba********@cox.net> wrote in news:1115831196.772726.135070
@g44g2000cwa.googlegroups.com:
I
need to find something that will use input parameters with Select sql
statements to do search functions in an sql dbase and sql tables.


This all depends on how your stored procedure is written... and what you're
searching.

Also consider using Full Text Searching if you're doing alot of text
searches.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
Using input parameters in a select command is no different than using them
in a update, insert or delete command. Then only thing that changes is your
sql query.

CREATE PROCEDURE dbo.mySelectStoredProcedure
(
@parameter1 varchar(10)
}
AS
SELECT * FROM MyTable where MYFIELD = @parameter1;

Then you create your command object, assign the parameter and it's value,
then execute the command.

Is that what you were looking for or am I just not getting your question.
".Net Sports" <ba********@cox.net> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I'm able to find info for using input parameters for stored procedures
to do inserts and update type SQL functions in asp.net (vb.net), but I
need to find something that will use input parameters with Select sql
statements to do search functions in an sql dbase and sql tables.
TIA
.NetSports

Nov 19 '05 #3
Or, have the code generated for you:

http://www.eggheadcafe.com/articles/..._generator.asp

Here is some additional sample code:

http://www.eggheadcafe.com/articles/...s_property.asp

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net

".Net Sports" <ba********@cox.net> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I'm able to find info for using input parameters for stored procedures
to do inserts and update type SQL functions in asp.net (vb.net), but I
need to find something that will use input parameters with Select sql
statements to do search functions in an sql dbase and sql tables.
TIA
.NetSports

Nov 19 '05 #4

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

Similar topics

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...
5
by: Rob Wire | last post by:
For the code below, how could I add an item in the drop down lists for both company and location to be an "All" selection that would send to the stored proc. spRptAttachments a value of "%" so...
7
by: JIM.H. | last post by:
Hello, Is there any difference to between SLQ string in the code and call execute query and call a stored procedure and execute the query that way concerning speed, effectiveness, reliability,...
5
by: ric_deez | last post by:
Hi there, I would like to create a simple search form to allow users to search for a job number based on a number of parameters. I think I understand how to use parameteres associated with Stored...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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...

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.