Viewing 15 posts - 706 through 720 (of 825 total)
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
I prefer multiple triggers. But, it's easier to fall in recursive triggers.
November 12, 2010 at 12:47 am
To get values from other tables or columns of the same table but different row, you should use a function:
CREATE TABLE [dbo].[a2]
(
[a1ID] [int] NULL,
[col3] AS (a1ID^2)
)
GO
create function get_a2_col3(@a1id int)
returns int
as
begin
...
November 10, 2010 at 1:06 am
Maybe an attempt to introduce trinary logic? Or should the third option have been NULL? 😉
Please, do not start a discussion about NULLs. 😀
November 9, 2010 at 2:03 am
Hugo Kornelis (11/9/2010)
I was wondering about the inclusion of the "none of the above" option. Was this just a joke from the question author, or will people actually...
November 9, 2010 at 1:33 am
Don't forget Mayan calendar! Some two years to go, and ...
😀
I agree! :-D:-D:-D
November 9, 2010 at 1:29 am
So when the conversion into floats and then taking ceiling of the values, these 2 records generate the same values.
I disagree with explanation, it's enough to convert to INT
Select...
November 5, 2010 at 3:47 am
Hello, terrance
May you explain this syntax?
I think it is very dangerous to transfer search condition in the WHERE clause,
because you can alter result of "LEFT JOIN" that becomes a pure...
November 1, 2010 at 4:17 am
I think the question author tried to confuse us with the syntax for compound operators
I think the question author CONFUSED himself with the syntax for compound operators, as you...
October 29, 2010 at 2:57 am
So it seems that the explanation of the question is wrong, as it states that the pre-increment operator is not used in SQL Server. SQL Server uses however a compound...
October 29, 2010 at 1:13 am
Viewing 15 posts - 706 through 720 (of 825 total)