Viewing 15 posts - 466 through 480 (of 521 total)
Hello Katherine,
If you want do do a join, why not just set up a linked server?
December 6, 2007 at 2:46 pm
Hi neil,
could you please try to move the joins to where clauses as follows, I would be interested to see what the optimizer does with that:
SELECT[D1].[SID_0COMPANY] AS [SID_0COMPANY]
FROMmdp.[/BIC/FZFIGL_C02] [F]
,mdp.[/BIC/DZFIGL_C02T]...
December 6, 2007 at 2:33 pm
Hi Jeff,
thanks for this article.
A solution to this problem is to use procedural code (at least for SQL2K).
Probably not the intention of the author...:D
-- Declarations
DECLARE @tblResult TABLE (asset_id char(9),...
December 6, 2007 at 1:49 am
Hm, Visual Studio Team suit.
Must be from Versace 😀
November 29, 2007 at 7:45 am
You can use a full outer join like the following:
SELECT ISNULL(A.KeyCol, B.KeyCol)
,CASEWHEN ISNULL(A.NonKeyCol1,'') = ISNULL(B.NonKeyCol1,'')
THEN 'OK'
ELSE ISNULL(A.NonKeyCol1,' ')
END
,CASEWHEN ISNULL(A.NonKeyCol2,'') = ISNULL(B.NonKeyCol2,'')
THEN 'OK'
ELSE ISNULL(A.NonKeyCol2,' ')
END
FROMTableA A
FULL OUTER...
November 27, 2007 at 2:40 pm
One drawback of these kinds of solutions is their complexity. There is no easy way to customize the triggers for one or more tables.
I created a similar procedure a few...
November 26, 2007 at 2:55 pm
If (non-schemabound) views are the only problem, the following might help:
SELECT 'EXEC sp_refreshview ''' + schema_name(schema_id) + '.'+ name + '''' FROM sys.views
(you need to execute this statement and then...
November 26, 2007 at 2:43 pm
Sure I will:
I looked at the QoD, which had the following statement that overflows.
select datediff (ms,getdate()-28,getdate())
Now when I read such a QOD, I usually play around in some directions to...
November 23, 2007 at 4:34 am
Hi Andras,
thanks for your quick response.
Can you imagine why there would be a float conversion at all?
Thanks!
November 23, 2007 at 4:15 am
November 21, 2007 at 1:27 pm
Hi Steve,
I think you just invented the "community article" 🙂
My hope is that this will be one of those articles with a lot of discussion and ideas.
Here are a few...
November 20, 2007 at 1:02 am
Hello Gail,
you should be able to run the query I posted since it uses only system objects in MSDB.
There is no table I created myself.
Regarding the query you provided, it...
November 14, 2007 at 12:32 am
Hello Sergiy,
thanks for your response.
Do you have a web or book resource where I could find more of the information you gave me?
Especially the thing with ignoring the table alias...
November 13, 2007 at 2:55 pm
Hello Gail,
Did you try this query in SQL2K5?
Because when I run it from either QA or SSMS against a SQL2K5 machine, I get no errors.
(remember, this is an ad-hoc query...
November 13, 2007 at 5:22 am
Viewing 15 posts - 466 through 480 (of 521 total)