Viewing 15 posts - 4,921 through 4,935 (of 10,144 total)
Krishna1 (4/4/2013)
I am running a process (updation/deletion/insert) of 2 million records. After some time this process makes my system very slow.
How do i find out whats the issue.
In...
April 5, 2013 at 1:21 am
Arjun Sivadasan (4/4/2013)
CTE referenced in a subquery does not yield any result....
April 5, 2013 at 1:07 am
TheSQLGuru (4/3/2013)
refactor your TVF to be an INLINE TVF.
I think it is an iTVF
Also push that SELECT ...(SELECT...) out like previous poster did.
I don't think that matters much,...
April 3, 2013 at 9:15 am
the sqlist (4/3/2013)
vliet (4/3/2013)
April 3, 2013 at 9:09 am
Jim Sebastiano (4/3/2013)
If you're excited about the MERGE statement (aren't we all?), you'll probabaly also be excited by row constructor
I think Dwain knows a thing or two about table constructors...
April 3, 2013 at 8:58 am
Can you post the actual execution plan for this please, as a .sqlplan attachment:
SELECT TOP 250000
[z13031322175522447287ca90] = x1.wo_ref,
[z13031322175522447289ca90] = SUM(x.approved_ts_amount)
FROM dbo.wo x1
INNER JOIN dbo.wocc x3
ON x1.wo_id...
April 3, 2013 at 8:46 am
Does it meet the requirements for Step 1? The accumulation would be Step 2.
April 3, 2013 at 8:26 am
Anytime, thanks for the feedback.
April 3, 2013 at 8:19 am
Lynn Pettis (4/3/2013)
I'm curious, how do most of you like your dihydrogen monoxide, straight or flavored?
I don't drink water, fish frolic in it.
April 3, 2013 at 8:18 am
The joins are all messed up. It runs forever because it's generating a partial cartesian product. Try this instead:
SELECT
u.Useraccount_First_Name,
u.Useraccount_Last_Name,
x.*
FROM Application_Useraccounts u -- "driving" table is now correct
CROSS APPLY...
April 3, 2013 at 7:55 am
Does the SELECT without the INSERT output the correct result set?
April 3, 2013 at 7:42 am
Use MERGE with an output clause. Dwain Camps has an excellent article on the front page today which describes a potential pratfall issue with MERGE. It's perfectly adequate to get...
April 3, 2013 at 7:40 am
Use the LIKE operator:
SELECT *
FROM Table1 t1
INNER JOIN Table2 t2
ON t2.Region LIKE '*'+t1.Region+'*%'
April 3, 2013 at 6:50 am
SELECT *
FROM Table1 t1
INNER JOIN Table2 t2
ON t2.Region = '*'+t1.Region+'*'
April 3, 2013 at 6:27 am
T.Ashish (4/2/2013)
Chris,I have attached sample data for both the tables.
Thanks, it's so much easier when you have sample data to play with.
As Kevin pointed...
April 3, 2013 at 4:37 am
Viewing 15 posts - 4,921 through 4,935 (of 10,144 total)