Offline Backup in SQL Database using DB13

Hi experts,
I am new to MSSQL database.
We are using ECC 6 with MSSQL 2005. In DB13 we get the following options.
Full Database backup
Diff DB backup
Transaction Log Backup
Check DB consistency
We do not have the option to take a offline backup from DB13.
My question is, weather it is possible to take a offline backup in MSSQL.
If yes could please give me the procedure for doing a offline backup using DB13.
Thanks in advance for the response.
Regards
Anil

Lol, No by definition SAP and SQL would need to be down to take that type of file backup.
Offline backups are not a supported recovery method.
Online backups will allow for PIT or full recovery.
Offline backups will not be report in SQL or SAP as you haven't backup the database - rather just the files.

Similar Messages

  • Offline backup failing when scheduled using DB13

    Hi,
               We have done our backup schedule of our BI 7 system running on AIX 5.3 and Oracle 10.2 using DB13.The activities like online backup and datbase check is executing correctly but offline backup is failing with status unknown.
    If i check in sm37 for the DBA job offline backup is showing status completed successfully but in brbackup logs there is no log for the offline backup activity.
    Kindly provide your suggestion on how i can resolve this issue.

    Hi Ammey,
                   Thanks for your reply.
    When I trigger the backup directly from brtools offline backup is happening successfully.The issue is happening only for the db13 scheduled offline backup.The same thing happened for Update statistics but check db is executed.
    So what has to be checked in backint settings pls provide you suggestion.
    rgds,
    vinayak

  • What commands used for taking backup of oracle database using BR*Tools

    Can somebody please help me urgently to know what are the commands used for taking backup of oracle database using BR TOOLS.Also specifythe commands in detail which can be used for taking backups of oracle database ,Online Redo log files in databse using BRBACK tool,Archiving of offline, redo log files using BRARCHIVE, and Restoring a Database using BRRESTORE tool Commands(Plese specify the commands with their Syntax used).Also specify the commands with their Syntax which are used for taking backup of oracle database(online,Offline redo log files) into Tapedrives using BRTOOLS commands.
    Thanking You for helping (in advance).

    Dear Ashish,
    BRBACKUP / BRARCHIVE calls the operating system command to copy the files.
    Simple approach to get the commands is as follows.
    1. Set the BR_TRACE (as given in the SAP note 29321) and run the command for which you need to know the OS / SQL commands.
    2. This will generate the log file with the trace information. This trace has the information of the commands used by the job you have run.
    Hope this helps.
    Regards,
    Madhukar

  • Errors during backup of MSSQL 2005 using DB13

    Hi,
    I have an ECC 5.0 system, and when I try to perform any kind of backup of a MSSQL 2005 database using DB13 I get an error like this:
    Modified:  2006-12-05 11:43:55.                                   
    Command:    pc1.sap_backup_databases                              
                 @dblist="PC1,master,msdb",@r3db="PC1",@bdev="PC1     
               _v2",@unload=0,@jobname= "SAP CCMS Full DB Backup      
               of PC1,master,msdb [20061205114354]"                   
    Descript: SAP CCMS JOB                                                                               
    *********** Task history information ***********                  
    For run:   20061205 23:00:00                                      
    Status:    0          (failure)   (see DB error log)              
    Message:   3013                                                   
    Severity:  16                                                     
    Duration:  0 hours, 0 minutes, 0 seconds                          
    Last msg:  Executed as user: NT AUTHORITYSYSTEM. DBCC execut     
               ion completed. If DBCC printed error messages, con     
               tact your system administrator. [SQLSTATE 01000] (     
               Message 2528)  The user-specified MEDIANAME "ID05S     
               " does not match the MEDIANAME "ID29S" of the devi     
               ce "PC1_v2(D:BackupPC1_2.bak)". [SQLSTATE 42000]     
                (Error 4037)  BACKUP DATABASE is terminating abno     
               rmally. [SQLSTATE 42000] (Error 3013).  The step 
               failed.                                                
    The strange thing is that if I create a new backup device in MS SQL Server Management Studio, and assign a backup job to use this backup device, the backup is successfull... but only the first time I schedule the backup. Following backup attempts to same device fails with the error message above.
    Any ideas, anyone?
    Regards,
    Thomas

    Hi Kan,
    So your suggestion is that I should run a backup with the format media option selected? I believe I have tried that, but I will nevertheless give it another go.
    Will keep this thread open in the mean time.
    Thomas

  • Which job is taking log Backup of specific database using command?

    In my SQL Server there are around 200 jobs of different databases for backup.
    Which job is taking log Backup of specific database using command?
    Kindly help.
    Thanks

    Hi,
    Its generally a bad design to create different jobs for different databases expecially backup and restore if you create you give specific names to the jobs otherwise it would be difficult for you to track. below query will give you littlt help but if you
    are running a proc to backup log files and that proc is situated in master database it wont help. If you are running SSIS package it wont help
    The column database name will help you in locating the DB name for which job is running
    use msdbgoselect sj.name,
    sj.description,
    jst.database_name,
    sj.date_created,
    sj.date_modified,
    jst.step_name,
    jst.command
    from
    dbo.sysjobs sj
    join
    dbo.sysjobsteps jst
    on
    sj.job_id=jst.job_id
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Restore sql database using c# code

    i need to restore ms sql database by selecting backup file in windows application...how to do it...?  thanx

    Hello,
    You can find a simple C#/VB.NET example to backup / restore a database in MSDN:
    Restore.SqlRestoreMethod
    And other example at CodeProject:
    Backup and Restore Databases using SMO
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Can't connect to SQL Database using new login

    I can connect to Azure SQL Database using the admin ID created when I set up the Azure account.  Now I want to set up a different login that has only regular read/write privileges.  I have followed the instructions on several web posts, to create
    a login at the server level, then create a user at the database level from the login.  When I try to connect, though, the connection fails.  I get an error message, and a GUID that I am supposed to supply to MS tech support, except that all I have
    is a standard Azure subscription, which does not include tech support.
    Here is what I have done so far:
    Logging in to the server with the admin account with SQL Mgmt Studio, I go to the master database on my Azure server, and create the login:
    CREATE LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
    This appears to work (password supplied is a "strong" password), or at least it doesn't show any error response.
    Then, connecting to the production database in Azure, I set up a user and set permissions as follow:
    CREATE USER clouduser1 FROM LOGIN clouduser@gxw8x04nlb;
    EXEC sp_addrolemember 'db_datareader', 'clouduser1'
    EXEC sp_addrolemember 'db_datawriter', 'clouduser1'
    When I attempt to connect to Azure using the new login, however, I get an error message (from SQL Mgmt Studio as well as from MS Access).  I am using the SQL Server Native Client 10.0.
    The message is:
    Connection failed:
    SQLState '28000'
    SQL Server Error 18456
    [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'clouduser'.
    Connection failed:
    SQLState: '01000'
    SQL Server Error: 40608
    [Microsoft][SQL Server Native Client 10.0][SQL Server]This session has been assigned a tracing ID of
    '271851d5-8e94-497c-a332-d9d40682bb7a'.  Provide this tracing ID to customer support when you need assistance.
    Is there some missing step I need to do, to permit the login to see the database?  I have looked for such in the various discussions about connection problems, but have not been able to find such a thing.   Or extend more permissions to the new
    user? Or specify a default user ID for a given login ?  (as they do not have the same names, in the examples I have seen).  I tried making the user ID the same as the login (w/o the server name), but that didn't seem to help, either.
    I have done numerous web searches, and tried about every variation of login or user ID, password, etc. that I can think of, and all of them encounter the same error.  It's got to be something very simple - clearly Azure supports more than one login
    per database.  But's that's all I have at the moment.  That login connects just fine, but others won't, using the same PC, middleware, IP address, etc.
    Any help would be much appreciated -
    Thanks,
         Doug

    Olaf -
    I noticed that, but all of the examples I have seen have Users named slightly differently from the Logins.  I did try logging in with the Login name instead.  No good.  I tried making the Login and the User name the same (clouduser).  Also
    no good - same symptoms.
    I think the problem is that the initial creation of the Login needs to be done WITHOUT the server name on the end.  
    Logged in to the master DB, I tried:  Create LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
    That didn't give me an error message, but I think it created a LOGIN of 'clouduser@gxw8x04nlb'.  When
    referenced from the outside world, I would need to specify 'clouduser@gxw8x04nlb@gxw8x04nlb'.
    I tried deleting the logins, and then creating the login 'clouduser' in the Master DB.  Then in
    the application DB, I created User clouduser from LOGIN clouduser, and then assigned a role.  That seems to work!
    In my connection string, File DSN, etc. I still need to supply the login as 'clouduser@gxw8x04nlb'.
     But when I am logged in to the server, and working in the Master DB or the application DB, I just refer to the Login as 'clouduser'.  
    Seems a little more complicated than it really should be, but at least I now have something that works.
    Doug
    Doug Hudson

  • Getting error while backing up SQL database using powershell

    I am trying to backup SQL database but strange thing is taking lpace, few databases i can backup with powershell but few i am getting error
        Exception calling "SqlBackup" with "1" argument(s): "Backup failed for Server 
        'Server1'. "
        At C:\_Scripts\defaultbackup.ps1:40 char:1
        + $smoBackup.SqlBackup($server)
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : FailedOperationException
        $dbToBackup = "test"
        #clear screen
        cls
        #load assemblies
        #note need to load SqlServer.SmoExtended to use SMO backup in SQL Server 2008
        #otherwise may get this error
        #Cannot find type [Microsoft.SqlServer.Management.Smo.Backup]: make sure
        #the assembly containing this type is loaded.
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") | 
        Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") 
        | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-  
        Null
        #create a new server object
        $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") "(local)"
        $backupDirectory = $server.Settings.BackupDirectory
        "Default Backup Directory: " + $backupDirectory
        $db = $server.Databases[$dbToBackup]
         $dbName = $db.Name
         $timestamp = Get-Date -format yyyyMMddHHmmss
        $smoBackup = New-Object ("Microsoft.SqlServer.Management.Smo.Backup")
        #BackupActionType specifies the type of backup.
        #Options are Database, Files, Log
        #This belongs in Microsoft.SqlServer.SmoExtended assembly
        $smoBackup.Action = "Database"
        $smoBackup.BackupSetDescription = "Full Backup of " + $dbName
        $smoBackup.BackupSetName = $dbName + " Backup"
        $smoBackup.Database = $dbName
        $smoBackup.MediaDescription = "Disk"
        $smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp +   
        ".bak",   
        "File")
        $smoBackup.SqlBackup($server)
        #let's confirm, let's list list all backup files
        $directory = Get-ChildItem $backupDirectory
       $smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp + ".bak", "File")
    $smoBackup.SqlBackup($server)
    #let's confirm, let's list list all backup files
    $directory = Get-ChildItem $backupDirectory
    #list only files that end in .bak, assuming this is your convention for all backup files
        $backupFilesList = $directory | where {$_.extension -eq ".bak"}
        $backupFilesList | Format-Table Name, LastWriteTime
        $backupFilesList = $directory | where {$_.extension -eq ".bak"}
        $backupFilesList | Format-Table Name, LastWriteTime
    I read on internet that by using this in the script this problem can be sorted but i am
    not sure where exactly to put this line in above script set the ConnectionContext.StatementTimeout to 0
                  

    Hi Srk,
    I found the similar issue in this article, which had been sovled by adding the script below:
    $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") $dbInstance
    $server.ConnectionContext.StatementTimeout = 0
    Refer to:
    Exception calling "SqlBackup" with "1" argument(s)
    Please feel free to let me know if this method can not work.
    Best Regards,
    Anna Wang

  • Offline copy of SQL Database in Visual Studio Community Edition?

    I'm using an Azure Mobile Service and SQL database, and I'm interacting with it via Visual Studio Community Edition (12.0.31101.00 Update 4).
    I'm often offline, but want to work on and test the SQL code.  Is there a way to sync a local copy of the database to my pc so I can work with that to test my code?  I'm not necessarily looking to make changes to the database offline and syncing
    that back to the server, although that would be nice too.
    Thanks!

    Hello Scott,
    You could use SQL Data Sync to synchronize your local copy of the database with the Azure SQL database. The details are documented at http://msdn.microsoft.com/en-us/library/hh456371.aspx. 
    PS - the SQL Data Sync feature is still in preview and the support is only through forums.
    Regards,
    Kumar Bijayanta

  • Help needed with secondary DPM backup of SQL databases

    I am having difficulties with some SQL databases not backing up to my secondary DPM server. a number of them are in "Replica is inconsistent" state and a few are in "Recovery Point creation failed" state though they are all OK on the
    primary DPM server.
    The primary server is getting lots of Event ID 4222 errors for MSDPM (DPM has run out of free recovery point space and will fail snapshots) even though the disk allocated looks healthy.
    On the primary, VSSADMIN LIST Writers says the DPM Writer is State: [7] Failed and in non-retryable error state but I can't work out why or how to fix it so far.
    There are no errors on the secondary other than the failure to backup some databases on the primary.
    I am using DPM 2012 R2 on Windows Server 2012 R2 for both primary and secondary.
    Any suggestions would be most welcome.
    Thanks
    Mark

    The errors I get on the secondary DPM server are:
    Those databases with Replica is Inconsistent
    Affected area: <database name>(SQL Server <servername>)
    Occurred since: 18/07/2014 16:38:46
    Description: The replica of SQL Server 2012 database <database name>(SQL Server <servername>) on <Primary DPM Server> is inconsistent with the protected data source. All protection activities for data source will fail until the replica is
    synchronized with consistency check. You can recover data from existing recovery points, but new recovery points cannot be created until the replica is consistent.
    For SharePoint farm, recovery points will continue getting created with the databases that are consistent. To backup inconsistent databases, run a consistency check on the farm. (ID 3106)
     Synchronization for replica of <database name>(SQL Server <servername> on <Primary DPM Server> failed because the replica is not in a valid state or is in an inactive state. (ID 30300 Details: VssError:The writer experienced a non-transient
    error.  If the backup process is retried,
    the error is likely to reoccur.
     (0x800423F4))
     More information
    Recommended action: Review the application event log on the protected computer for errors from the DPM writer service. Take appropriate action and retry the operation.
     Synchronize with consistency check.
     Run a synchronization job with consistency check...
    Resolution: To dismiss the alert, click below
     Inactivate
    For those databases with Recovery Point creation failed
    Affected area: <database name>(SQL Server <servername>)
    Occurred since: 18/07/2014 09:05:15
    Description: Recovery point creation jobs for SQL Server 2012 database <database name>(SQL Server <servername>) on <Primary DPM Server> have been failing. The number of failed recovery point creation jobs = 74.
     If the data source protected has some dependent data sources (like a SharePoint Farm), then click on the Error Details to view the list of dependent data sources for which recovery point creation failed. (ID 3114)
     Synchronization for replica of <Database name>(SQL Server) on <Primary DPM Server> failed because the replica is not in a valid state or is in an inactive state. (ID 30300 Details: VssError:The writer experienced a non-transient error. 
    If the backup process is retried,
    the error is likely to reoccur.
     (0x800423F4))
     More information
    Recommended action: Review the application event log on the protected computer for errors from the DPM writer service. Take appropriate action and retry the operation.
     Create a recovery point...
    Resolution: To dismiss the alert, click below
     Inactivate

  • How to create an SQL Database using LabVIEW??

    Hi all,
    I have been using LabVIEW for quite a long time but now I am doing something which I am totally new to. I have a VI which gives out a table as output. What I am trying to do is, I want to create an SQL databse and save this table in the database and I want to pass the value of this table to the SQL Database once in  every 24 hours. As I dont have any knowledge of My SQL I am totally stuck.
    Can anyone help me by telling me how to do this.?? An example code will be well appreciated.
    Regards,
    Nitz..

    Hi Nitzz,
    what have you done and where do you have problems? Did you make a search here in the forum?
    http://forums.ni.com/t5/forums/searchpage/tab/message?q=create+database#message-list
    Mike

  • Forms 6i to sql database using odbc driver

    am using orace forms 6i and i want to connect to sql database to use the tables there i can seem to do that with odbc cos it is asking for 'oracle open client adaptor', please can somebody tell me how and where i can get this adaptor driver.

    I suggest posting this in the Forms discussion forum. The open client adapter stuff is a bit different that the ODBC driver.
    Justin

  • Query regarding connecting dashboards with SQL DATABASE using WSDT

    Hello Sir,
    I am trying to connect dashboards with Sql database via WSDT, but i have encountered the same problem as described in your SAP community blog (SAP Web Service Design Tool: From web service creation to Xcelsius consumption).
    when i tried connecting CR server with WSDT ,it still shows that total number of available licenses is 0.
    What can be done to solve this issue.
    for your detail reference, we are using CRS NUL version's 60 days Evaluation keys and same with Xcelsius Departmental edition.
    I would really appreciate, if you revert back to my mail as soon as possible

    Which version of Crystal Reports are you using? The regular ReportDocument SDK probably isn't robust enough to handle this, unless you create a connection using that connection string at design-time which you don't change at runtime. You might be able to add those properties using the in-proc RAS SDK, though. This is available with CRXI R2 as of SP2, and CR2008.

  • Generating next number from the SQL database using java

    Hi friends, I have a problem and need your help. I am working on a project about submitting claims form through the adobe PDF file and SQL database. I have problem working on a web service (written in java) that will generate the next Invoice Number from the SQL Database table. The field type for the column is text(var char). *Example: I first need to get into the table and search for the last Invoice number in the table and if the last invoice number in the table from the database is 3, i would want to generate the next number which is 4 and filled it up in the PDF file through web service that i am implementing. Can you all provide me some guidelines on how to implement this method in my web service?
    Thanks a lot. I need it by today. Hope someone can reply this as soon as possible.
    Lim89
    Edited by: LIM89 on Apr 2, 2008 7:10 PM

    far simpler to use a sequence generator, which most databases support.
    Suggested method to get the max value in the column is NOT secure, unless you lock the entire table for update before you do so, which is a severe performance penalty.

  • Error upon inserting data in sql Database using stream analytics job: Datatye error conversion

    I have a data passed into the Event Hubs, queried by stream analytic job inserting it into sql database. Upon running the job, it becomes idle a few seconds after since it has an error:
    Message: Conversion from 0 to System.Boolean failed. 0 was of type - System.Int64.
    Conversion from 0 to System.Boolean failed. 0 was of type - System.Int64. Exception message at level [1], exception number [0], parent exception number [0]: Conversion from 0 to System.Boolean failed. 0 was of type - System.Int64.
    The data type in one of my field(IsHistorical) is Boolean with a value of false. The data type of the column in the sql table where this is to be inserted is of type bit. In this case, it seems that stream analytics could not convert the value "false"
    into a bit data type when inserting in sql table.
    I'm wondering if you already have encountered this problem. Could you help me resolve this problem?
    Thank you.

    Azure Stream Analytics does not have Boolean type. On input we will convert JSON Boolean value to bigint.
    Here is the list of supported types and conversions:
    https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx 
    You  can fix this erro by changing column type from bit to int in SQL table schema.

Maybe you are looking for