Viewing 7 posts - 1 through 7 (of 7 total)
Good stuff.. but please check the data is consistent with what you expect.. cheers jd..
November 6, 2007 at 9:03 am
You could try something like this:
INSERT CruiseOffersTmp
(
voyageNumber,
departureAirport,
duration,
departureDate,
availability,
cabinGrade,
cruiselineID,
cruiseshipID,
bestPrice,
brochurePrice,
uploadEntryDate,
flyCruise
)
SELECT
pt.Cruise_Number,
pt.Embark_Date,
pt.Air_City,
pt.Air_Indicator,
pt.category,
am.cruiseLineId,
pt.Category_Status,
pt.Best_Price,
pt.Brochure_Price,
pt.Duration,
cgv.ship_code,
cgv.brand...
November 6, 2007 at 7:32 am
I dont like it much but you could try something like this :
create procedure spRPT_INV_StockMovement
@branch_id uniqueidentifier,
@from_date datetime,
@to_date datetime,
@column_name nvarchar(255),
@filter_value nvarchar(255)
as
begin
select t.* from
MyTable t
where
t.branch_id = @branch_id
and
t._from_date >= @from_date
and
t.to_date <=...
November 6, 2007 at 6:47 am
I have seen situations where query hints were vital. see http://research.microsoft.com/research/pubs/view.aspx?msr_tr_id=MSR-TR-2005-123 it relates to indexing heavenly bodies and uses a TVF as a kind of spatial filter. Without...
November 6, 2007 at 6:19 am
Hi Chris, thanks for the reply.. I really thought there would be an elegant solution!! never mind I have got around it (after a fashion) using sp_executesql
step 1 create a...
March 14, 2006 at 8:13 am
Horses for courses... SQL will still be the language for manipulating sets but CLR opens up a whole load of opportunities to those who want to get involved.. I am...
January 13, 2006 at 3:56 am
A common solution to this problem is to have a view the contains GetDate() and query the view in your function...
HTH jd
November 17, 2005 at 4:02 am
Viewing 7 posts - 1 through 7 (of 7 total)