Stephen West
Forum Replies Created
-
AuthorPosts
-
September 1, 2015 at 9:33 am in reply to: SQL Server log file does not match the primary file #545 Score: 0
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
September 1, 2015 at 7:33 am in reply to: Is It Possible to View SQLite Database in Android Emulator? #544 Score: 0If 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
August 31, 2015 at 7:37 am in reply to: Recovering deleted records from SQLite database #541 Score: 0Did you have a backup? Without a working backup you won’t be able to restore this.
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] )
GOIf 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] )
GOSince the [dbo].[Directory] already have a clustered index, the PRIMARY KEY constraint defaults to NONCLUSTERED.
use this
-
‘ENGINE’: ‘django.db.backends.sqlite3’,
‘NAME’: ‘/home/neo/django/db/data.sqlite3’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.
copy the data out of that database into a new one, vigorously check the logical consistency of the tables then discard the original database.
August 8, 2015 at 11:24 am in reply to: How to Detect Modified Pages In SQL Server Tables? #437 Score: 0use following query for the detection of last modification:
SELECT [name],create_date,modify_date FROM sys.tablesAugust 7, 2015 at 8:39 am in reply to: How to Detect Modified Pages In SQL Server Tables? #434 Score: 0On which SQL Server Version you are working?
Run the Following Command:
DBCC CheckDB(<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS, TABLOCKRun the following command from Query Analyzer:
RESTORE HEADERONLY FROM DISK=’C: \MyDatabase.bak
I am using SQL Server 2012 version please provide any solution for this error
July 20, 2015 at 12:30 pm in reply to: Is there a way to Split SQL Server Transaction Log? #367 Score: 0First you take a backup of your transaction log file then choose the simple recovery model.
You will have to re-create your existing logins.
Does the tool recover all the deleted data as well?
-
AuthorPosts