Forum Replies Created

Viewing 15 posts - 5,446 through 5,460 (of 59,068 total)

  • Reply To: group parts by row count

    Your code fairs no better, Joe.  Try running it and see the error.

    Also, the columns in your CREATE TABLE statement don't match the columns in your SELECT statement.

    And, your code...

  • Reply To: Question on BCP

    If you avoid "batching", it can be done with "minimal logging", which also nearly doubles the performance.

  • Reply To: Count Null Records with Group BY

    The title of this thread threw me... I thought we were trying to count the NULLs in a given column... which is different than the original script, as well.

     

  • Reply To: group parts by row count

    Heh... you didn't try the code you posted.  It's missing commas and the VALUES are not correct.

    Be advised that the data you posted has nothing  other than partid and serial...

  • Reply To: Question on BCP

    I believe you'll find that and INSERT/SELECT from an OPENQUERY across a linked server will work with some pretty good performance.

  • Reply To: Count Null Records with Group BY

    Wouldn't it be easier just to take the difference between the count of a column that will never be NULL (like the PK column) and the column in question?

  • Reply To: Your Code Is Your Standards

    The typical reason why there are typically no standards, particularly when it concerns databases and the related code, is because of the "code first" mentality that I've seen at oh...

  • Reply To: how to checkf if SQL Server CPU/RAM has bottleneck

    892717952 wrote:

    how to checkf if SQL Server CPU/RAM has bottleneck? thanks!

    There are a ton of decent articles out there on this subject.  You really need to do a little "googlin'". ...

  • Reply To: SQL Server Agent issue

    Mr. Brian Gale wrote:

    Try changing the SQL Server Agent startup type to "automatic (delayed start)" to make it start after SQL Server.

    This is what fixed us a long time ago.  I just...

  • Reply To: Statistics Update Frequency

    Yeah... there's always something when it comes to stats.  Like you said, ascending date columns can be quite the rub, as well.  We have a whole lot of tables that...

  • Reply To: Tool Limits

    My original thought in response to this article is "It Depends on the 'tool' in the chair!" 😀

  • Reply To: Tool Limits

    pwhoyt wrote:

    As an infrastructure guy and former consultant, one universal truth that I've observed over the years is the tendency for useful tools that are controlled locally to be replaced...

  • Reply To: Copy tables from one db to another db

    Don't give the privs to the user.  Instead, write a stored procedure that uses EXECUTE AS OWNER and give the user privs to execute that stored procedure.

  • Reply To: Working in a Distributed Fashion

    In all seriousness, we've always worked in a "distributed fashion".  And, yeah, databases are necessarily a bit different simply because of their size and the fact that they contain sensitive...

  • Reply To: Database list and the last access date

    I just reran the code I posted on my production box and it's returning precisely (except I stripped the time off the "Last Accessed Date" output, which you can get...

Viewing 15 posts - 5,446 through 5,460 (of 59,068 total)