Forum Replies Created

Viewing 15 posts - 16 through 30 (of 441 total)

  • RE: Aggregates in T-SQL

    Good question indeed. I should have spotted that the aggregates will fail due to untyped NULL. If the null value in the last statement were typed, it would work just...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: SET Options - 2

    Wrong answer marked as correct. SQL Server will return the following error message:

    Msg 102, Level 15, State 1, Line 5

    Incorrect syntax near ';'.

    Semicolon is not allowed after go.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Queries

    Well, this question definitely has more than one correct answer. If you look at the actual execution plan, the correct answer is 0.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: RAID and Its impact on your SQL performance

    Raid 1+0 and 0+1 isn't even identical in performance, 1+0 performs better when the array is degraded.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: RAID and Its impact on your SQL performance

    It appears that this article has been changed (or at least republished). Perry Whittle's comment should have been taken into consideration, the difference between RAID 1+0 and 0+1 is indeed...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Stored procedure that takes backup of your procedures on physical drive

    I think this modification does the trick:

    exec(@dbName + replace(@tempSQL,'''',''''''))



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Noise

    kapil190588 (10/15/2012)


    As sql server version was not specified so I selected NoiseList but got wrong...

    I think version should be mentioned in question..

    learn new thing today.......

    If it were different in two...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Determine filepath from open SQL script

    Place the mouse pointer of the the file's tab.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Tablesample

    ramkaay (9/20/2012)


    The whole query will not fetch any rows.

    Because the table is dropped at the end.

    The query will return rows anyway, otherwise temporary objects would not have worked very...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Tablesample

    sknox (9/19/2012)


    Another QotD which does not test what it purports to test.

    Even if you know TABLESAMPLE inside and out, you cannot expect to get this question correct without knowing...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Tablesample

    Hugo Kornelis (9/19/2012)


    However, the official correct answer is still a bit questionable. (...)

    Just to make a short comment. I do not completely disagree with you. It is documented that the...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Tablesample

    Evgeny Garaev (9/18/2012)


    Percentage is very low for that sample data, it will likely never return any row. Change the query like that to be fair:

    create table #Test (ID int primary...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Backups

    In most scenarios, I would say that both should fail as SQL Server does/should not have access to create files on the system drive, but that is a different scenario...



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: GO Part 2

    Another reference: The -c parameter of sqlcmd.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

  • RE: Inserts

    Good question, as others I overlooked the zero and hence got it wrong.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

Viewing 15 posts - 16 through 30 (of 441 total)