Viewing 15 posts - 4,861 through 4,875 (of 7,597 total)
ChrisM@Work (8/25/2015)
ScottPletcher (8/25/2015)
ChrisM@Work (8/25/2015)
ScottPletcher (8/25/2015)
ChrisM@Work (8/25/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
The inner select can be accelerated with this index:
CREATE INDEX ix_Helper ON [cts].[exception_Main]
(productArea, reportable, reportYear, reportMonth, queueID)
INCLUDE (volume, cost,...
August 25, 2015 at 9:49 am
ChrisM@Work (8/25/2015)
ScottPletcher (8/25/2015)
ChrisM@Work (8/25/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
The inner select can be accelerated with this index:
CREATE INDEX ix_Helper ON [cts].[exception_Main]
(productArea, reportable, reportYear, reportMonth, queueID)
INCLUDE (volume, cost, exceptionDateTime)
But with...
August 25, 2015 at 9:26 am
ChrisM@Work (8/25/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
The inner select can be accelerated with this index:
CREATE INDEX ix_Helper ON [cts].[exception_Main]
(productArea, reportable, reportYear, reportMonth, queueID)
INCLUDE (volume, cost, exceptionDateTime)
But with the best...
August 25, 2015 at 9:00 am
UPATE TblNAme
SET DOB = substring(DOB,5,4)+SUBSTRING(DOB,1,2)+SUBSTRING(DOB,3,2)
WHERE ISDATE([DOB]) != 1
and DOB is not null
and DOB <>''
August 24, 2015 at 3:28 pm
Iow, be sure to cast at least one of the values in the expression to (max):
select @t=cast('abc' as varchar(max)) + replicate('x', 2000) + char(10) +
'abc' + replicate('x', 2000)+ char(10)...
August 24, 2015 at 10:39 am
Jeff Moden (8/21/2015)
August 22, 2015 at 8:09 am
The key to best performance is the best clustering index.
For what's shown, the only potential change that's needed is for the credit_application table. Perhaps it should be clustered on...
August 21, 2015 at 1:24 pm
ChrisM@Work (8/21/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
The inner select can be accelerated with this index:
CREATE INDEX ix_Helper ON [cts].[exception_Main]
(productArea, reportable, reportYear, reportMonth, queueID)
INCLUDE (volume, cost, exceptionDateTime)
But with the best clustered index...
August 21, 2015 at 9:48 am
ChrisM@Work (8/21/2015)
The inner select can be accelerated with this index:
CREATE INDEX ix_Helper ON [cts].[exception_Main]
(productArea, reportable, reportYear, reportMonth, queueID)
INCLUDE (volume, cost, exceptionDateTime)
But with the best clustered index now on...
August 21, 2015 at 8:19 am
Interesting. Edit: The only reason that particular join should be slow is the large number of lookups, since the map_exception table only has a few hundred rows. End-Edit.
At any...
August 20, 2015 at 10:24 am
drew.allen (8/19/2015)
ScottPletcher (8/19/2015)
Be careful. The ? is replaced with a fully delimited schema and table, such as:
[dbo].[table1]
I didn't realize that was the case. In that case my query...
August 19, 2015 at 1:13 pm
Excellent point about the underscore, it definitely needs bracketed.
Be careful. The ? is replaced with a fully delimited schema and table, such as:
[dbo].[table1]
Thus, a comparison like:
IF ''?'' LIKE ''%[_]st''
can...
August 19, 2015 at 12:36 pm
CREATE TABLE #AccountNum_Custom_Handling (
AccountNum varchar(50) NOT NULL PRIMARY KEY,
action_to_take char(1) NOT NULL
CHECK(action_to_take IN ('D',...
August 19, 2015 at 11:00 am
You can use a PRINT to just print the command, then remove the print and the extra quotes when ready to run the commands.
SET QUOTED_IDENTIFIER OFF; --this is implied by...
August 19, 2015 at 10:34 am
SQL expert or not, I'd advise you to use a CREATE DATABASE ... FOR ATTACH command rather than using a gui. That way you have a record of exactly...
August 19, 2015 at 10:11 am
Viewing 15 posts - 4,861 through 4,875 (of 7,597 total)