Forum Replies Created

Viewing 15 posts - 2,716 through 2,730 (of 5,109 total)

  • RE: SQL Server 2012 orpaned database user and AD hierarchy

    As I said before, permissions are cumulative.

    If the Group NT\TestUsers has a User on another database, such as msdb, then NT\tuser will have those permissions; they are a...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SQL Server 2012 orpaned database user and AD hierarchy

    No, there is no SQL Login for NT\Thom.

    So, as a quick test, I logged into our Sandbox server and ran the following (some details obscured):
    CREATE LOGIN [NT\TestUsers]...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Nulls and the CASE statement

    hurricaneDBA - Wednesday, November 1, 2017 5:23 AM

    Dear Thom
    My apologies for the incomplete information and yes i tried using CTEs and it...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SQL Server 2012 orpaned database user and AD hierarchy

    AD and group permissions are cumulative; which is why this works.

    So, you have a User, which is part of the AD Group SQLUsers. That Group has permission to...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Nulls and the CASE statement

    OK, now I see your problem. Your initial post was misleading, as it made it seem that the name of the columns in your table were terminal and Direction; they...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Nulls and the CASE statement

    hurricaneDBA - Wednesday, November 1, 2017 4:51 AM

    The full query is

    SELECT distinct

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Nulls and the CASE statement

    hurricaneDBA - Wednesday, November 1, 2017 4:46 AM

    Yes i updated the query but the issue isnt there its with this

    Msg 207,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Nulls and the CASE statement

    hurricaneDBA - Wednesday, November 1, 2017 4:40 AM

    where Direction <>

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Nulls and the CASE statement

    Use a WHERE clause and filter to rows WHERE Direction IS NOT NULL.

    Also, if you don't want your CASE expression to return a NULL, use...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Msg 102, Niveau 15, État 1, Ligne 2 Syntaxe incorrecte vers 'order'.

    What is your question?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: How can this query be created?

    Ok, well I've created the DDL and DLM for you, but you should really do this yourself.

    Now, I've kind of guessed what you mean still, but I've assumed...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: How can this query be created?

    What do you mean by "value = search criteria I will give"? Could Could you be providing a varying different number of parameters to search for?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Rank a large table

    Aclustered index on the base tables is going to be a huge improvement. I'd suggest following Scott's advice.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Logon Failures

    I used to see these errors a lot with SQL Search from RedGate. If you have all the databases ticked, it would try to search the offline databases, generating the...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Rank a large table

    600M records is a LOT of records. Even if your disc speed (both read and write) is great, upi have loads of RAM, etc, it is going to take a...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 2,716 through 2,730 (of 5,109 total)