Forum Replies Created

Viewing 15 posts - 226 through 240 (of 819 total)

  • RE: Create Procedure

    paul 25096 (11/4/2015)


    I think the reason "Options 1, 2 and 3" has more votes than "Option 2" is because of course you should also avoid statements that cause a syntax...

  • RE: Risks of NOLOCK, part 2

    Excellent!

  • RE: Risks of NOLOCK, part 1

    I get it wrong because I forgot this from BOL:

    READUNCOMMITTED and NOLOCK hints apply only to data locks. All queries, including those with READUNCOMMITTED and NOLOCK hints, acquire Sch-S (schema...

  • RE: To view or not to view, that is the question.

    Easy questions.

    Thanks!

    😀

    But, what happen?

    Correct answers: 29% (108)

  • RE: Differences Between Lower Compatibility Levels and Level 120

    Interesting question!

    Thanks.

  • RE: INTERSECT

    Toreador (10/13/2015)


    The correct answer is that an error is returned as the columns are defined as "Id" and referenced as "ID" 😉

    Toreador!

    Default collation is case insensitive.

    😀

  • RE: Filetable File Lengths

    Good!

    Next month I want to start using filetable.

    I'm really curious.

    😀

  • RE: Column aliases

    Ed Wagner (9/2/2015)


    Stewart "Arturius" Campbell (9/2/2015)


    Methinks thisis going to turn into an interesting discussion.

    Thanks fot the question, Steve

    I'm thinking that your thinking is right. 😉

    I wonder if this counts as...

  • RE: Column aliases

    "String literals as column aliases" are a deprecated feature!

  • RE: Column aliases

    Louis Hillebrand (9/2/2015)


    3 or 9 depends how you define different...

    column AS alias

    column AS 'alias'

    column AS [alias]

    column alias

    column 'alias'

    column [alias]

    alias = column

    'alias' = column

    [alias] = column

    And I didn't use double quotes.

    I...

  • RE: Column aliases

    The right answer

    SELECT mynum AS test

    FROM dbo.myTable AS mt;

    SELECT test = mynum

    FROM dbo.myTable AS mt;

    SELECT 'test' = mynum

    FROM dbo.myTable AS mt;

    SELECT mynum test

    FROM dbo.myTable AS...

  • RE: Mount Points

    david.gugg (9/1/2015)


    I guess I don't know what a mount point is well enough, but can't you get that information by looking at the file name and path in sys.master_files?

    That's a...

  • RE: Mount Points

    To get it for each db and files:

    declare @sql nvarchar(max) = 'select 0 as dbid,0 as fileid WHERE 0=1'

    SELECT @sql = @sql + '

    UNION ALL SELECT '''+RIGHT(database_id,10)+''',fileid FROM '+name+'.sys.sysfiles'

    FROM...

  • RE: Best design for OLTP tables

    Very interesting!

    Thanks!

    😀

    But in the real world, if Id is uniqueidentifier, how many splits of page will occur?

Viewing 15 posts - 226 through 240 (of 819 total)