Viewing 15 posts - 91 through 105 (of 119 total)
I decided to re-write the code
and I am doing a simple query now:-
CREATE PROCEDURE [dbo].[stpEventsSearchResultNew]
@searchstring varchar(100),
@dtFrom datetime,
@dtTo datetime,
@searchtype int
AS
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[debug_SP_table]') and OBJECTPROPERTY(id,...
November 28, 2005 at 8:02 pm
oh
it created the table and returned two rows now
DateFrom 1/1/2000
DateTo 1/1/2099
November 28, 2005 at 7:15 pm
I know what u are trying to tell me
but that @searchtype is set to 0 when the user does not click on the...
November 28, 2005 at 6:26 pm
but in the stored proc I have the following:-
If @searchtype = 0
BEGIN
Select * from pod_Events WHERE e_title LIKE @searchstring or e_description LIKE @searchstring
END
else
BEGIN
I mean this stored proc was working...
November 28, 2005 at 6:00 pm
ok this is the SQL statement
exec stpEventsSearchResult @searchstring = '%%', @dtFrom = 'Jan 1 2000 12:00AM', @dtTo = 'Jan 1 2099 12:00AM', @searchtype = -1, @region = 0,...
November 28, 2005 at 5:50 pm
no table created
Sorry did not understand what catch SP call with Profiler, i am a newbie on sql server
November 28, 2005 at 5:37 pm
Ok i executed that code.
I assume its supposed to be with my tables right?
Cause there is nothing there
November 28, 2005 at 5:12 pm
Sorry but where do I put this code?
I tried to put it after my stored proc but gave me an error
'@dtFrom not declared
November 28, 2005 at 5:01 pm
I am doing this:-
Dim myToDate As DateTime = Convert.ToDateTime(txtDateTo.Text)
and passing myToDate.
I noticed that It was still passing the argument as text so I changed it to Date ie:-
ByVal dtFrom...
November 28, 2005 at 4:41 pm
I do not know what is exactly wrong.
The problem is that since i arranged the dates to datetime, its not working. So I am assuming that its the problem.
I...
November 28, 2005 at 4:12 pm
Thanks I solved it like this:-
conn =
New SqlConnection
conn.ConnectionString = ConnectionString
' return the players pk_player
cmd =
New SqlCommand
cmd.CommandType = CommandType.StoredProcedure
cmd.Connection...
November 9, 2005 at 4:57 pm
Thanks Frank,
I will look into them after I finish my MCSD exams
January 11, 2005 at 3:24 pm
Hi Remi, thanks, it worked like this:-
SET @strSQL = @strSQL + ' WHERE im_id LIKE ''%'+@inputSearchText+'%''
OR im_name LIKE ''%'+@inputSearchText+'%''
OR im_desc LIKE ''%'+@inputSearchText+'%'''
Thanks for your help
January 8, 2005 at 3:03 am
Viewing 15 posts - 91 through 105 (of 119 total)