Forum Replies Created

Viewing 15 posts - 2,596 through 2,610 (of 4,745 total)

  • RE: Different owner on the logshipped database

    as I said, it cannot be done until database is bought online.:w00t:

    ---------------------------------------------------------------------

  • RE: Renaming a database

    Two ways to do this, either:

    ALTER DATABASE currentname MODIFY NAME = Newname (renames existing db)

    to change file names

    alter database yourdb set offline

    alter database MODIFY FILE ( NAME =...

    ---------------------------------------------------------------------

  • RE: please tell what is wrong with this cursor

    good for you, relax and enjoy!

    the above mistake reminds me of my early days in cobol batch programming and the structured programming techniques we were taught. Above structure was called...

    ---------------------------------------------------------------------

  • RE: please tell what is wrong with this cursor

    @ Gail.

    Grrrrr. even with an edit you beat me to the punch. 🙂 I thought you were taking a break?

    ---------------------------------------------------------------------

  • RE: please tell what is wrong with this cursor

    You have opened the cursor and then gone into a loop which you will never break out of because you are not fetching the next record in the cursor

    try this

    declare...

    ---------------------------------------------------------------------

  • RE: Index on Date Time Column Not Getting Used

    The search criteria on the where clause is used by SQL to determine optimum plan, not the select list.

    Post your create table script, sample values and the execution plan.

    ---------------------------------------------------------------------

  • RE: Index on Date Time Column Not Getting Used

    Ahh, language settings, is that query 1st and 2nd May or 5th Jan to 5th Feb?

    Former I presume. Same arguments still apply.

    ---------------------------------------------------------------------

  • RE: Index on Date Time Column Not Getting Used

    the table contains 500,000 rows? If your distribution of data was even as your description suggests it would be then I would expect your query to return about 40,000 rows...

    ---------------------------------------------------------------------

  • RE: auto generate logins

    MS already supply a script to do just this. google sp_help_revlogin

    ---------------------------------------------------------------------

  • RE: SQL Server and VMWare

    ours are on physical by design.

    ---------------------------------------------------------------------

  • RE: Different owner on the logshipped database

    you won't be able to update it until the failover database comes online, so make it part of your failover procedure to correct the dbowner before the app is connected...

    ---------------------------------------------------------------------

  • RE: SQL Server 2005 automatic failover

    why not take orphaned users out of the equation and use sp_help_revlogin to synch the sids for the logins?

    ---------------------------------------------------------------------

  • RE: Changing Recovery Model

    Run the following and then cut and paste the results into another window and run it

    select 'alter database ['+name+'] set recovery full' from sys.sysdatabses where dbid > 4

    ---------------------------------------------------------------------

  • RE: Can SQL Server 2000 replicate system databases and/or logins?

    KEVIN KENNY (4/28/2010)


    Can SQL Replication be used to publish SQL Server 2000 system databases to another SQL Server 2000 server, i.e master, model, msdb?

    No

    If this is not possible, what is...

    ---------------------------------------------------------------------

  • RE: Slow Database Backup & Restore

    maybe the amount of data in your database is growing and therefore the backups are taking longer?

    What do you call slow?

    ---------------------------------------------------------------------

Viewing 15 posts - 2,596 through 2,610 (of 4,745 total)