Forum Replies Created

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

  • RE: move db files to another directory

    Perry Whittle (12/5/2012)


    Stopping sql server is a bit like using a sledge hammer to crack a nut. You only need to take the database offline as follows

    ALTER DATABASE mydb SET...

  • RE: move db files to another directory

    I strongly recommend you take the database OFFLINE rather than detaching. Detaching as mentioned removes the database from the system catalog, which means some database options (saved in the system...

  • RE: Moving FIles

    If this is the log shipping destintion it's being recovered, and so you can't move it like this. To do the ALTER the database must be in a recovered state.

    Two...

  • 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...

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