Viewing 15 posts - 691 through 705 (of 819 total)
tommyh (12/2/2010)
December 2, 2010 at 1:22 am
I disagree: the query returns all rows that contains the word 'order' in the column [text] that may appear in comments or definition.
December 1, 2010 at 12:04 am
Carlo Romagnano (11/22/2010)
WayneS (11/22/2010)
IF OBJECT_ID('tempdb..#YourTempTable') IS NOT NULL
Note that in SQL Server thru...
November 22, 2010 at 7:54 am
WayneS (11/22/2010)
IF OBJECT_ID('tempdb..#YourTempTable') IS NOT NULL
Note that in SQL Server thru version 2008R2,...
November 22, 2010 at 7:53 am
vk-kirov
That's true!
I ran it on sql2000 sp4.
November 22, 2010 at 3:21 am
vk-kirov (11/22/2010)
Carlo Romagnano (11/22/2010)
If you used a query like this, you would see your table:
You will see ALL tables that begins with '#testvm', also, tables belonging...
November 22, 2010 at 2:05 am
Also this is wrong:
If you used a query like this, you would see your table:
You will see ALL tables that begins with '#testvm', also, tables belonging to other sessions.
November 22, 2010 at 1:06 am
Hugo Kornelis (11/17/2010)Without the reversal, the question would have been a solid test of whether people know about the dangers of using CASE in ORDER BY, and thus an excellent...
November 18, 2010 at 1:37 am
mister.magoo (11/16/2010)
To those who think it had unnecessary "tricks" in it, I did try several variants of this question and they all...
November 16, 2010 at 7:40 am
tommyh (11/16/2010)
Carlo Romagnano (11/16/2010)
Good question. I refreshed implicit cast.
In sql2000, it gives error also with SET @sortby='Date1'. (Syntax error converting datetime from character...
November 16, 2010 at 1:30 am
I should remember implicit cast using CASE clause.
Good question. I refreshed implicit cast.
In sql2000, it gives error also with SET @sortby='Date1'. (Syntax error converting datetime from character string.), not in...
November 16, 2010 at 1:07 am
Oleg Netchaev (11/15/2010)
Carlo Romagnano (11/14/2010)
In sql2005, I get an error:"plan_handle" is not a recognized table hints option.
Carlo,
Please check compat level of your SQL Server 2005 AdventureWorks database. If the level...
November 15, 2010 at 9:53 am
Execute the batch without the 'GO'
EXEC uspLogError
SELECT st.text QueryText,objtype
FROM sys.dm_exec_cached_plans
CROSS APPLY sys.dm_exec_sql_text(plan_handle) AS st
WHERE text LIKE N'%uspLogError%'
Result:
CREATE PROCEDURE [dbo].[uspLogError] ....,'Proc'
EXEC uspLogError SELECT st.text QueryText FROM...
November 15, 2010 at 2:02 am
Very bad worded question:
Query text during caching in SQL 2005
This is related to SQL Server caching. What should be the output of following T-SQL query:
USE AdventureWorks2008R2
GO
EXEC uspPrintError
GO
SELECT st.text QueryText
FROM sys.dm_exec_cached_plans...
November 14, 2010 at 3:57 pm
Jeff Kunkel-812485 (11/12/2010)
However, as I mostly support another vendors databases, I am seeing more developers move the business logic into the application code and out of stored procedures...
November 12, 2010 at 8:41 am
Viewing 15 posts - 691 through 705 (of 819 total)