Forum Replies Created

Viewing 15 posts - 106 through 120 (of 489 total)

  • RE: Reduce size of BAK file after deleting database table records?

    Database backups are roughly the size of you data, not the size of you database files. This is assuming no compression. If the .BAK file is still getting bigger it's...

  • RE: Any huge gotchas with installing SQL 2012?

    I've done a bunch of 2012 installs now and never had any problems. SP1 is out and it's worth doing the service pack. Only bug with the SP installer is...

  • RE: move db files to another directory

    This only moves the logical location of the files. To actually get them to the new location you need to take the database off line in some way so you...

  • RE: Availibility Group Listener Name

    Try using this, it works on my demo environment.

    select dns_name from sys.availability_group_listeners GL

    join sys.availability_group_listener_ip_addresses LIP

    on GL.listener_id = LIP.listener_id

    join sys.dm_exec_connections C

    on LIP.ip_address = c.local_net_address

    where session_id = @@SPID

    Cheers

    Leo

  • RE: Insert slow in SQL 2012

    You'll need to supply a lot more information than this.

    Are there server differences, disk differences, have you compared execution plans,....

    Have you rebuilt indexes, updated stats?

    There are a host of things...

  • RE: Question on CDC enabled DB

    If a log file back up had marked all the records in the file as no longer needed then a delete will also work. I tend to do the shrink...

  • RE: Question on CDC enabled DB

    Provided the log file is empty you can delete it. Ensure you have regulare log backups, do a shrink file and empty it.

    DBCC SHRINKFILE (N'Scratch_log' , EMPTYFILE)

    Then you should be...

  • RE: Migrate 2010 database to 2012

    I've not had any issues like this, and I've used backup and restore multiple times. Recommended migration is typically backup and restore, or detach and attach, or in place upgrade....

  • RE: Does SSMS log the "Disable Trigger" command anywhere?

    Not directly it doesn't. The default trace will log the create or drop of the trigger and it will log an alter table if the trigger is disabled or enabled.

    The...

  • RE: FK Constraint causing Deadlock

    You could consider defining the foreign key with the ON DELETE CASCADE option. Then all you need to do is delete the parent record from Sidelite and all the child...

  • RE: SQL Agent Jobs showing NO history

    cheshirefox (8/24/2012)


    I set Max job history log size (in rows) to 3000 and Max job history rows per job to 1000.

    I will update the values again today to 4000 and...

  • RE: SQL Agent Jobs showing NO history

    What are the job history retention settings? Right click SQL Server Agent/Properties - History.

    The defaults are Maximum log size (in rows) 1000, Max history per job 100. If some jobs...

  • RE: Upgrade to 2012

    One issue I consider fairly serious is the gaps in the Identity sequences when you restart the SQL Server Service (failovers etc). For a standard identity (1,1) you can get...

  • RE: gaps after restarting SQL server 2012

    cciappa (6/29/2012)


    So if I had inserted 85 rows and the last insert populated my identity column with 85, after restart the next insert produces an identity of 10,085. Again,...

  • RE: gaps after restarting SQL server 2012

    GilaMonster (6/20/2012)


    jeff.mason (6/20/2012)


    If the value of the PK is vital, and gaps cannot be supported, I'd look at implementing one of 2012's new features -- a SEQUENCE.

    Sequences and...

Viewing 15 posts - 106 through 120 (of 489 total)