Click here to Skip to main content
16,006,709 members
Home / Discussions / Database
   

Database

 
GeneralRe: GetDate() in Stored Procedure Pin
Michael Flanakin23-Jan-06 5:38
Michael Flanakin23-Jan-06 5:38 
GeneralRe: GetDate() in Stored Procedure Pin
Michael Flanakin23-Jan-06 5:54
Michael Flanakin23-Jan-06 5:54 
AnswerRe: GetDate() in Stored Procedure Pin
Qaiser Mehmood Mughal24-Jan-06 3:15
Qaiser Mehmood Mughal24-Jan-06 3:15 
Questionusing ado Pin
yamunasenthilvel23-Jan-06 4:58
yamunasenthilvel23-Jan-06 4:58 
AnswerRe: using ado Pin
S Douglas24-Jan-06 0:53
professionalS Douglas24-Jan-06 0:53 
Questionhelp with deletion and updation with the same code.. Pin
yamunasenthilvel23-Jan-06 2:06
yamunasenthilvel23-Jan-06 2:06 
Questionis it possible?? Pin
imsathy22-Jan-06 23:21
imsathy22-Jan-06 23:21 
AnswerRe: is it possible?? Pin
Colin Angus Mackay22-Jan-06 23:30
Colin Angus Mackay22-Jan-06 23:30 
imsathy wrote:
muliple option from a drop down


A drop down only permits one option to be selected at a time.


imsathy wrote:
to the stored procedure as string


string value = MyDropDownList.SelectedValue;
SqlCommand cmd = new SqlCommand(myConnection, "StoredProc");
cmd.CommandType = CommandType.StoredProcdure;
cmd.Parameters.Add("@paramName", value);
SqlDataReader reader = cmd.ExecuteReader(); // Assumes connection is open.



imsathy wrote:
then pass the values to the conditional clause of the procedure


For example:
CREATE PROCEDURE dbo.StoredProc
@paramName varchar(100)
AS
SELECT * FROM SomeTable
WHERE someColumn = @paramName
GO


Does this help?

ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

GeneralRe: is it possible?? Pin
imsathy22-Jan-06 23:43
imsathy22-Jan-06 23:43 
GeneralRe: is it possible?? Pin
Paul Conrad23-Jan-06 19:21
professionalPaul Conrad23-Jan-06 19:21 
GeneralRe: is it possible?? Pin
imsathy23-Jan-06 22:30
imsathy23-Jan-06 22:30 
GeneralRe: is it possible?? Pin
Paul Conrad24-Jan-06 3:29
professionalPaul Conrad24-Jan-06 3:29 
QuestionT-SQL Problem Pin
WDI22-Jan-06 21:35
WDI22-Jan-06 21:35 
AnswerRe: T-SQL Problem Pin
Colin Angus Mackay22-Jan-06 21:54
Colin Angus Mackay22-Jan-06 21:54 
GeneralRe: T-SQL Problem Pin
WDI22-Jan-06 21:58
WDI22-Jan-06 21:58 
GeneralRe: T-SQL Problem Pin
Colin Angus Mackay22-Jan-06 22:10
Colin Angus Mackay22-Jan-06 22:10 
QuestionSQLDMO for SQL Server 2000 Pin
usernamed22-Jan-06 13:29
usernamed22-Jan-06 13:29 
AnswerRe: SQLDMO for SQL Server 2000 Pin
Colin Angus Mackay22-Jan-06 20:25
Colin Angus Mackay22-Jan-06 20:25 
GeneralRe: SQLDMO for SQL Server 2000 Pin
usernamed22-Jan-06 23:38
usernamed22-Jan-06 23:38 
QuestionProblem with SQL statement Pin
Ahmed Al-Lakani22-Jan-06 11:45
Ahmed Al-Lakani22-Jan-06 11:45 
AnswerRe: Problem with SQL statement Pin
Colin Angus Mackay22-Jan-06 20:21
Colin Angus Mackay22-Jan-06 20:21 
GeneralRe: Problem with SQL statement Pin
Ahmed Al-Lakani23-Jan-06 2:49
Ahmed Al-Lakani23-Jan-06 2:49 
GeneralRe: Problem with SQL statement Pin
Colin Angus Mackay23-Jan-06 3:31
Colin Angus Mackay23-Jan-06 3:31 
GeneralRe: Problem with SQL statement Pin
Ahmed Al-Lakani23-Jan-06 5:21
Ahmed Al-Lakani23-Jan-06 5:21 
GeneralRe: Problem with SQL statement Pin
Colin Angus Mackay23-Jan-06 7:00
Colin Angus Mackay23-Jan-06 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.