Forum Replies Created

Viewing 15 posts - 241 through 255 (of 920 total)

  • RE: Summing up while creating table?

    Couldn't you also do something like:

    select cast([Full Name] as nvarchar(255)) as [Full Name],

    cast(sum([Total Activities]) as float) as [Total Activities]

    into [Test]

    from where_ever_the_data_is


    And then again, I might be wrong ...
    David Webb

  • RE: Bulk insert slower after upgrade in SQL2008 R2

    Do you really need that many indexes? I've seen scenarios where that was appropriate, but they were few and far between.


    And then again, I might be wrong ...
    David Webb

  • RE: Declare and Set (Batch output)

    What do you get when you run:

    Select User.UserName,User.UserID

    From User Join

    Acc On User.CID = Acc.ID;


    And then again, I might be wrong ...
    David Webb

  • RE: One skinny table or many wide tables?

    Check out the EAV stuff I mentioned before, or better yet, try and reproduce a complex current query with the one-table design and it may become obvious how quickly the...


    And then again, I might be wrong ...
    David Webb

  • RE: One skinny table or many wide tables?

    You might look up EAV (Entity-Attribute-Value) model. There are lots of good opinions and article about the complexities and pitfals of the paradigm. Tough to opimize, join complexity...


    And then again, I might be wrong ...
    David Webb

  • RE: Bulk insert slower after upgrade in SQL2008 R2

    22 minutes for 10,000 rows? You have another problem somewhere. That should be closer to 22 seconds for 10,000 rows.

    How big are the rows? Is there a...


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    I'd try to map to public, but it's up to you. I'd test it out myself, but I'm not in a place where I can do that now. That...


    And then again, I might be wrong ...
    David Webb

  • RE: index size for sql server 2008

    The real question would be, "do you really need an index on the notes column?". Do you search on this often? Do you search on it without some...


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    On the user mapping tab, map the user to the public role in the default database and try the login again.

    Sorry, hit 'enter' twice...


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    On the user mapping tab, map the user to the public role in the default database and try the login again.


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    OK, I'm stumped. Can you send screenshots of the login properties tabs for that login, including the roles display for the default database?


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    What tool are they using to connect? Is it going through an ODBC or other type of connection that might specify an incorrect database. What happens if they...


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    Might there be another group with this same set of users that is actually being used to log them in? I don't know how SQL Server figures out which...


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    Does the error log show the failed login? Does the group have at least 'public' role in master?


    And then again, I might be wrong ...
    David Webb

  • RE: default database for a login

    What's the actual error message that used Z is getting?


    And then again, I might be wrong ...
    David Webb

Viewing 15 posts - 241 through 255 (of 920 total)