Viewing 15 posts - 6,001 through 6,015 (of 8,731 total)
Could this be part of the problem? There's a huge difference between estimated and actual number of rows.
August 13, 2014 at 9:50 am
Can you post table, index and views definitions?
My guess is that your problem is with dbo.AGGR_DAY_SUBSCRIPTION_ADDITIVE_METRICS_V. But can't be sure.
I agree with Gail, no one will look at a report...
August 13, 2014 at 8:56 am
This is another option that might perform better considering that it reads the table once instead of twice. I can't assure that but it could be worth the try.
SELECT ISNULL(CAST...
August 13, 2014 at 8:32 am
There might be a problem with your data and you might have duplicate ids on either of your tables. A quick solution could be the following but it might not...
August 12, 2014 at 11:54 am
You're comparing strings (LEFT result) with integers. Due to implicit conversion, the strings are being converted to integers and generating an error. Just add some quotes to convert your integers...
August 12, 2014 at 11:44 am
Ed Wagner (8/12/2014)
This behavior is a lot more like Oracle (of old, anyway) than SQL Server. Thanks for the question.
Except that Oracle will auto commit a transaction with any...
August 12, 2014 at 9:03 am
Or maybe you could filter the columns with a condition. I'm not sure if it'll be better.
SELECT column1,
column2,
column3,
...,
...
August 12, 2014 at 8:31 am
This might not be the correct version (I'm not sure if there's one for 2014) but it can help you out.
http://www.amazon.com/Microsoft-Server-Fundamentals-Developer-Reference/dp/0735658145
You could also read some of the stairways in this...
August 12, 2014 at 8:28 am
This seems horrible because of the triangular join that it includes, but it might get you what you need without dynamic sql. Why are you duplicating the rows? Would an...
August 11, 2014 at 4:06 pm
Using a CTE is basically the same but in different order. I prefer this approach but it's just personal preference.
ALTER VIEW [dbo].[crvKCLPRInsJob]
AS
WITH CTE AS(
SELECT
...
August 11, 2014 at 3:55 pm
Hi Rodrigo,
Craig has a point and we might need more information. The following query works with the sample data but might not be exactly what you need.
SELECT *
FROM #item
ORDER BY...
August 7, 2014 at 4:41 pm
Or you can use Import/Export wizard (or SSIS) to transfer the data in batches.
August 7, 2014 at 11:53 am
Beatrix Kiddo (8/7/2014)
Or worse "It's Password, with a capital P".
That isn't policy compliant, it needs to be P4$$w0rd as shown on MS courses.
August 7, 2014 at 9:13 am
Using some guesses, this might help you to read the table just once and do the pivot at once.
SELECT T0.ItemCode AS 'Item Code'
,T0.ItemName AS 'Item Name'
...
August 7, 2014 at 9:08 am
Readers don't block readers. Readers can block writers and the other way around. Even on that case, it would depend on the locks acquired based on the queries and the...
August 7, 2014 at 8:31 am
Viewing 15 posts - 6,001 through 6,015 (of 8,731 total)