Forum Replies Created

Viewing 15 posts - 256 through 270 (of 373 total)

  • RE: Can the Secondary files in a database be taken offline?

    Thats great question. Thanks.

  • RE: True or False

    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...

  • RE: True or False

    Really Nice question.

  • RE: temp table in sysobjects

    GO [count] is nice command to execute the batch no of times. Today's QoTD (11/23/2010) is also refer GO [count] statement. 🙂

  • RE: T-SQL GO statement

    Brigadur (11/23/2010)


    Hardy21 (11/23/2010)


    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...

  • RE: T-SQL GO statement

    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,...

  • RE: T-SQL GO statement

    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".

  • RE: Column Order in an Index

    Nice post 🙂

  • RE: T-SQL GO statement

    Nice command. Thanks

  • RE: temp table in sysobjects

    Good one point question.

    Below query returns the required result:

    select * from tempdb..sysobjects where name like '#testvm%'

  • RE: Are You a Ten?

    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...

  • RE: Data Typing Quandry

    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.

  • RE: Indexed Views

    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...

  • RE: Query text during caching in SQL 2005

    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.

  • RE: Query text during caching in SQL 2005

    Carlo Romagnano (11/15/2010)


    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...

Viewing 15 posts - 256 through 270 (of 373 total)