Home » Blog » » Page 4

Andrew Jackson

~ Modified: January 25th, 2024 ~ ~ 7 Minutes Reading

Forum Replies Created

Viewing 20 posts - 61 through 80 (of 81 total)
  • Author
    Posts
  • in reply to: SQL Server most recent backup problem #636 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    Use the backup history tables in msdb to retrieve the filename and path of the most recent backup.

    in reply to: Using Sqlite3 in ruby on rails and cmd #622 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    yes and i have stuff inside but i dont care for the entity’s

    in reply to: Error in SQL Server 2000 #600 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    What happens if you turn off OLE DB Resource Pooling?

    'For SQLOLEDB provider
     'strConnect = "Provider=SQLOLEDB;server=MyServerName;OLE DB Services = -2;uid=AppUser;pwd=AppUser;initial catalog=northwind"
    
    ' For MSDASQL provider 
    'strConnect = "DSN=SQLNWind;UID=Test;PWD=Test; OLE DB Services= -2"
    in reply to: Login failed In SQL Server 2012 #582 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    Login details are stored in the master, so it makes sense that they would be gone if you’ve replaced the master database files.
    Do you have a copy of your old master.mdf and .ldf file, or did you overwrite them? If not, you will have to recreate all the logins

    in reply to: How to view an MDF file for archive purposes? #561 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    If you see a service but it is stopped, start it by right hitting start,

    If you do not see a SQL Server service, it is likely you did not install the Server Tools during the install. In this case you need to reinstall with the server tools.  

    in reply to: SQL Sever Database Sync #558 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    What version Of SQL Server are you ruinning? If you are using 2008 think about using the MERGE command and SSIS to move data from your one server to the other. MERGE is a new feature and will allow you to insert, update and delete all in one command as long as you have good primary keys

    in reply to: How to Recover Database In SUSPECT Mode? #550 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    use this script to recover database from suspect mode

    EXEC sp_resetstatus 'yourDBname';
    ALTER DATABASE yourDBname SET EMERGENCY
    DBCC checkdb('yourDBname')
    ALTER DATABASE yourDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
    DBCC CheckDB ('yourDBname', REPAIR_ALLOW_DATA_LOSS)
    ALTER DATABASE yourDBname SET MULTI_USER
    in reply to: How to Resolve MS SQL Error 824? #549 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    Try this:

    ALTER DATABASE corrupted_db SET SINGLE_USER WITH ROLLBACK IMMEDIATE
    DBCC ChECKDB ('corrupted_db', REPAIR_ALLOW_DATA_LOSS) 
    ALTER DATABASE corrupted_db SET MULTI_USER

    but there is very high chance of data loss

    in reply to: Getting Error 9100 In SQL Server 2005 #529 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    1. Run DBCC CHECKDB, make sure all the tables are having a clustered index (physical order of records)
    2. If you need to restore the database, it may be save to restore just the db, if not many files have changed or any extensions has been upgraded since.

    in reply to: How to Shrink SQLite Database? #526 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    SQLite database format trades space efficiency for speedy access. If you just dump the data contents, either as SQL dump or simply a CVS file for each database table, you’ll likely get smaller files, either using database files or plain data, try compressing them.

    Andrew Jackson
    Moderator
    1 pt

    No you can’t, However you can use logs to fetch and see the fetched data in logcat or set some value on your textviews or use table layout to see your fetched data.

    in reply to: Why we using full recovery model for database #506 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    The simple recovery model is generally appropriate for a test or development database. However, for a production database, the best choice is typically the full recovery model, optionally, supplemented by the bulk-logged recovery model. However, the simple recovery model is sometimes appropriate for a small production database, especially if it is mostly or completely read-only, or for a data warehouse.

    Some of reason was these:
    CDC (Change data capture)
    Point in Time
    Database Mirroring
    Log shipping
    Create Transaction log backup (for critical data)

    in reply to: MS SQL FILESTREAM Performance #500 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    On what kind of a server?? What kind of hardware to serve those files? What kind of disks, network etc.??

    in reply to: How to view an MDF file for archive purposes? #464 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    First things first. Let’s get you connected. When you installed SQL Server, did you name the instance <your computer name>\SQLExpress ? I would try and choose Windows Authentication as your authentication and then simply place a period (.) in the servername and hit connect.

    If that does not work, go to Control Panel/Administrative Tools/Services and make sure the SQL Server Service is running.

    in reply to: What is SQL Injection? #450 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    SQL Injection occurs when the user of an application is able to affect the meaning of database query. This often occurs when arbitary strings from user input are concatenated to create SQL which is fed to the database

    Andrew Jackson
    Moderator
    1 pt

    Use the following Data Source “C:\temp\database.sdf;Password=mypassword” to open an encrSQL Server Compact edition file but you must know the password and add that to the connection string.

    in reply to: Is there a way to Split SQL Server Transaction Log? #368 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    I hope this helps you:

    Alter database <databasename>set Recovery simple
    USE <databasename>
    DBCC SHRINKFILE (<log_name>, 0, TRUNCATEONLY)
    GO
    Alter database <databasename> set Recovery full

    in reply to: Deleting a Transaction Log File in SQL Server #319 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    In SQL Server, to DELETE a log file in SQL Server just click on OBJECT EXPLORER and connect to the SQL Server database engine then expand DATABASES and right click on the database to which log file you have to delete and then click on properties and select the file page.
    NOW, In the DATABASE FILES grid, select the file to delete and then click on REMOVE then click OK.

    PS: The file must be empty before it can be delete.

    Andrew Jackson
    Moderator
    1 pt

    Hi
    The below Error MSGs I got

    Error: 5173, which shows “One or more files do not match the primary file of the database. If you are attempting to attach a database, retry the operation with the correct files. If this is an existing database, the file may be corrupted and should be restored from a backup”

    Error: 17207, Severity: 16, State: 1.
    FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file ‘x:\xxxx\LOGS\xxxx_log.ldf’. Diagnose and correct the operating system error, and retry the operation.

    Please Help Me

    in reply to: How to view SQL Server log file? #317 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    After the BLOBs deletion, The BLOB which gets deleted is not a part of the transaction log, hence unable to recover BLOB by just analyzing the transaction log. Therefore INSERT log record is need to manage as well as to recover the deleted BLOB from transaction log using fn_dblog.

Viewing 20 posts - 61 through 80 (of 81 total)