Home » » Page 6

Stephen West

~ Modified: July 26th, 2024 ~ ~ 4 Minutes Reading

Forum Replies Created

Viewing 15 posts - 101 through 115 (of 115 total)
  • Author
    Posts
  • in reply to: SQL Server log file does not match the primary file #545 Score: 0
    Stephen West
    Moderator
    4 pts

    1. Create a new database with same name to default database location.
    2. Stop SQL server.
    3. Copy old mdf file to overwrite newly created mdf file and delete new ldf file
    4. Start SQL Server, database will be in emergency mode
    5. Detach the emergency mode database
    6. Copy original ldf file to default database location (where new LDF file as created and deleted under step 3 above.
    7. Attach the database MDF file.

    Hope it will work for you

    Stephen West
    Moderator
    4 pts

    If you are using a Real Device and it is not rooted then it is not possible to see you data base in FileExplorer because due to some security reason that folder is locked in android system. and if you are using it in an emulator you will find it in FileExplorer /data/data/your package name/databases/yourdatabase.db

    in reply to: Recovering deleted records from SQLite database #541 Score: 0
    Stephen West
    Moderator
    4 pts

    Did you have a backup? Without a working backup you won’t be able to restore this.

    in reply to: Clustered Index Issue In SQL Server 2005 #540 Score: 0
    Stephen West
    Moderator
    4 pts

    First, you have to create any additional indexes on the table as non-clustered.

      CREATE NONCLUSTERED INDEX [IX_Directory_AreaCode_PhoneNumber]
      ON [dbo].[Directory] ( [AreaCode], [PhoneNumber] )
      GO

    If you want to change how the table is clustered, you have to drop the existing clustered index first before you can create a new one.

      ALTER TABLE [dbo].[Directory]
      DROP CONSTRAINT [PK_Directory]
      GO
      CREATE CLUSTERED INDEX [IX_Directory_AreaCode_PhoneNumber]
      ON [dbo].[Directory] ( [AreaCode], [PhoneNumber] )
      GO
      ALTER TABLE [dbo].[Directory]
      ADD CONSTRAINT [PK_Directory] PRIMARY KEY ( [LastName], [FirstName] )
      GO

    Since the [dbo].[Directory] already have a clustered index, the PRIMARY KEY constraint defaults to NONCLUSTERED.

    in reply to: Django SQLite Unable to Open Database File #539 Score: 0
    Stephen West
    Moderator
    4 pts

    use this

      ‘ENGINE’: ‘django.db.backends.sqlite3’,
      ‘NAME’: ‘/home/neo/django/db/data.sqlite3’
    in reply to: MS SQL FILESTREAM Performance #501 Score: 0
    Stephen West
    Moderator
    4 pts

    FILESTREAM data must be stored in FILESTREAM filegroups. A FILESTREAM filegroup is a special filegroup that contains file system directories instead of the files themselves. These file system directories are called data containers. Data containers are the interface between Database Engine storage and file system storage.
    When you use FILESTREAM storage, consider the following:

    • When a table contains a FILESTREAM column, each row must have a nonnull unique row ID.
    • FILESTREAM data containers cannot be nested.
    • When you are using failover clustering, the FILESTREAM filegroups must be on shared disk resources.
    • FILESTREAM filegroups can be on compressed volumes.
    in reply to: How to Recover Database In SUSPECT Mode? #456 Score: 0
    Stephen West
    Moderator
    4 pts

    copy the data out of that database into a new one, vigorously check the logical consistency of the tables then discard the original database.

    in reply to: How to Detect Modified Pages In SQL Server Tables? #437 Score: 0
    Stephen West
    Moderator
    4 pts

    use following query for the detection of last modification:
    SELECT [name],create_date,modify_date FROM sys.tables

    in reply to: How to Detect Modified Pages In SQL Server Tables? #434 Score: 0
    Stephen West
    Moderator
    4 pts

    On which SQL Server Version you are working?

    in reply to: How to Resolve MS SQL Error 824? #407 Score: 0
    Stephen West
    Moderator
    4 pts

    Run the Following Command:
    DBCC CheckDB(<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS, TABLOCK

    in reply to: How to Resolve SQL Error 3013? #404 Score: 0
    Stephen West
    Moderator
    4 pts

    Run the following command from Query Analyzer:

    RESTORE HEADERONLY FROM DISK=’C: \MyDatabase.bak

    in reply to: Getting SQL Error 3159 #392 Score: 0
    Stephen West
    Moderator
    4 pts

    I am using SQL Server 2012 version please provide any solution for this error

    in reply to: Is there a way to Split SQL Server Transaction Log? #367 Score: 0
    Stephen West
    Moderator
    4 pts

    First you take a backup of your transaction log file then choose the simple recovery model.

    in reply to: Login failed In SQL Server 2012 #326 Score: 0
    Stephen West
    Moderator
    4 pts

    You will have to re-create your existing logins.

    in reply to: How to view SQL Server log file? #283 Score: 0
    Stephen West
    Moderator
    4 pts

    Does the tool recover all the deleted data as well?

Viewing 15 posts - 101 through 115 (of 115 total)