Viewing 15 posts - 1 through 15 (of 17 total)
ok if I have the result of 3 temp tables like this:
-------------------------------------------
Table #hpRating:
-------------------------------------------
FoodItemId Name ...
November 3, 2012 at 5:48 am
sorry for not giving that variable. it can be any RestoId from MenuFoodItems table:
DECLARE @RestoId int
SET @RestoId=1;
and the result will be used in the link: http://yummyrepublic.com/test/restaurant.php?rId=6
and the image for this...
November 2, 2012 at 11:58 pm
I have used dynamic SQL query.... because there is written that there is no fear of Sql injection because Query is still using parameters. Fot this time i have implemented...
October 17, 2012 at 11:32 pm
@j-2 Livingston thanks for the reply.
there are multiple solutions in the link you provided. still thinking which one is best.
Regards,
Hem Singh
October 16, 2012 at 11:46 pm
nice Brandie. I have checked yr site... interested journey...
January 19, 2012 at 11:13 pm
Ninja's_RGR'us (1/14/2012)
January 14, 2012 at 6:55 am
Ninja's_RGR'us (1/13/2012)
January 14, 2012 at 4:43 am
Hi friends,
as I said my query is working fine for single value but when localityIds are coming in comma separated 2 values e.g. '2,3' the error is 'unable to convert...
January 13, 2012 at 11:32 pm
giving error for @vals which are int type:
unable to cast nvarchar to int.... very confusing....
i have converted from int to nvarchar then other error. :
.....
@CityId int,
@LocalityId nvarchar(50),
@PriceFrom money,
@PriceTo money,
January 13, 2012 at 6:55 am
Brandie Tarvin (1/13/2012)
I refer you back to my last response.Use IN instead of = on the stored procedure and concatenate the values together......
Hi Brandie Tarvin,
I am trying yr suggestion.....
January 13, 2012 at 6:19 am
Hi,
Thanks for the reply. currently i m using the below query(in short here):
ALTER PROCEDURE [dbo].[Property_Search]
@CityId int,
@PriceFrom money,
@PriceTo money,
@bedrooms nvarchar(20)
AS
BEGIN
SELECT
,[State]
,[City]
,Locality
FROM cj_ListProperty...
January 13, 2012 at 5:27 am
thanks ghanshyam .. i did it another way I will try your one later and will let u know. thanks to all.
September 23, 2011 at 7:01 am
ghanshyam.kundu (9/23/2011)
I think your date format is wrong@searchstring should be in 'yyyy-mm-dd' format or you can convert it to datetime
convert(@searchstring as datetime)
I have already tried convert and cast; and...
September 23, 2011 at 1:02 am
hi,
I am getting error when my search string is a date. the SP i am using is:
ALTER PROCEDURE cj_Customers_Search
@SearchText varchar(250),
--@SearchDate DateTime,
@FieldName varchar(100)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @selectResult nvarchar(max);
DECLARE @SearchDate DateTime
IF @FieldName =...
September 23, 2011 at 12:06 am
my search string is coming in string format from dateTimePicker of winform and i am trying like this:
WHERE '+@FieldName + ' = ' + CAST(@SearchText AS datetime);
-- I have also...
September 22, 2011 at 7:20 am
Viewing 15 posts - 1 through 15 (of 17 total)