Forum Replies Created

Viewing 15 posts - 1,996 through 2,010 (of 3,348 total)

  • RE: Repairing with DBCC CHECKDB

    kapil190588 (10/6/2012)


    hi,

    Can anyone tell me How to check whether the database is in single user mode or multi user mode?

    SELECT user_access, user_access_desc

    FROM sys.databases

    WHERE name = 'YourDatabase';

  • RE: Transaction

    kapil190588 (10/5/2012)


    When I reun the query Select * from test. I got the 2 rows in result while in poll reuslt it mentioned that Query will return 0 rows.

    Worng...

  • RE: String Length

    kapil190588 (10/5/2012)


    hi,

    I am a newbie in filed of DBa. Can anyone plz explain me how the 41,80 coming while executing--

    DECLARE @nvarchar nvarchar(40)

    DECLARE @nchar nchar(40)

    SET @nvarchar = '7 chars'

    SET @nchar...

  • RE: SELECT

    kyliedude (10/5/2012)


    where did that lecture come from?

    It wasn't intended as a lecture. It was just me letting off steam after seeing too many messages (not only in this topic, many...

  • RE: SELECT

    kyliedude (10/5/2012)


    Give me my point!

    If points are that important for you, you can have one of mine. Heck, you can have all of mine. Last time I checked, the grocery...

  • RE: APPLY - 2

    carl.landry (10/2/2012)


    I just don't get what to do with this APPLY keyword.

    The query can be redone using a LEFT OUTER JOIN, which results in the same output and the same...

  • RE: SELECT

    I *knew* when I saw the answer options that there would be a possible source of confusion here.

    Yes, the insert into the second table will fail. But that insert is...

  • RE: A simple T-SQL statement to create a list of lookup values

    BowlOfCereal (9/28/2012)


    There's been a lot of discussion in this (oddly) revived thread today.

    The reason for the revival of the thread is that the article was prominently featured in the newsletter.

    According...

  • RE: A simple T-SQL statement to create a list of lookup values

    Knut Boehnert (9/28/2012)


    A general statement like this is more dangerous than the use of cursors. 😛

    Check out http://sqlblog.com/blogs/hugo_kornelis/archive/2007/11/21/curious-cursor-optimization-options.aspx. While specialised in its case it counteracts the above general statement and...

  • RE: Transactions

    A good question; thanks!

    However, I did find myself staring at the wording for a bit before answering - and hoping that my interpretation was the correct one. The term "failing"...

  • RE: Tracking Processes

    ronmoses (9/21/2012)


    Is sp_processdetails actually a thing?

    Nope!

  • RE: Tablesample

    iguillon (9/21/2012)


    With the drop in the last line, it returns nothing, does it?

    With the DROP coming after the SELECT, I don't see how it could affect what the SELECT returns?

  • RE: Tablesample

    BP-503183 (9/20/2012)


    Running the query on SQL 2008R2 10.50.2796, nothing is returned. Still trying to determine why.

    Run it lots of times. Then read the explanation, the...

  • RE: Tablesample

    Miles Neale (9/19/2012)


    Thus can you depend on it to be consistent? If in fact "The query will return zero or one row" how can it be consistent? And...

  • RE: GO Part 2

    lanre_makinde (9/19/2012)


    Sorry the explanation is wrong. Then the question is not properly framed. Questions should be aimed at eliciting understanding....

    Even if go is not a standard tsql,...

Viewing 15 posts - 1,996 through 2,010 (of 3,348 total)