Forum Replies Created

Viewing 15 posts - 1 through 15 (of 37 total)

  • RE: WHERE vs. GROUP BY again

    My question is: just "may" [sometimes]? or "always [any data] do"?

  • RE: WHERE vs. GROUP BY again

    Fine!

    Are the folowing two SELECT statements equvalent (i.e. -- see my original question, -- "return exactly the same row set" no matter "what data is")?

    [font="Courier New"]SELECT xx FROM yy WHERE...

  • RE: WHERE vs. GROUP BY again

    Sorry...

  • RE: WHERE vs. GROUP BY again

    I need to optimize some non-SQL code that composes SQL statements dynamically. Some pieces of code look very much alike, but put the a priori non-aggregate condition either in HAVING...

  • RE: WHERE vs. GROUP BY again

    Consider the condition Count(something) > 2

    Richard, please heed my note about syntactically correct and aggregate functions.

  • RE: WHERE vs. GROUP BY again

    I wouldn't use "correct".

    Me neither, but in the next sentence you are using exactly wording of mine.

    And besides, could you please offer your Yes/No answer to my question I...

  • RE: WHERE vs. GROUP BY again

    Thank you, Koen. I parenthesized the quoted phrase because I deem it's an implication of "both statements are syntactically correct". Isn't it?

  • RE: What's wrong with my SMO C# tiny program?

    In my understsnding of the quoted code it means (shortly) the following:

  • Create (instantiate) a new Collection of Urm objects connsisting of one member
  • Assign this only member a specified db.Urn
  • Pass initialized...

  • RE: How does ORDER BY work?

    Fantastic! How could I not know I have been balancing so close to my maxim "Oh, this is for others, for me Unicode is about the same as ASCII; longer?...

  • RE: Limit Databases Visibility for a Group of Logins

    I suppose that any application (Mgmnt Studio included) takes databases list from sys.databases, and it is this place where unaccessible databases are expected to be excluded from.

    Well, db naming conflicts...

  • RE: Limit Databases Visibility for a Group of Logins

    Thanks, RBarryYoung.

    This had been my conclusion, and having been discontented with it I initiated this thread. I thought I was missing something. The requirement looks so natural, and I --...

  • RE: Limit Databases Visibility for a Group of Logins

    Let me rephrase my question.

    I am a system administrator and my login is "sa".

    sa login owns database [pacrat]

    What TSQL command(s) should sa execute in order to make a given database,...

  • RE: Limit Databases Visibility for a Group of Logins

    revoke view any database to public

    create login te0507 with password='111111'

    Now my login te0507 cannot see a single user database name (the two sytem databases apart).

    [font="Courier New"]

    select name from sys.databases

    name

    --------------------

    master

    tempdb

    (2 row(s)...

  • RE: Limit Databases Visibility for a Group of Logins

    >>By granting privileges the right way.

    Now I know I was wrong when I thought "by granting pivileges the wrong way."

  • RE: Limit Databases Visibility for a Group of Logins

    >>How are they seeing Databases that they do not have any access to?

    Easy, please see the attached image.

    My question is: "Is it possible and if yes, what needs to be...

  • Viewing 15 posts - 1 through 15 (of 37 total)