Viewing 15 posts - 61 through 75 (of 135 total)
Stewart "Arturius" Campbell (8/14/2012)
Have you tried:
UPDATE [dbo].[LocationCopy]
SET
LocationGeography = geography::Point(@Latitude, @Longitude, 4326)
WHERE LocationID = @ID
Thanks it worked
When i googled everyone using this method STGeomFromText
LocationGeography = geography::STGeomFromText('POINT(@Latitude @Longitude)', 4326)
What is...
August 14, 2012 at 2:37 am
anthony.green (8/14/2012)
Does the below work?
DECLARE @Latitude float = 8.4827
DECLARE @Longitude float = 76.9192
DECLARE @ID int = 1
UPDATE [dbo].[LocationCopy]
SET
LocationGeography = geography::STGeomFromText('POINT('@Longitude+' '+@Latitude+')', 4326)
WHERE LocationID = @ID
While wxecuting...
August 14, 2012 at 2:36 am
you should post proper ddl statement,sample data and expected results,so that it will be easy to unserstand and give u some solution
July 31, 2012 at 2:52 am
Thanks robert for the reply.
Can u suggest or may be some links to install sql server through windows applications
July 18, 2012 at 10:27 pm
For Xquery u should refer jacob sebastian blog
July 18, 2012 at 6:51 am
This is the image for searching 5 rooms with different adult,child,extrabed combination..i want to get from min adult and child combination to the maximum condition available.
If any room has adult...
July 18, 2012 at 3:33 am
Thanks kingston for the solution
Let me check with samples data
Thanks oncce again
July 17, 2012 at 6:23 am
For this set of data the results failed
I didn't set the rate for single room on O2/07/2012 but availability is there
so it shouldnot come to the result
And i set the...
July 17, 2012 at 5:54 am
All the querys are same except the insert statement for table value parameter...
i just created the search scenarios... for 3 rooms there will be 3 insert statement
for 2 rooms there...
July 12, 2012 at 9:54 pm
thanks Kingston for the solution
July 6, 2012 at 8:29 am
Her is the sample data
I am searching hotel room for the specified checkin and check out date.
If we r searchinhg for room between 2012-07-03 and 2012-07-06,
then it will bring those...
July 3, 2012 at 8:12 am
it will not always be(1,2,3)
July 3, 2012 at 6:25 am
Lynn Pettis (5/31/2012)
SELECT 1, '2012-06-01', 50
The data above is a future date and was not anticipated when I wrote the code provided. Here is an apportunity...
May 31, 2012 at 9:39 am
Hi Lynn
For the following set of values ..it generating error
INSERT INTO #ProductRate(ProductID,FromDate,Rate)
SELECT 1, '2012-05-01', 10
UNION ALL
SELECT 1, '2012-05-15', 20
UNION ALL
SELECT 1, '2012-05-23', 55
UNION ALL
SELECT 1, '2012-05-26', 55
UNION ALL
SELECT 1, '2012-05-28',...
May 31, 2012 at 7:43 am
Thank you very much Lynn Pettis.... it works really fine
Can u explain the CTE part..Taking 10 rows,100 rows
or may be some url
Thanks
May 30, 2012 at 11:47 pm
Viewing 15 posts - 61 through 75 (of 135 total)