Forum Replies Created

Viewing 15 posts - 301 through 315 (of 522 total)

  • RE: IDENTITY crisis in SQL Server 2005, RTM version

    Did you run dbcc checktable against the table? does it have a PK?

     

  • RE: Displaying rows - basic sort problem?

    Try this:

    SELECT Sex, Distance, MIN(Time) AS Time

    FROM RaceResults

    GROUP BY Sex, Distance

    ORDER BY Sex, Distance

     

  • RE: Registering multiple servers simultaneously under sql 2005

    I don't think you missed anything and I don't think you can select multiple servers in 2000 too. Becuase for different servers you may need to use different authentication methods

     

  • RE: Converting SQL Server 2000 DB to 2005 DB

    The process worked for me too.

    However, you may still need to configure SQL suface area properly to make all your SPs work. Some features like xp_cmdshell is turned off by...

  • RE: Trying to restore a database.

    Yes, you don't need to create CompanyZ. You can restore from ComanyT backup to a database with any name and the restore process will create it. You cannot change the...

  • RE: Update Database Structure

    You need to write scripts to do this kind of thing.

    e.g., add a int column to an existing table with default value 0:

    IF NOT EXISTS(SELECT 1 FROM syscolumns WHERE ID=OBJECT_ID('YourTableName')...

  • RE: restoring database

    In the command of your original post,

    RESTORE DATABASE sglue_md

    FROM DISK = 'C:\sglue_md_20050804b.bak'

    WITH REPLACE, MOVE 'DBName_Data' TO 'C:\MSSQL\DATA\sglue_md_Data.MDF',

    MOVE 'sglue_md_Log' TO 'C:\MSSQL\DATA\sglue_md_Log.LDF'

  • RE: restoring database

    As the error message suggested, did you run RESTORE FILELISTONLY?

    What result you got? 

  • RE: Trying to restore a database.

    By the way, if you just want to change the name of a database, you donot need to detache and re-atche it with a differetn name. You can run sp_renamedb...

  • RE: Trying to restore a database.

    When you restore a database, by default in Enterprise manager shows the last back up you did. The UI has a drop down list "First backup to restore". From there you...

  • RE: filegrowth

    It's mostly because of the fragmentation of the database file.  The files are not in consecutive sectors in the hard drives. It causes the hard drives to take more time to move...

  • RE: Log file growth / last entry status = 2

    backup log just truncates the inactive logs, it does not shrink the log file. So the size of the file is not changed. But the used size should is reduced.

    If...

  • RE: How to handle Open Transactions?

    The current activity folder is not refreshed automatically. The 2 open Trans just mean the process of 57 has two open transactions at the time when you open the folder....

  • RE: Can I use Replication?

    log shipping sounds good. You need to use enterprise edtion of SQL server. Standard edtion does not support this.

  • RE: Deleting files on the computer where SQL Server is installed

    you can call the extended procedure xp_cmdshell in your stored procedure:

    DECLARE @sql nvarchar(1000)

    SET @sql='DEL "'+@YourFile+'"'

    exec master..xp_cmdshell @SQL

    Make sure your app login has the privilege to run xp_cmdshell.

     

Viewing 15 posts - 301 through 315 (of 522 total)