Forum Replies Created

Viewing 15 posts - 16 through 30 (of 1,064 total)

  • RE: Help with Reseed of a table

    You are executing the last 2 statements regardless of how many rows exist in the table. I assume this is the logic you really meant...

    if (select count(0) from CGL)...

  • RE: Stored procedure running much longer than its statements

    So if the count on its own runs quickly, does this construct work...

    select @CT = count(.....

    if @CT > 0 do stuff

  • RE: Database in full recovery?

    If the system "is not written to work with transactions", then you run the risk of having a transactionally inconsistent database any time the machine or SQL Server or the...

  • RE: Huge OLTP database

    Have you tried tweaking the Replication Agent Profiles? Specifically, the CommitBatchSize and CommitBatchThreshold values.

    The default values for these can group a lot of publisher transactions and...

  • RE: Performance on server and pc

    When selecting from the server, where are you running the command?

    If you are running the select from your PC, then it's going to take some time to transfer...

  • RE: Rogue Software Changes

    Maybe not quite as bad as the VW situation, but Peugeot were caught a few years ago manipulating the odometer on vehicles. Every so often, it would add a...

  • RE: SQLCMD BATCH FILE ERROR

    All you're doing is running sp_start_job, which is presumably successful, and therefore you don't get an error.

    It doesn't then hang around for the job to complete, so if it fails,...

  • RE: Need help on Update

    Assuming group_chart_code_1 is an integer, this should work

    Update test_Chart_Code SET group_chart_code_1 = group_chart_code_1 / 100 * 100

  • RE: dynamic sql help

    Although it doesn't actually list the differences, if you use the -f switch in Tablediff, it will produce the SQL to fix the differences for you.

  • RE: NULL and empty string question...

    Luis Cazares (10/30/2015)


    [And that's exactly as I understand it. In my opinion, nulls and empty strings shouldn't be interchangeable.]

    OK, I can relax again... I was beginning to think you were...

  • RE: NULL and empty string question...

    I believe that most theorists would prefer blank spaces instead of null values.

    Really? I understand the grief nulls can cause, but without them how do you know something...

  • RE: Identifying potential duplicate records in a given table

    One possibility is to cross join the table to itself (you may want to tone that down a bit if the table is large) and give the matching columns a...

  • RE: Differential Back up taking too Much Time

    vedau (9/27/2015)


    Doing an index maintenance right after the FULL could reduce the size of the Diff backup.

    What makes you think that would reduce the size of the Diff?

    It's likely...

  • RE: Differential Back up taking too Much Time

    Why are you running a differential backup every 3 hours? Don't forget, a differential backup backs up every page that has changed since the last full backup, so will...

  • RE: SQL 2008 Cluster Installation - SPN Issue

    Does the service account you are starting SQL Server with have the "Write Public Information" privilege in Active Directory?

Viewing 15 posts - 16 through 30 (of 1,064 total)