Viewing 15 posts - 7,501 through 7,515 (of 10,144 total)
-- sample data
DROP TABLE #Sample
CREATE TABLE #Sample (PurchCode VARCHAR(3), Provcode VARCHAR(5), ArrivalDate DATE, ArrivalTime VARCHAR(5), DepartureTime VARCHAR(8))
INSERT INTO #Sample
(PurchCode, Provcode, ArrivalDate, ArrivalTime, DepartureTime)
SELECT '5A3', 'RD130', '01/02/2010', '18:13', '20:30:00' UNION ALL
SELECT...
August 17, 2010 at 8:07 am
richard.kirby (8/17/2010)
Hi ChrisI've attached some data and I will read through the suggested articles.
Thanks for such a rapid response.
Hi Richard
Thanks for providing the data, however, for anybody to be...
August 17, 2010 at 6:54 am
sgambale (8/17/2010)
August 17, 2010 at 6:33 am
ningaraju.n (8/13/2010)
Hi Chris,There are 7K records and has index on column AssessmentId and this is an single statement
Do you run the same statement many times with different @assessmentID?
How long does...
August 17, 2010 at 5:47 am
Hi Richard
Can you give us some sample data please? This will get you started, and there are also notes in the link in my sig.
Cheers-- Create some sample data
CREATE TABLE...
August 17, 2010 at 5:38 am
What is the maximum number of rows for any orderno?
August 17, 2010 at 4:00 am
-----------------------------------------------------------
-- The Customer table is at the top of the hierarchy of
-- objects Customer, CustPhone, CustEmail, AddrDetail, AddrHeader
-- so use Customer as the driving table i.e. first in the...
August 17, 2010 at 2:42 am
Ok, starting at the beginning, does this query return the same as your second query:
SELECT DISTINCT mh.LocationID
FROM tblManifest mh
-- the reference to l.Route in the WHERE clause turns...
August 16, 2010 at 5:57 am
dennisv (8/16/2010)
Trying the last example I get these:
Msg 207, Level 16, State 1, Line 4
Invalid column name 'LocationID'.
Msg 207, Level 16, State 1, Line 4
Invalid column name 'LocationID'.
Msg 207,...
August 16, 2010 at 3:41 am
Hi Dennis, thanks for posting the feedback.
I think there's room for performance improvement here. The second query can be rewritten slightly like this - reasons are in the code:
SELECT DISTINCT...
August 16, 2010 at 2:39 am
deepak.khandelwal (8/13/2010)
If you have got the solution/query. Please share.Thanks,
Deepak
Yep; if you take the ears off a rabbit, you got a draught excluder.
None of us here are psychic:-P
How about starting...
August 13, 2010 at 6:24 am
ningaraju.n (8/13/2010)
I am executing delete statement in production server and its taking more time . can any one please explain the reason
my delete statement looks like
: Delete from...
August 13, 2010 at 5:28 am
The reason I'm asking is this:
roelofsleroux (8/13/2010)
August 13, 2010 at 5:22 am
roelofsleroux (8/13/2010)
It a really big procedure...
Can you post the part of the procedure which utilises the function?
August 13, 2010 at 5:16 am
DROP TABLE #tb1
CREATE TABLE #tb1 (
[trade] [varchar](10) NULL,
[leg] [varchar](10) NULL, -----say it is my Unique key
[ccy] [varchar](10) NULL,
[idex] [varchar](10) NULL
)
INSERT INTO #tb1 (trade, leg, ccy, idex)
SELECT 'a1', 'b1', 'usd',...
August 13, 2010 at 5:12 am
Viewing 15 posts - 7,501 through 7,515 (of 10,144 total)