Viewing 15 posts - 286 through 300 (of 582 total)
Absolutely right, If your system has (genuine) duplicates in, then the system is broken.
Guessing based on the schema, I'd say you need a unique constraint on date,employee. You also need...
June 17, 2006 at 7:14 pm
If you do need to make sure the two text columns come from the same row, you'll need to do something like:
June 13, 2006 at 5:03 pm
post execution plans for the simplest version of the two queries.
June 10, 2006 at 9:23 am
Yes, you want a big flat denormalised recordset for Crystal - unless you want to use subreports, but they are a pain, though good if you need to cause side-eefects...
June 10, 2006 at 8:05 am
That's to find the stored procs that access a given table. I expect the results would contain a lot of duplicates. Note also that sysdepends is not reliable for sps....
June 10, 2006 at 8:02 am
select @ProductName pn, @UnitPrice up union all
June 9, 2006 at 1:03 pm
alter authorisation on schema <schname> to <newuser>
June 9, 2006 at 4:09 am
if @ProductName is not null insert Products(ProductName,UnitPrice) VALUES (@ProductName, @UnitPrice)
June 9, 2006 at 2:03 am
INNER JOIN #ActiveAccounts A ON L.AccountID = A.AccountID
WHERE A.Id between @N and @N + @Range - 1
June 8, 2006 at 4:28 pm
So is this cumulative YTD - type data?
if so, I would
- get the relevant Fiscal year start ('@FYS')
-get the end date for the calculation, truncate time portion, add...
June 8, 2006 at 1:06 pm
You could poll sysprocesses every so often, but the only way of getting a 'push' from those events is with a trace, I think. But for a snapshot, it would...
June 8, 2006 at 12:41 pm
could you script out the PRIMARY KEY constraint and post the DDL? I have an idea... and you definitely ran DBCC with NORESEED first, before RESEED?
June 8, 2006 at 12:35 pm
If you have a query to test, make it into a view, or if necessary a stored proc. The code can be amended to cover sps, but sysdepends is not...
June 8, 2006 at 12:24 pm
Have you changed the stored proc to actually return a value? (If so, is it set up to be responsive to all errors?) - ah reading your last post again,...
June 8, 2006 at 12:06 pm
Come on 'Jules', you remember this - it's the sysusers/syslogins SID disparity in SQL8. Listen to Sean.
June 8, 2006 at 11:55 am
Viewing 15 posts - 286 through 300 (of 582 total)