Forum Replies Created

Viewing 15 posts - 376 through 390 (of 476 total)

  • RE: SQL management studio alternative

    elmnas (9/16/2015)


    I wonder is it hard to copy an existing SQL db to a new virtual machine if I install SQL server

    For me, I would restore a recent Full Backups...

  • RE: Alter Database

    GilaMonster (9/16/2015)


    You'll have to change the name of Marketing before you can rename Marketing1. Even offline, it's still a database on the instance and database names have to be unique.

    🙂

    In...

  • RE: Alter Database

    Perhaps change the logical names of, what was, the Marketing1 database too (after the rename)

    Personally I'd just use the

    ALTER DATABASE [Marketing] SET OFFLINE WITH ROLLBACK IMMEDIATE

    rather than first setting it...

  • RE: max and count

    Dunno if this might work?

    SELECTa.attendingmdkey,e.[provider id],e.[first name],e.[last name],e.title,

    e.specialty,l.locationname,

    [Count]

    FROM(

    SELECTa.attendingmdkey, a.locationid, COUNT(a.accountid) AS [Count],

    Row_Number() Over(

    Partition by a.attendingmdkey

    order by COUNT(a.accountid) desc) AS RowNum

    FROMaccounts AS a

    where a.dischargedate>='2014-12-01'

    and a.dischargedate<'2015-01-01'

    and a.divisioncode in ('1','2','$')

    GROUP...

  • RE: Restoring .mdf .ldf files to a new server

    Ed Wagner (9/15/2015)


    The encouraging news is that in order to copy the files, SQL Server has to release the lock on them.

    Good point, thanks. My knowledge of tape backup...

  • RE: Finding NULL in CASE Statement

    Sean Lange (9/15/2015)


    I absolutely can't stand it when column names change across tables. It isn't a cli_Name it is a ClientName and it is always a ClientName.

    Sorry, just in case...

  • RE: Moving and restoring the db from latest backup -- Priority

    Lynn Pettis (9/15/2015)


    Kristen-173977 (9/15/2015)


    ramana3327 (9/15/2015)


    Step: Moving the production server latest backup from its local drive to Test server local drive

    Pedantic point but I expect that needs to be COPYING rather...

  • RE: Log file management in simple recovery model

    ScottPletcher (9/15/2015)


    I'm pretty sure beginning a new transaction doesn't require that a CHECKPOINT be issued. Presumably the heavy logging activity could/would cause a checkpoint, but a new transaction wouldn't...

  • RE: Log file management in simple recovery model

    ScottPletcher (9/15/2015)


    Can't imagine why SQL would automatically issue a checkpoint just because an index is rebuilt. I have no idea whether a maint plan does or not, although, again,...

  • RE: Smalldatetme (Query with Where, Cast, DATE vs Others)

    neil.michael (9/15/2015)


    Is this normal ?

    Yup. Dunno if it is a good analogy, but consider that you have a floating point number column with values 1.0, 1.1, 1.2 ... and you...

  • RE: Finding NULL in CASE Statement

    Lynn Pettis (9/15/2015)


    I would also recommend this even in single table queries as you never know when you may add table joins to a query.

    Just putting a different point-of-view (its...

  • RE: Commercial Software with All Tables as Heaps and Terrible Performance

    Dunno if it might help get your form A to B, but would reporting off a day-old copy be possible / acceptable?

    I'm thinking an overnight copy/restore to A.N.Other server, which...

  • RE: Commercial Software with All Tables as Heaps and Terrible Performance

    robinwilson (9/15/2015)


    I have never known SQL Server to behave so badly and unpredictably and it tends to just work.

    Because all your, previous, databases were written using Brest Practices perhaps?

  • RE: Best idea - summary field

    mike 57299 (9/15/2015)


    The field is currently in use many places and changing all the references from the table to a view is a large time investment.

    Would it be an...

  • RE: Restoring .mdf .ldf files to a new server

    chrisph (9/15/2015)


    the only backups are of the mdf and ldf files

    I hope they were "transactionally consistent" (if that is the right word?!) when they were backed up.

    Suggest running DBCC CHECKDB...

Viewing 15 posts - 376 through 390 (of 476 total)