Viewing 15 posts - 406 through 420 (of 2,007 total)
I take it that you've looked at the missing indexes suggested by the query optimiser?
/*
Missing Index Details from
The Query Processor estimates that implementing the following index could improve the...
November 30, 2012 at 2:37 am
Looks like Mark beat me to it, but here were my thoughts.
First, we need a row number in the sample data to guarantee row ordering (as mentioned before). For this,...
November 28, 2012 at 9:30 am
Have you no row number? Or time stamp? Really, to guarantee that the results are correct we need to be able to have some way of determining the row order....
November 28, 2012 at 9:05 am
--== SAMPLE DATA ==--
SELECT stockcode, order_count, qty_required, location, release
INTO #yourSampleData
FROM (VALUES(231756, 9, 12, 1, 'N'),(231756, 2, 2, 1, 'Y'),
...
November 28, 2012 at 9:01 am
OK, this is a skeleton and would need editing to include however many params that you want to go in there.
IF object_id('tempdb..Equal') IS NOT NULL
BEGIN
DROP FUNCTION...
November 28, 2012 at 8:35 am
_simon_ (11/28/2012)
November 28, 2012 at 7:54 am
If you could post some sample data and ddl scripts as per this article --> http://www.sqlservercentral.com/articles/Best+Practices/61537/%5B/url%5D, then I'm sure lots of people would be happy to help. Otherwise, we're just...
November 28, 2012 at 7:35 am
_simon_ (11/28/2012)
declare @t table (Id int, I1 int, I2 int, I3 int, I4 int, I5...
November 28, 2012 at 7:32 am
deba_20032004 (11/28/2012)
I am in great trouble, I have a table which contain two fields my table structure is
ColumnName DataType
ProductId...
November 28, 2012 at 7:20 am
Why do you need the temporary tables?
SELECT TOP 10
[OS WAIT STATS - WAIT TYPE] = a.wait_type,
[TASKS WAITING COUNT] = a.waiting_tasks_count,
[TIME WAITING (MS)] = a.wait_time_ms,
[MAX TIME WAITING (MS)] = a.max_wait_time_ms,...
November 26, 2012 at 9:47 am
leesider (11/26/2012)
I am going to need a cursor, I just don't know how to detect when a year or month datepart changes from date to date.
No cursor required.
Try this: -
SELECT...
November 26, 2012 at 9:04 am
freecoder (11/26/2012)
basically I am writing a stored procedure for a user to check if a certain clientcode does not hold a certain tidm.
A user can...
November 26, 2012 at 8:40 am
Another option, based on your description.
DECLARE @searchParam VARCHAR(9) = 'YYY';
SELECT CLIENTCODE
FROM (SELECT CLIENTCODE, CASE WHEN MAX(b.TIDM) IS NULL THEN 1 ELSE 0 END
FROM #holding...
November 26, 2012 at 8:19 am
Hello and welcome to SSC,
If you could knock up some sample data and DDL scripts, then your expected results based on the sample data provided that would be extremely useful...
November 21, 2012 at 1:47 am
Firstly, when you ask a question it is polite to provide readily consumable sample data like this: -
--==CONDITIONALLY DROP THE SAMPLE DATA TABLE==--
IF object_id('tempdb..#yourSampleData') IS NOT NULL
BEGIN
...
November 12, 2012 at 5:21 am
Viewing 15 posts - 406 through 420 (of 2,007 total)