Backup & Restore SQL Server 2005

Dear Experts,
One of our SAP system got crash due to some hardware problem . we have rectified the problem and installed the OS again.
Now could you please tell me how to restore taken SQL to bring the system up to date. Now I have Backup datas in my External HDD. I don't have Tape Drive media for that system.
I would appreciate the procedure and steps to be followed backup restore on the SQL 2005 & windows 2003 server system
Please Let me know.
Thanks in advance
Regards
Thomas.T

hi,
you have to install SAP on that machine then
1.  Detach the database from newly installed sap.
if you had offline backup
2. copy the database from the external HDD to  newly installed location for e.g if on installation you had
     database location on E:\ then copy to E:\
3. attach the database.
if online backup
3. you have to use Restore method in SQL server.
     start SQL 2005 server, right click on database option-->select Restore database, select from device -->specify backup
     Backup media> file, click on Add> select file (external HDD location), in To database -->specify name of database (like PRD,DEV your SAP database name), in option, give the proper path for the restore.
4. run STM tool.
Thanks
Ganesh

Similar Messages

  • How to restore the Password backup in sql server 2005

    How to restore the Password backup in sql server 2005

    Hello,
    THANKS............ BUT
    I executed this query 
    RESTORE DATABASE new_data1
    FROM DISK = 'd:\UK_DETAILS.bak'
    with password ='selfinity123'
    WITH MOVE 'UK_DETAILS.bak' TO 'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\new_data1.mdf',
    MOVE 'UK_DETAILS.bak' TO 'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\new_data1.ldf'
    I got the error 
    Msg 319, Level 15, State 1, Line 4
    Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon.

  • After backup restores sql server error can't create folder, and can't search into list / library from ribbon

    after having created a portal on a development platform, I made a backup Sql server then restores the production platform with sql server. 
    Two problems : 
    Problem 1: 
    1 in libraries error "An unexpected error" when creating FOLDER from ribbon even with Action page -> Manage content and structure. I could only create a folder with "Open with Explorer" in the ribbon. In the folder I created, i can create
    a subfolder with ribbon, but not a folder in the root of the library. I create a sub sites and in this case it does not have any problem, I created a folder !!! 
    Problem 2: 
    2 The search from the search box in the lists and library does not work. I need it working. I create a search site and it works fine, but I want to do research on lists and libraries.
    aprés avoir créer un portail sur une plateforme de développement, j'ai effectué un backup Sql server puis un restaure sur la plateforme de production avec sql server.
    2 problèmes sont apparus :
    Problème 1 :
    1. dans les bibliothèques de documents  erreur " An unexpected error" lors de la création de DOSSIER du ruban, même avec Action du site -> Gérer le contenu et la structure. j'ai seulement pu créer un dossier avec "Ouvrir avec l'explorateur"
    dans le ruban. Dans le dossier créer j'ai pu créer un sous-dossier avec le ruban, mais pas un dossier dans la racine de la bibliothèque. J'ai créer un sous sites et dans ce cas il n'y as pas de problème, j'ai pu créer un dossier !!!
    Problème 2 :
    2. La recherche à partir de la zone de recherche dans les listes et bibliothèque ne fonctionne pas. J'ai besoin que ca fonctionne. j'ai creer un site de recherche et il fonctionne correctement, mais je veux faire des recherches sur les listes et bibliothèques.

    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    Name=Request (POST:http://tserveur:8080/sites/MEAE/Documents%20partages/Forms/Upload.aspx?RootFolder=%2Fsites%2FMEAE%2FDocuments%20partages&Type=1&IsDlg=1)
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.54 w3wp.exe (0x1054)                      
    0x0560
    SharePoint Foundation         Logging Correlation Data      
    xmnv Medium  
    Site=/sites/MEAE 9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.54 w3wp.exe (0x1054)                      
    0x0560
    SharePoint Foundation         Monitoring                    
    b4ly High    
    Leaving Monitored Scope (PostResolveRequestCacheHandler). Temps d’exécution=15,7441122074812
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.56 w3wp.exe (0x1054)                      
    0x0560
    Document Management Server    
    Document Management          
    52od Medium  
    MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/MEAE/Documents%20partages/Forms/Upload.aspx?RootFolder=%2Fsites%2FMEAE%2FDocuments%20partages&Type=1&IsDlg=1].  Hiding key filters and downgrading
    tree functionality to legacy ListViewWebPart(v3) level for this list.
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.57 w3wp.exe (0x1054)                      
    0x0560
    Web Content Management        
    Publishing                    
    7fz4 High    
    WARNING: Cannot change FormContext.FormMode to [Invalid] because it is already set to [New]
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.57 w3wp.exe (0x1054)                      
    0x0560
    Web Content Management        
    Publishing                    
    7fz4 High    
    WARNING: Cannot change FormContext.FormMode to [Invalid] because it is already set to [New]
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.58 w3wp.exe (0x1054)                      
    0x0560
    SharePoint Foundation         Runtime                      
    tkau
    Unexpected System.ArgumentException: Argument de publication ou de rappel non valide. La validation d'événement est activée via <pages enableEventValidation="true"/> dans la
    configuration ou via <%@ Page EnableEventValidation="true" %> dans une page. Pour des raisons de sécurité, cette fonctionnalité vérifie si les arguments des événements de publication ou de rappel proviennent du contrôle serveur qui les a rendus
    à l'origine. Si les données sont valides et attendues, utilisez la méthode ClientScriptManager.RegisterForEventValidation afin d'inscrire les données de publication ou de rappel pour la validation.    à System.Web.UI.ClientScriptManager.ValidateEvent(String
    uniqueId, String argument)     à System.Web.UI.WebControls.Table.RaisePostBackEvent(String argument)     à System.Web.UI.Page.RaisePos...
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.58* w3wp.exe (0x1054)                      
    0x0560
    SharePoint Foundation         Runtime                      
    tkau Unexpected
    ...tBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:53.58 w3wp.exe (0x1054)                      
    0x0560
    SharePoint Foundation         Monitoring                    
    b4ly Medium  
    Leaving Monitored Scope (Request (POST:http://tserveur:8080/sites/MEAE/Documents%20partages/Forms/Upload.aspx?RootFolder=%2Fsites%2FMEAE%2FDocuments%20partages&Type=1&IsDlg=1)). Temps d’exécution=57,2831164943714
    9c8700ee-9d51-4e5a-9b9d-22bebe9f03a1
    10/13/2014 10:54:56.31 OWSTIMER.EXE (0x0B18)                  
    0x02F4
    SharePoint Foundation         Monitoring                    
    nasq Medium  

  • SAP Dispatcher getting stopped after successful DB restore sql server 2005

    Dear Experts,
    I have installed SAP ECC 6.0 with MSS 2005 on Windows 2003 x64. MSS DB and thereafter
    SAP installtion was successful. I also logged on the system and checked a few things. Then we
    performed a PRD data  DB restore using MSS Management Studio and DB restore completed successfully.
    Then we take a restart and tried to start SAP. Primarily I found it is starting and then when it come Dispatcher
    getting stopped once i restarted the server also I tried with r3trans -d and its not executing  please check the developer trace
    and my server work directory in zip format  attached please check the attachment
    please help me to sort out this issue
    Best Regards
    SURESH .M
    SAP BASIS CONSULTANT

    Hi deepak ,
    please check the trans log iam attached
    r3trans -d getting return code 0012
    please check it
    4 ETW000 r3trans version 6.14 (release 700 - 18.09.06 - 09:35:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 19.06.2014 - 16:57:13
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: r3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Thu Jun 19 16:57:15 2014                           41662  0.041662
    4 ETW000  [dev trc     ,00000]  db_con_init called                                   142  0.041804
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                            181  0.041985
    4 ETW000  [dev trc     ,00000]  Loading DB library 'dbmssslib.dll' ...               138  0.042123
    4 ETW000  [dev trc     ,00000]  load shared library (dbmssslib.dll), hdl 0         47141  0.089264
    4 ETW000  [dev trc     ,00000]      using "D:\usr\sap\PRD\SYS\exe\uc\NTAMD64\dbmssslib.dll"
    4 ETW000                                                                             130  0.089394
    4 ETW000  [dev trc     ,00000]  Library 'dbmssslib.dll' loaded                        40  0.089434
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library dbmssslib.dll
    4 ETW000                                                                              63  0.089497
    4 ETW000  [dev trc     ,00000]  Version of 'dbmssslib.dll' is "700.08", patchlevel (0.72)
    4 ETW000                                                                           28593  0.118090
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library dbmssslib.dll
    4 ETW000                                                                              75  0.118165
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library dbmssslib.dll
    4 ETW000                                                                              70  0.118235
    4 ETW000  [dev trc     ,00000]  New connection 0 created                           11925  0.130160
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                             163  0.130323
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         56  0.130379
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              60  0.130439
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              74  0.130513
    4 ETW000  [dev trc     ,00000]  Thread ID:2196                                     16796  0.147309
    4 ETW000  [dev trc     ,00000]  Thank You for using the SLOLEDB-interface             54  0.147363
    4 ETW000  [dev trc     ,00000]  Using dynamic link library 'D:\usr\sap\PRD\SYS\exe\uc\NTAMD64\dbmssslib.dll'
    4 ETW000                                                                              76  0.147439
    4 ETW000  [dev trc     ,00000]  dbmssslib.dll patch info                              84  0.147523
    4 ETW000  [dev trc     ,00000]    patchlevel   0                                      37  0.147560
    4 ETW000  [dev trc     ,00000]    patchno      72                                     30  0.147590
    4 ETW000  [dev trc     ,00000]    patchcomment MSSQL: Thread check in DbSlDisconnect (969143)
    4 ETW000                                                                              54  0.147644
    4 ETW000  [dev trc     ,00000]  np:(local) connection used on PSPRD1                 195  0.147839
    4 ETW000  [dev trc     ,00000]  CopyLocalParameters: dbuser is 'prd'                  44  0.147883
    4 ETW000  [dev trc     ,00000]  Using Provider SQLNCLI                             46841  0.194724
    4 ETW000  [dev trc     ,00000]  OpenOledbConnection: MARS property was set successfully.
    4 ETW000                                                                             419  0.195143
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush return code: 0x80040e14 Stmt: [if user_name() != 'prd' setuser 'prd']
    4 ETW000                                                                          121982  0.317125
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush: line 6324. hr: 0x80040e14 Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             211  0.317336
    4 ETW000  [dev trc     ,00000]  sloledb.cpp [ExecuteAndFlush,line 6324]: Error/Message: (err 15157, sev 0), Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             168  0.317504
    4 ETW000  [dev trc     ,00000]  Procname: [ExecuteAndFlush - no proc]                 38  0.317542
    4 ETW000  [dev trc     ,00000]  setuser 'prd' failed -- connect terminated            68  0.317610
    4 ETW000  [dev trc     ,00000]  Using Provider SQLNCLI                              6271  0.323881
    4 ETW000  [dev trc     ,00000]  OpenOledbConnection: MARS property was set successfully.
    4 ETW000                                                                             215  0.324096
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush return code: 0x80040e14 Stmt: [if user_name() != 'prd' setuser 'prd']
    4 ETW000                                                                            8723  0.332819
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush: line 6324. hr: 0x80040e14 Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             122  0.332941
    4 ETW000  [dev trc     ,00000]  sloledb.cpp [ExecuteAndFlush,line 6324]: Error/Message: (err 15157, sev 0), Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             141  0.333082
    4 ETW000  [dev trc     ,00000]  Procname: [ExecuteAndFlush - no proc]                 37  0.333119
    4 ETW000  [dev trc     ,00000]  setuser 'prd' failed -- connect terminated            53  0.333172
    4 ETW000  [dev trc     ,00000]  Using Provider SQLNCLI                              6308  0.339480
    4 ETW000  [dev trc     ,00000]  OpenOledbConnection: MARS property was set successfully.
    4 ETW000                                                                             209  0.339689
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush return code: 0x80040e14 Stmt: [if user_name() != 'prd' setuser 'prd']
    4 ETW000                                                                            8393  0.348082
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush: line 6324. hr: 0x80040e14 Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             122  0.348204
    4 ETW000  [dev trc     ,00000]  sloledb.cpp [ExecuteAndFlush,line 6324]: Error/Message: (err 15157, sev 0), Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             286  0.348490
    4 ETW000  [dev trc     ,00000]  Procname: [ExecuteAndFlush - no proc]                 42  0.348532
    4 ETW000  [dev trc     ,00000]  setuser 'prd' failed -- connect terminated            55  0.348587
    4 ETW000  [dev trc     ,00000]  failed to establish conn to np:(local).             6478  0.355065
    4 ETW000  [dev trc     ,00000]  Retrying without protocol specifier: (local)          49  0.355114
    4 ETW000  [dev trc     ,00000]  Using Provider SQLNCLI                               123  0.355237
    4 ETW000  [dev trc     ,00000]  OpenOledbConnection: MARS property was set successfully.
    4 ETW000                                                                             214  0.355451
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush return code: 0x80040e14 Stmt: [if user_name() != 'prd' setuser 'prd']
    4 ETW000                                                                           14045  0.369496
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush: line 6324. hr: 0x80040e14 Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             128  0.369624
    4 ETW000  [dev trc     ,00000]  sloledb.cpp [ExecuteAndFlush,line 6324]: Error/Message: (err 15157, sev 0), Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             141  0.369765
    4 ETW000  [dev trc     ,00000]  Procname: [ExecuteAndFlush - no proc]                 38  0.369803
    4 ETW000  [dev trc     ,00000]  setuser 'prd' failed -- connect terminated            53  0.369856
    4 ETW000  [dev trc     ,00000]  Using Provider SQLNCLI                               886  0.370742
    4 ETW000  [dev trc     ,00000]  OpenOledbConnection: MARS property was set successfully.
    4 ETW000                                                                             226  0.370968
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush return code: 0x80040e14 Stmt: [if user_name() != 'prd' setuser 'prd']
    4 ETW000                                                                            8706  0.379674
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush: line 6324. hr: 0x80040e14 Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             122  0.379796
    4 ETW000  [dev trc     ,00000]  sloledb.cpp [ExecuteAndFlush,line 6324]: Error/Message: (err 15157, sev 0), Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             145  0.379941
    4 ETW000  [dev trc     ,00000]  Procname: [ExecuteAndFlush - no proc]                 37  0.379978
    4 ETW000  [dev trc     ,00000]  setuser 'prd' failed -- connect terminated            53  0.380031
    4 ETW000  [dev trc     ,00000]  Using Provider SQLNCLI                              6315  0.386346
    4 ETW000  [dev trc     ,00000]  OpenOledbConnection: MARS property was set successfully.
    4 ETW000                                                                             229  0.386575
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush return code: 0x80040e14 Stmt: [if user_name() != 'prd' setuser 'prd']
    4 ETW000                                                                            8701  0.395276
    4 ETW000  [dev trc     ,00000]  ExecuteAndFlush: line 6324. hr: 0x80040e14 Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             122  0.395398
    4 ETW000  [dev trc     ,00000]  sloledb.cpp [ExecuteAndFlush,line 6324]: Error/Message: (err 15157, sev 0), Setuser failed because of one of the following reasons: the database principal 'prd' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
    4 ETW000                                                                             144  0.395542
    4 ETW000  [dev trc     ,00000]  Procname: [ExecuteAndFlush - no proc]                 34  0.395576
    4 ETW000  [dev trc     ,00000]  setuser 'prd' failed -- connect terminated            53  0.395629
    4 ETW000  [dev trc     ,00000]  failed to establish conn. 0                         6497  0.402126
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error 0      performing CON [dblink#3 @ 431]
    4 ETW000                                                                           11973  0.414099
    4 ETW000  [dblink      ,00431]  ***LOG BY0=><message text not available> [dblink#3 @ 431]
    4 ETW000                                                                              55  0.414154
    2EETW169 no connect possible: "DBMS = MSSQL                            ---  SERVER = 'PSPRD1' DBNAME = 'PRD'"
    Best regards
    suresh

  • Commom errors while DB Backup & Restoration  using SQL server 2005

    Hi all,
    Thanks for your support,
    Please let me know what are the common errors during Backup and Restore using MS SQL Server 2005, Please let me know atleast 3 for Backup and 3 for Restoration, hope that you will help me
    Regards
    Raj

    Ehhhh.... Noone is going to paint you the scenarios.... check the Backup and Restore guide both have troobleshoot areas.
    Regards
    Juan

  • Restoring a SQL Server 2005 DB to a SQL Server 2014 install, is there any way to prevent it from being upgraded

    Does anyone know if there is a flag I can use to prevent a SQL Server 2005 database from being upgraded to SQL 2014 when it is restored to a 2014 instance?
    Don't ask why, I just need to know if this is possible or if 2005/8 DB's are required to be upgraded if they are going to run on SQL 2012/2014 instances. The documentation seems to say this is so, I just want to verify that.

    First: You cannot directly restore a 2005 database to
    2014. MS supports migration over 3 SQL Server version steps; means you can restore 2005 to 2008/2008R2/2012, but not to 2014. You have to do a migration step between.
    Olaf I was looking for this today, because I'm working with a new customer that have SQL 2005 and I have SQL 2014. And needed to restore a backup form the production server in my test server.
    When I read what you write I think, oh no!! I have to install SQL 2012 in my server. But that it's not an option for me, and I say let me try to restore the DB first in 2014 and if not work install 2012.
    You can restore a 2005 database to 2014 directly, and it works.
    For reference the version number in the servers 2005 (9.0.4035 SP3) and 2014 (12.0.2000 RTM)
    This is not related in any way to the original question that you answered (the file format will be upgraded to the new motor, that is sure).
    I put this lines because in the future there will be some people searching about if possible to restore a 2005 DB to 2014, and like me will read your lines and think it's not possible and that can make a decision to buy 2012 and not 2014 to that new server they
    will migrate.
    Don't forget to mark the best replies as answers!

  • Issue in rebuilding index after restoring database from sql server 2005 to 2012

    Hi All,
    We have recently restored a database named DBA_admin from our sql server 2005 instance to sql server 2012 and we have added the database to out weekly maintenance plan. After adding the database to maintenance plan the job is failing every weekend due to
    below error message.
    Error message from maintenance plan history:
    Executing the query "ALTER INDEX [PK_lsttype] ON [dbo].[lstAssign..." failed with the following error: "Invalid object name 'admin.dbo.databaselog'.
      ALTER_INDEX - dbo.PK_lsttype". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Below is the code within the maintenance plan which the rebuild index task is using for database dba_admin:
    USE [dba_admin]
    GO
    ALTER INDEX [PK_lstType] ON [dbo].[lstType] REBUILD PARTITION = ALL WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 98, DATA_COMPRESSION = PAGE)
    Please let me know if any one knows how to fix this issue.
    Thanks in Advance.

    Sorry for the confusion.
    Here is what is happening.
    The query is failing while trying to rebuild index [Pk_lsttype] on table [lstAssign], both these objects belong to database
    admin.
    I have verified the old instance there is table databaselog within the database
    dba_admin, but in new SQL instance within the database dba_admin the table is not present.
    Even I'm not sure of what this table databaselog has to do with rebuilding indexes on table
    lstAssign within the admin database.
    I have manually tried to execute the alter index command within the database
    admin and it is failing with the below error.
    ALTER_TABLE - dbo.Query_pnb_sms
    Msg 208, Level 16, State 1, Procedure ddlDatabaseTriggerLog, Line 39
    Invalid object name 'dba_admin.dbo.databaselog'.

  • How to restore SQL Server 2008 database to SQL Server Express 2012

    How to restore SQL Server 2008 database to SQL Server Express 2012.
    I BACKED UP a SQL Server 2008 database from work, which runs the enterprise version of 2008, and I tried to RESTORE it to my new 64-Bit home PC which is running the new SQL Server Express 2012 64-Bit (Advanced Edition).
    But if fails. I get the following message text.
    Can anyone help me please. I thought restoring a 2008 database to the later version 2012 would be possible.
    Here is the error message. Thanks.
    TITLE: Microsoft SQL Server Management Studio
    Restore of database failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)
    ADDITIONAL INFORMATION:
    System.Data.SqlClient.SqlError: The database was backed up on a server running version 8.00.2039. That version is incompatible with this server, which is running version 11.00.3128. Either restore the database on a server that supports the backup, or use a
    backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended)

    ADDITIONAL INFORMATION:
    System.Data.SqlClient.SqlError: The database was backed up on a server running version 8.00.2039. That version is incompatible with this server, which is running version 11.00.3128. Either restore the database on a server that supports the
    backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended)
    Are you sure your database is SQL server 2008 from error message it seems your SQL server version is 2000.I guess you have multiple versions of SQL server.
    AFAIK you cannot restore backup of SQL server 2000 to 2012 directly .Restore it first to SQL 2008/2008R2 or 2005 then take backup again of new database created and then you would be able to restore it on 2012.Its kind of intermediate way
    Also make sure your DB size is less than 10 G as max DB size supported by Express edition is 10 G and if your DB size is more than 10 G restore will fail.
    You are also trying to restore enterprise DB backup on express edition so you will loose enterprise features on express edition
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • How to attached a sql server 2008 database on sql server 2005

    Hi,
    I have a backup of database designed over sql server 2008. I need to attacched this on a machine where sql server 2005 is installed and I am getting the message while attaching the database.
    "The database can not be opened because it is version 661.
    the server supports version 611 and earlier"

    You need to install/have another instance of SQL Server 2008, restore over there the database and perhaps create a SSIS package to move objects and data into SQL Server 2005
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to enable high availability on SQL Server 2005 with Windows Server 2008 Enterprise R2

    Dear Folks,
    I would like to ask you about this thing. I'm working for IT department for bank in Myanmar. Our bank have up to 96 branches across all of Myanmar including H.O. We are using Microsoft SQL Server 2005 with Windows Server 2008 for our banking
    information system. My main problem is having to backup and restore the database backup files every time the servers in branches goes down for whatever reasons. I want to deploy this feature of high availability and failover cluster using Windows Server 2008
    and SQL Server 2005. Our branches have 2 Servers. One is for Primary and other is for Backup. What I want to do is that, I want to change Backup Server to Primary Server whenever the Primary Server goes down for whatever reasons. All the working data and databases
    from Primary will immediately replicated into Backup Server along with all the IP information of Primary Server. Please give me step by step guide for this process.

    Try below
    http://blogs.msdn.com/b/cindygross/archive/2009/10/23/checklist-for-installing-sql-server-2005-as-a-clustered-instance.aspx
    I will recommend you to upgrade SQL server to newer version for support as well as flexibility.
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • I plan to upgrade the SSRS 2005 SP2 enterprise edition in our internal web server to 2005 SP4, the Reporting server database is hosted in another sql server in sql server 2005 SP4. Do I need to do anything on the reporting server database side?

    My question is what the steps do I need to take to upgrade SSRS from 2005 SP2 to SP4.  The web server that host the SSRS is in 2005 SP2, and the OS is in window 2003. 
    Our SSRS report server and report server database are in different servers.  The SSRS in the web server is in 2005 SP2 enterprise edition, the report server database is in sql server 2005 SP4 enterprise edition.
    To upgrade the SSRS in web server from 2005 sp2 to sp4, do I need to backup/restore the encryption key?  Nothing will be changed in the report server database.  We will still pointing to the same database in the current server, all
    I wanted to do is performing a inplace upgrade of SSRS from 2005 SP2 to SP4.  
    Any response will be greate appreciated.  Thank you!
    Li-hui Chen

    Hi Lihui Chen,
    According to your description, you want to install the Services Pack 4 for SQL Server. Right?
    In SQL Server, Services Packs are used for fixing issues of current version product. It's not an Upgrade, you don't have to backup/restore your encryption key. You just need to download the Service Pack 4 on:
    Microsoft SQL Server 2005 Service Pack 4 RTM  . Please make sure you have administrative rights on the computer to install SQL Server 2005 SP4. For more information, see links below:
    How to obtain the latest service pack for SQL Server 2005
    List of the issues that are fixed in SQL Server 2005 Service Pack 4
    SQL Server 2005 SP4, KBA 2463332, Installation Issues
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Moving from SQL server 2005 to SQL server 2008 ... for a MS/SQL newbie.

    Hello,
    I am in charge of moving an existing SAP NW BI (SPS20) from a MS SQL Server 2005 database on Windows Server 2003 (x864/64 bit) Platform to a MS SQL Server 2008 database/Windows Server 2008 Platform (x64/64 bit).
    The SID of the SAP system will remain the same.
    The thing is  that I have always worrked so far on Oracle/Unix environements, windows/MSSQL is an entire new world for me,
    so I am quite worried.
    I  have read many sap notes/installation guides/forum posts regarding this operation, I will describe here my understanding
    of the techinical operations that I will need to perfrom.
    Could you correct me if I am wrong, as well as give me your comments ?
    1/ I will need to perform an SQL server database copy within a homogeneous system copy.
    2/First ,I'll have to install on the target environnement the SQL server 2008 database. I'll have to install the SQL Server Database Software with SQL4SAP (no need to install the database server software manually, right ?). Afterwards, I'll install on the target environnent, SAP Netweaver 7.0 SR3 with a modified Instalaltion Master DVD.
    3/ On the source environement, I'll perfrom a database backup of the SQL Server 2005 system and restore the database on the target environement. since I choose to perfrom a restore of the database , there is no need to follow all the steps described in sap note 151603 :determine the file structure of the source database, create the directory structure for the target database, etc ...
    4/ Once the restoration is finished, I use SAPINST and finish the homogeneous copy :  >additional sofware->system copy>target system->central system --> Based on AS Abap --central installation
    Your comments are welcome.
    Thank you for your attention
    Best Regards.
    Raoul

    Hi Raoul,
    you also need a modified Kernel DVD for the installation on SQL 2008 (see SAP Note 1152240).
    And don't forget to install and patch the Visual Studio c++ Runtime (also described in that note).
    I also would recommend to restore the backup and then install SAP NW 7.0 SR3 and use the restored SQL 2008 database.
    So the basic steps are:
    1. Perform backup and restore to SQL 2008
    1.1 Install SQL 2008 with SQL4SAP
    1.2 Backup old database
    1.3. Restore backup on SQL 2008
    2. Install VC runtime on Win 2008
    3. Create modified Kernel DVD
    4. Create modified Master DVD
    5. Perform system copy target installaton with - additional sofware->system copy>target system--->central system --> Based on AS Abap --central installation and use the SQL 2008 database
    You could also use SQL Server 2008 R2 which was release last month.
    Please also check Note 1476928
    Best,
    Sebastian Dusch

  • Log File Issue In SQL server 2005 standard Edition

    We have database of size 375GB .The data file has 80 GB free space within .When trying to rebuild the index we had 450 GB free space on the disk where Log file is residing.The rebuild index activity failed due to space issue.added more space and got the
    job done successfully
    The Log file has grow up to 611GB to complete the rebuild index.
    version :SQL server 2005 Standard Edition .Is ther a way to estimate the space required for rebuild index in this version.
    I am aware we notmaly allocate 1.5 times of data file.But in this case It was totaly wrong.
    Any suggestion with examples would be appreciated.
    Raghu

    OK, there's a few things here.
    Can you outline for everybody the recovery model you are using, the frequency with which you take full, differential and transaction log backups.
    Are you selectively rebuilding your indexes or are you rebuilding everything?
    How often are you doing this? Do you need to?
    There are some great resources on automated index maintenance, check out
    this post by Kendra Little.
    Depending on your recovery point objectives I would expect a production database to be in the full recovery mode and as part of this you need to be taking regular log backups otherwise your log file will just continue to grow. By taking a log backup it will
    clear out information from inactive VLF's and therefore allow SQL Server to write back to those VLF's rather than having to grow the log file. This is a simplified version of events, there are caveats.
    A VLF will be marked as active if it still has an open transaction in it or there is a HA option that still requires that data to be available as that data has not been copied to another node yet.
    Most customers that I see take transaction log backups every 15 - 30 minutes, but this really does depend upon how much data your company can afford to lose. That's another discussion for another day.
    Make sure that you take a transaction log backup prior to your job that does your index rebuilds (hopefully a smart job not a sledge hammer job).
    As mentioned previously swapping to bulk logged can help to reduce the size of the amount of information logged during index rebuilds. If you do this make sure to swap back into the full recovery model straight after and perform a full backup. There are
    problems with the ability to do point in time restores whilst in the bulk logged recovery model, so you need to reduce the amount of time you use it.
    Really you also need to look at how your indexes are created does the design of them lead to them being fragmented on a regular basis? Are they being used? Are there better indexes out there that can help performance?
    Hopefully that should put you on the right track.
    If you find this helpful, please mark the post as helpful,
    If you think this solves the problem, please propose or mark it an an answer.
    Please provide details on your SQL Server environment such as version and edition, also DDL statements for tables when posting T-SQL issues
    Richard Douglas
    My Blog: Http://SQL.RichardDouglas.co.uk
    Twitter: @SQLRich

  • Steps to migrate Project Server 2007 from SQL Server 2005 to SQL Server 2008?

    We need to migrate Project server 2007 from SQL Server 2005 to SQL Server 2008.
    1. Is it as simple as doing backup and restore of databases and pointing Project Server to the new DB server? Or there are some specific steps that should be followed?
    2. Article at
    http://technet.microsoft.com/en-us/library/dd207290(office.12).aspx is about moving databases from one DB server to another (same versions). At one place, it mentions to
    backup all databases but at another place it mentions that
    You should only back up the Draft and Published databases from the source database server.
    What should be done when moving from 2005 to 2008?
    Regards,
    Amit
    Gupta

    High Level step you can get this form  Tech net or MSDN too
    Shut down the SharePoint servers (App / Web)
    backup all of the SharePoint and Project
    Server databases from the SQL 2005 server
    copy these over to the new SQL 2008 server and restore all of
    the databases with the same names
    script out all of the logins used by SharePoint/PS from the SQL 2005 server and create these on the SQL 2008 server
    script out the Delete expired sessions SQL job from the SQL 2005 server and create this on the SQL 2008 server - or create them manually on the SQL 2008 server
    repoint the SQL server DNS Alias from the SQL 2005 server to the SQL 2008 server, if SharePoint and Project Server was installed using the actual SQL server name and no alias, you can create a DNS alias for the old SQL 2005 server name that points to the SQL
    2008 server. This is so that the SharePoint servers can still connect to the same SQL server name
    Start up the SharePoint servers
    kirtesh

  • Upgrade data base from sql server 2005 to sql server2008

    Hi guys,
    What is the best way for upgrade my SQL Server 2005 data base to SQL 2008?

    It depends on how you want migrate, in-place or side-by-side?
    In-place: Run a backup of all databases and then install the new SQL Server version
    Side-by-side: Install the new SQL Server, backup all database of old SQL Server and restore them on the new one. Then copy all logins from old to new server.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • How to Write Log Message in a XML Data Source Report

    Hi Friends, Can anyone help me out what is the process of writing a log file in the XML Data Source Report. for eg: in Plsql we use FND_LOG.PUT_LINE to print the Log message in the Concurrent Request Output. in the similar manner, when we develop a r

  • ITunes for 64bit Windows 7 Driver/CD/DVD/Drive Issues-

    Hi There I am sure that there are many many users out there suffering the same frustration as me in regard to ITunes just not working properly with Windoews 7 (64Bit). I have been trying to solve the mystery of "ITunes for Windows Registry Settings W

  • My email on my wifes phone?

    Let me start by saying my wife and i both have 3gs phones and SHARE an itune account. So, i either log in with my email or hers depending on whos phone is getting synced. Now for my question..........I just went on to my wifes phone to update her app

  • How can i get the 6.1.3 ipsw for iphone 4 sprint (cdma)

    how can i get the 6.1.3 ipsw for iphone 4 sprint (cdma)

  • Quarter to date and year to date

    i need to create a formula that if the end user selects parameter  QTD, the report should retrieve all records where the effective date  is in the current quarter. having trouble with that anyone help?  The following is somewhat working, but i need t