Viewing 15 posts - 256 through 270 (of 373 total)
Thats great question. Thanks.
November 28, 2010 at 9:32 pm
We are not able to see the execution plan of encrypted stored procedure, if that is the case then there is the need of encryption keyword 🙂
If we use...
November 28, 2010 at 9:21 pm
GO [count] is nice command to execute the batch no of times. Today's QoTD (11/23/2010) is also refer GO [count] statement. 🙂
November 23, 2010 at 5:02 am
Brigadur (11/23/2010)
Hardy21 (11/23/2010)
DougieCow (11/23/2010)
Hardy21 (11/23/2010)
INSERT INTO #
SELECT 'ASDF'
GO 0
GO <ZERO> --- SQL doesn't throw any complilation error but when you execute the code, status bar should display: "Query completed...
November 23, 2010 at 4:26 am
DougieCow (11/23/2010)
Hardy21 (11/23/2010)
Try
INSERT INTO #
SELECT 'ASDF'
GO 0
GO <ZERO> --- SQL doesn't throw any complilation error but when you execute the code, status bar should display: "Query completed with errors".
Nope,...
November 23, 2010 at 4:07 am
Try
INSERT INTO #
SELECT 'ASDF'
GO 0
GO <ZERO> --- SQL doesn't throw any complilation error but when you execute the code, status bar should display: "Query completed with errors".
November 23, 2010 at 3:31 am
Good one point question.
Below query returns the required result:
select * from tempdb..sysobjects where name like '#testvm%'
November 22, 2010 at 2:29 am
Nice wording by Nakul.
I also say that rating yourself is not required or at least I am avoiding that. Due to SQL Server (or any nowadays any technology) is very...
November 16, 2010 at 11:25 pm
Very nice question though I got it wrong.
I was thinking because of only 3 bit column, it should take 1 byte only same as tinyint.
November 16, 2010 at 9:12 pm
Good introductory article about Indexed view.
We need to be very careful while creating indexed view due to schema dependency. Once you have a indexed view, you can not modify...
November 16, 2010 at 9:05 pm
RichardDouglas (11/15/2010)
Good question, thanks for taking the time to help educate the SQL community.I look at these DMV's a lot so thankfully answered this one correctly.
Good to know.
November 15, 2010 at 10:10 pm
Carlo Romagnano (11/15/2010)
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...
November 15, 2010 at 10:09 pm
Viewing 15 posts - 256 through 270 (of 373 total)