Viewing 15 posts - 6,976 through 6,990 (of 7,597 total)
Lynn Pettis (12/24/2012)
ScottPletcher (12/24/2012)
If you're going to put...
December 25, 2012 at 1:38 pm
SSRS will automatically properly expand an "IN (@multi_valued_report_parameter)" if it's in an SSRS dataset and follows some basic rules. You may want to verify that you have a proper...
December 24, 2012 at 10:00 am
SELECT
CAST(DATEDIFF(SECOND, Start.WorkQueueStartWorkDate, Finish.WorkQueueEndWorkDate) / 3600 AS varchar(3)) +
RIGHT(CONVERT(char(8), Finish.WorkQueueEndWorkDate - Start.WorkQueueStartWorkDate, 8), 6)
from (
select CAST('20121216 20:57:01.293' AS...
December 24, 2012 at 9:57 am
Let's assume you can get all that information.
You have conflicting needs: you don't want to slow down the login process, but you also don't want to store full string descriptions...
December 24, 2012 at 9:36 am
You also need to verify that the log LUNs are RAID10 and the data LUNs are RAID5 (typically that is the best performance).
If you're going to put both tempdb mdf...
December 24, 2012 at 9:31 am
SQLSACT (12/19/2012)
Why does the 1st query return duplicates and the 2nd query doesn't?
... the 2nd query having a stream aggregate. Why is this being added?
Thanks
The first query does a JOIN;...
December 21, 2012 at 2:52 pm
Don't see anything magical to let you get rid of any of the lookup joins :-).
There typically won't be, so all you can do is tune the lookups as much...
December 21, 2012 at 2:11 pm
If you do need a prefix (and/or suffix), you can do this:
CREATE TABLE dbo.tablename (
prefix char(3) DEFAULT 'ABC',
ident int IDENTITY(1, 1) NOT...
December 21, 2012 at 1:34 pm
I would still like further info on the indexes. Please post the results of this query run from that db (a subset of what I use to analyze index...
December 21, 2012 at 1:23 pm
string_column LIKE '%''%'
or:
CHARINDEX('''', string_column) > 0
December 19, 2012 at 2:59 pm
Yes.
Typically a LEFT OUTER JOIN is used for that.
Say you're inserting names and want to avoid inserting one that's already in the table:
INSERT INTO dbo.names_table ( name )
SELECT wt.name
FROM dbo.work_table...
December 18, 2012 at 10:13 am
If you're 100% sure that no group_id will ever be more than one type, then that looks OK.
You probably want to consider using an IDENTITY column to automatically assign one...
December 18, 2012 at 10:10 am
Interesting too is that an empty string does not work for decimal values:
SELECT 1.1+''
But it again does work for dates:
SELECT CAST('' as datetime)
Ah the wonders of SQL -- "wonder why...
December 18, 2012 at 10:03 am
44 out of 48 is definitely too high. Keep in mind that the OS needs some RAM to manage the RAM itself.
Assuming no other software using significant RAM is...
December 18, 2012 at 10:00 am
PiMané (12/18/2012)
ScottPletcher (12/17/2012)
December 18, 2012 at 9:17 am
Viewing 15 posts - 6,976 through 6,990 (of 7,597 total)