Master Database Rebuild failed

Hi All,
We have master Database corruption and there is no backup of it, so I have to rebuild the master database..And when i gave the command to rebuild 
1. No error was thrown in Command prompt
2. SQL server started to run again.
3. I am unable to login even though I gave my windows login in the /SQLSysAdminAccounts
When I see the log detail it shows failed 
Detailed results:
  Feature:                       Database Engine Services
  Status:                        Failed: see logs for details
  MSI status:                    Passed
  Configuration status:          Failed: see details below
  Configuration error code:      0xDC80C325
  Configuration error description: Access is denied
  Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140901_082201\Detail.txt
And in Detail.Txt this is the error
2014-09-01 08:22:48 Slp: Error result: -595541211
2014-09-01 08:22:48 Slp: Result facility code: 1152
2014-09-01 08:22:48 Slp: Result error code: 49957
2014-09-01 08:22:48 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine 
2014-09-01 08:22:48 Slp: Sco: Attempting to open registry subkey 
2014-09-01 08:22:48 Slp: Sco: Attempting to open registry subkey Software\Microsoft\PCHealth\ErrorReporting\DW\Installed
2014-09-01 08:22:48 Slp: Sco: Attempting to get registry value DW0201
2014-09-01 08:22:48 Slp: Submitted 1 of 1 failures to the Watson data repository

Hi Hemanth,
Based on your description, my understanding is that you encounter a failure when rebuilding master database.
According to the error message, it might be caused by several reasons. There are some proposals for you troubleshooting this issue as follows.
1. Make sure that your SQL Server installation package is not damaged.
2. Make sure that your account has admin permissions. And confirm that the account has SeDebugPrivilege security privilege, you can check it in Group Policy.
Start | Run | Type: gpedit.msc | OK | Navigate to Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Debug programs
For more details about the error, you can review this similar thread:
Access is denied error installing SQL Server 2008 on Windows 7.
Thanks,
Lydia Zhang

Similar Messages

  • Master database Rebuild

    hi Team,
    if we Rebuild the MASTER database [model and msdb ] re-created or not? 
    if rebuild the Master database internally what will be happen.
    Thanks,

    Rebuilding master is actually re-builts all the system databases from the scratch just like a fresh installation. 
    After rebuilding you might need to restore/attach the user databases.
    Internally it resets all the configurations and properties of a SQL Instance
    --Prashanth

  • Rebuild System Database are failing

    Hello, 
    I am trying to rebuild system database after a DR Scenario by running the below. 
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    It takes me to back to the command prompt as if it was successful.
    However event log says:
    Error 2(The system cannot find the file specified.) occurred while opening file 'C:\Program Files\Microsoft SQL Server\MSSQL11.CORPPLN\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the
    error. Verify your startup options, and correct or remove them if necessary.
    and the log file summary says:
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2068643839
      Exit facility code:            1203
      Exit error code:               1
      Exit message:                  Failed: see details below
      Start time:                    2014-11-18 12:18:14
      End time:                      2014-11-18 12:18:20
      Requested action:              ComponentUpdate
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\WatsonX64_Cpu64_1_ComponentUpdate.log
      Exception help link:           http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.2531.0
    Machine Properties:
      Machine name:                  CORPPLN-SQL
      Machine processor count:       2
      OS version:                    Windows Server 2008
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Package properties:
      Description:                   SQL Server Database Services 2008
      SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
      ProductName:                   SQL2008
      Type:                          RTM
      Version:                       10
      SPLevel:                       0
      Installation edition:          EVAL
    User Input Settings:
      ACTION:                        ComponentUpdate
      CONFIGURATIONFILE:             
      HELP:                          False
      INDICATEPROGRESS:              False
      PID:                           *****
      QUIET:                         True
      QUIETSIMPLE:                   False
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\ConfigurationFile.ini
    Detailed results:
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\SystemConfigurationCheck_Report.htm
    So following Microsoft recommendation, I've uninstalled the SQL Native Client it still failing with exactly same message. 
    COuld anyone kindly advise as I've ran out of ideas?
    Best regards, 
    Mohan

    Hello, 
    I am trying to rebuild system database after a DR Scenario by running the below. 
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    It takes me to back to the command prompt as if it was successful.
    However event log says:
    Error 2(The system cannot find the file specified.) occurred while opening file 'C:\Program Files\Microsoft SQL Server\MSSQL11.CORPPLN\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the
    error. Verify your startup options, and correct or remove them if necessary.
    Hi,
    Error 2 means system cannot find the file specified. Can you make sure about location of master database file.
    plus
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    In above query why are you going to release folder you must go to SQL Server 2008 r2 folder
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2
    I guess script should be like
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    Setup.exe is in SQLServer 2008 r2 folder not in release folder
    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 Article
    MVP
    Hi Shanky_621, 
    I do not have a
    SQL Server 2008 r2 folder with in the release folder. 
    Currently I am trying it from DVD which Alberto Morillo has suggested. 
    Best regards, 
    Mohan

  • Rebuild master database on MSSQL Server Edition 2012

    Hi There,
    Can somebody please tell me the steps to rebuild master database from a corrupted installation for MSSQL Server 2012?
    Thanks,
    Ashish Tripathi
    Regards, Ashish Tripathi

    Hello,
    Please read the following article.
    https://msdn.microsoft.com/en-us/library/dd207003(v=sql.110).aspx
    An alternative may be the following procedure.
    http://blogs.technet.com/b/fort_sql/archive/2011/02/01/the-easiest-way-to-rebuild-the-sql-server-master-database.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • If my master database got crashed how will rebuild it?

    Hi DBA'S,
    If
    my master database got crashed how will rebuild it?
    Please provide me a scenario based answer if  it is possible.

    You would find below article more interactive
    http://www.codeproject.com/Tips/537811/Rebuilding-Master-Database-in-SQL-Server?
    Please post question which you seem difficult its very easy question and you would have found lot of article on net. If you are preparing for interview read the MSDN document, download sql server express or enterprise evaluation(both are free)  install
    it and try rebuilding master database your self
    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 Article
    MVP

  • SP2010 Application Pool Service Account fails to login to master database on a SQL Server mirror

    This is a weird problem that just started showing up, cause unknown. Could go in this forum or in SQL 2008...I put it here because for me the context is SP2010.
    We have 2 SQL servers (2008 R2 with SP1). Each server has 2 named instances, the second being a mirror for the other server's main instance. In other words, the named instance /SQL has a /SQLMirror on the other server and vice versa.
    The error is: Login failed for user 'domain\sharepointapppoolaccount'. Reason: Failed to open the explicitly specified database.
    As best I can tell, the specified database is "master" on the mirror instance. I am unaware of any reason for the app pool account to be connecting to the master on the mirror (the master database itself is NOT mirrored). There is nothing
    in the user mapping that would suggest any reason to try connecting. And there are no equivalent errors in the main instance (SQL).
    SP2010 Event ID 18456 - Why would a service account try to connect to the master database?

    Hi,
    When the principal server(SQL) disconnects clients from the principal database, then the mirror server(SQL) will take charge of clients’ requests.
    So the error is regarding to the mirror server may be due to that the mirror server is taking charge of the clients’ request instead of the principal server when the principal is becomes unavailable.
    I recommend to grant sysadmin permissions to the service account in SQL(mirror server) to see if the issue still occurs.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Is it possible to create a new table in the master database with SSMS ?

    Hello ,
    I have problems with this thread :
    http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/5153c43b-7844-41c4-a414-d14730abe435/
    If no user database has been created , in SSMS , we can see only the 5 system databases ( master, msdb , tempdb... ).
    Logically , the user should connect automatically on the Master database ( if the user is the same as this used to install a new SQL Server instance, this user should be sysadmin that's to say he/she has all possible permissions and especially dbcreator ).
    Is it true that it is impossible to create a new table on the master database ?
    I have done many researches about this possibility , all I have found is the advice : don't touch to the master database. This database is used to store critical information about the instance and its user databases. Even in the last book of Kalen Delaney
    about SQL Server 2012 Internals , I have found nothing clear about the creation of tables in this database ( and what about the other system databases ? I am excluding tempdb ).
    If someone has an idea about this thread and my questions , I would be thankful for a reply on this thread or on the related thread in the SQL Server Express Forum ( with my poor written English , I am not sure to have poster in a correct and understandable
    way ).
    If you think that this thread is not in the good forum , a moderator of this forum can move this related thread ( I have not done the move as I am not sure which is the good forum Database Engine or Transact-SQL ... )
    Thanks beforehand and have a nice day.
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

    >>Logically , the user should connect automatically on the Master database ( if the user is the same as this used
    to >>install a new SQL Server instance, this user should be sysadmin that's to say he/she has all possible permissions and >>especially dbcreator ).
    If you add the current user during the installation you can have it as system admin , or you can add him/her later on
    in SQL Server. BTW regarding dbcreator I have wrote some blog , need to read... :-)
    http://sqlblog.com/blogs/uri_dimant/archive/2010/09/02/be-careful-to-grant-dbcreator-server-role-to-the-user.aspx
    You can (if you have needed permissions) to create objects in master database, usually I create objects for instance maintenance (like rebuild indexes...) 
    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

  • Attempt to fetch logical page (6:78) in database 5 failed.

    Hello every one:
    I am upgrading to SQL 2005 using sql 2000 datafiles in clustered environment.
    I have followd note 799058 hemogenious system copy. However after attaching the database, we are getting the following error message, when running SQL 2005 upgrade tools.
    I ran dbcheck on source database there is no issue, However dbcheck is failing in new database. I tried dbcheck with repais fast and dbcheck with data loss, however both attempts have failed with exact same message.
    I am not sure how to handle this error.
    Please advice.
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select (@@microsoftversion / 65536) / 256
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select count(*) from master..sysdatabases where name = 'R3T'
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select count(*) from R3T..sysusers where name = 'r3t'
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select count(*) from master..sysprocesses where dbid = db_id('R3T') and program_name like 'R3%' and uid = (select uid from R3T..sysusers where name = 'r3t')
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select (@@microsoftversion / 65536) / 256
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    DECLARE @n NVARCHAR(4000) DECLARE @ns NVARCHAR(4000) SET @ns = ''
    DECLARE c CURSOR FOR
    select case when serverproperty('Collation') is NULL then '' else convert(sysname, serverproperty('Collation')) end
    union all select case when serverproperty('Edition') is NULL then '' else convert(sysname, serverproperty('Edition')) end
    union all select case when serverproperty('InstanceName') is NULL then '' else convert(sysname, serverproperty('InstanceName')) end
    union all select case when serverproperty('IsClustered') is NULL then '' else convert(sysname, serverproperty('IsClustered')) end
    union all select case when serverproperty('IsFullTextInstalled') is NULL then '' else convert(sysname, serverproperty('IsFullTextInstalled')) end
    union all select case when serverproperty('IsIntegratedSecurityOnly') is NULL then '' else convert(sysname, serverproperty('IsIntegratedSecurityOnly')) end
    union all select case when serverproperty('IsSingleUser') is NULL then '' else convert(sysname, serverproperty('IsSingleUser')) end
    union all select case when serverproperty('IsSyncWithBackup') is NULL then '' else convert(sysname, serverproperty('IsSyncWithBackup')) end
    union all select case when serverproperty('MachineName') is NULL then '' else convert(sysname, serverproperty('MachineName')) end
    union all select case when serverproperty('NumLicenses') is NULL then '' else convert(sysname, serverproperty('NumLicenses')) end
    union all select case when serverproperty('ProcessID') is NULL then '' else convert(sysname, serverproperty('ProcessID')) end
    union all select case when serverproperty('ProductVersion') is NULL then '' else convert(sysname, serverproperty('ProductVersion')) end
    union all select case when serverproperty('ProductLevel') is NULL then '' else convert(sysname, serverproperty('ProductLevel')) end
    union all select case when serverproperty('ServerName') is NULL then '' else convert(sysname, serverproperty('ServerName')) end
    union all select case when serverproperty('Release') is NULL then '' else convert(sysname, serverproperty('Release')) end
    union all select case when serverproperty('Patch') is NULL then '' else convert(sysname, serverproperty('Patch')) end
    union all select case when serverproperty('IsSysAdmin') is NULL then '' else convert(sysname, serverproperty('IsSysAdmin')) end
    OPEN c FETCH NEXT FROM c INTO @n
    WHILE @@FETCH_STATUS = 0
    BEGIN set @ns = @ns + @n + ';' FETCH NEXT FROM c INTO @n END
    CLOSE c DEALLOCATE c select @ns
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select IS_SRVROLEMEMBER('sysadmin')
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select count(*) from master..sysdatabases where name = 'R3T'
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select count(*) from R3T..sysusers where name = 'r3t'
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select count(*) from R3T..sysusers where name = 'r3t'
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    use R3T
    declare @info nvarchar(2000)
    declare @cs nvarchar(100)
    declare @tmp nvarchar(200)
    declare @rel nvarchar(100)
    declare @patch nvarchar(100)
    declare @sql nvarchar(2000)
    declare schema_cursor cursor for
    select name
    from dbo.sysusers
    where islogin = '1'
    open schema_cursor
    select @info = ''
    fetch next from schema_cursor into @cs
    while @@fetch_status = 0
    begin
    select @info = @info + @cs
    select @info = @info + ':'
    select @info = @info + cast(count(*) as varchar(20)) from sysobjects where uid = user_id(@cs) and name not in ('dtproperties')
    select @info = @info + ':'
    select @info = @info + cast(count(*) as varchar(20)) from sysobjects where uid = user_id(@cs) and type = 'U' and name not in ('dtproperties')
    if exists(select * from sysobjects where name = 'CVERS' and uid = user_id(@cs) and type = 'U')
    begin
    select @info = @info + ':1'
    select @sql = 'select @rel = RELEASE, @patch = EXTRELEASE from ' + @cs + '.CVERS where COMPONENT = ''SAP_BASIS'''
    exec sp_executesql @sql, N'@rel nvarchar(100) output, @patch nvarchar(100) output', @rel output, @patch output
    select @info = @info + ':'
    select @info = @info + @rel
    select @info = @info + ':'
    select @info = @info + @patch
    end
    else select @info = @info + ':0'
    if exists(select * from sysobjects where name = 'BC_CVERS' and uid = user_id(@cs) and type = 'U')
    begin
    select @info = @info + ':1'
    end
    else select @info = @info + ':0'
    select @info = @info + ';'
    fetch next from schema_cursor into @cs
    end
    close schema_cursor
    deallocate schema_cursor
    select @info
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    use [R3T] select count(*) from sysobjects where name like 'Y%' and type='P' and uid=user_id('r3t')
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select count(*) from R3T..sysusers where name = 'SAPR3TDB'
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    DECLARE @n NVARCHAR(4000) DECLARE @ns NVARCHAR(4000) SET @ns = ''
    DECLARE c CURSOR FOR
    select case when serverproperty('Collation') is NULL then '' else convert(sysname, serverproperty('Collation')) end
    union all select case when serverproperty('Edition') is NULL then '' else convert(sysname, serverproperty('Edition')) end
    union all select case when serverproperty('InstanceName') is NULL then '' else convert(sysname, serverproperty('InstanceName')) end
    union all select case when serverproperty('IsClustered') is NULL then '' else convert(sysname, serverproperty('IsClustered')) end
    union all select case when serverproperty('IsFullTextInstalled') is NULL then '' else convert(sysname, serverproperty('IsFullTextInstalled')) end
    union all select case when serverproperty('IsIntegratedSecurityOnly') is NULL then '' else convert(sysname, serverproperty('IsIntegratedSecurityOnly')) end
    union all select case when serverproperty('IsSingleUser') is NULL then '' else convert(sysname, serverproperty('IsSingleUser')) end
    union all select case when serverproperty('IsSyncWithBackup') is NULL then '' else convert(sysname, serverproperty('IsSyncWithBackup')) end
    union all select case when serverproperty('MachineName') is NULL then '' else convert(sysname, serverproperty('MachineName')) end
    union all select case when serverproperty('NumLicenses') is NULL then '' else convert(sysname, serverproperty('NumLicenses')) end
    union all select case when serverproperty('ProcessID') is NULL then '' else convert(sysname, serverproperty('ProcessID')) end
    union all select case when serverproperty('ProductVersion') is NULL then '' else convert(sysname, serverproperty('ProductVersion')) end
    union all select case when serverproperty('ProductLevel') is NULL then '' else convert(sysname, serverproperty('ProductLevel')) end
    union all select case when serverproperty('ServerName') is NULL then '' else convert(sysname, serverproperty('ServerName')) end
    union all select case when serverproperty('Release') is NULL then '' else convert(sysname, serverproperty('Release')) end
    union all select case when serverproperty('Patch') is NULL then '' else convert(sysname, serverproperty('Patch')) end
    union all select case when serverproperty('IsSysAdmin') is NULL then '' else convert(sysname, serverproperty('IsSysAdmin')) end
    OPEN c FETCH NEXT FROM c INTO @n
    WHILE @@FETCH_STATUS = 0
    BEGIN set @ns = @ns + @n + ';' FETCH NEXT FROM c INTO @n END
    CLOSE c DEALLOCATE c select @ns
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select IS_SRVROLEMEMBER('sysadmin')
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    DECLARE @n NVARCHAR(4000) DECLARE @ns NVARCHAR(4000) SET @ns = ''
    DECLARE c CURSOR FOR
    select case when serverproperty('Collation') is NULL then '' else convert(sysname, serverproperty('Collation')) end
    union all select case when serverproperty('Edition') is NULL then '' else convert(sysname, serverproperty('Edition')) end
    union all select case when serverproperty('InstanceName') is NULL then '' else convert(sysname, serverproperty('InstanceName')) end
    union all select case when serverproperty('IsClustered') is NULL then '' else convert(sysname, serverproperty('IsClustered')) end
    union all select case when serverproperty('IsFullTextInstalled') is NULL then '' else convert(sysname, serverproperty('IsFullTextInstalled')) end
    union all select case when serverproperty('IsIntegratedSecurityOnly') is NULL then '' else convert(sysname, serverproperty('IsIntegratedSecurityOnly')) end
    union all select case when serverproperty('IsSingleUser') is NULL then '' else convert(sysname, serverproperty('IsSingleUser')) end
    union all select case when serverproperty('IsSyncWithBackup') is NULL then '' else convert(sysname, serverproperty('IsSyncWithBackup')) end
    union all select case when serverproperty('MachineName') is NULL then '' else convert(sysname, serverproperty('MachineName')) end
    union all select case when serverproperty('NumLicenses') is NULL then '' else convert(sysname, serverproperty('NumLicenses')) end
    union all select case when serverproperty('ProcessID') is NULL then '' else convert(sysname, serverproperty('ProcessID')) end
    union all select case when serverproperty('ProductVersion') is NULL then '' else convert(sysname, serverproperty('ProductVersion')) end
    union all select case when serverproperty('ProductLevel') is NULL then '' else convert(sysname, serverproperty('ProductLevel')) end
    union all select case when serverproperty('ServerName') is NULL then '' else convert(sysname, serverproperty('ServerName')) end
    union all select case when serverproperty('Release') is NULL then '' else convert(sysname, serverproperty('Release')) end
    union all select case when serverproperty('Patch') is NULL then '' else convert(sysname, serverproperty('Patch')) end
    union all select case when serverproperty('IsSysAdmin') is NULL then '' else convert(sysname, serverproperty('IsSysAdmin')) end
    OPEN c FETCH NEXT FROM c INTO @n
    WHILE @@FETCH_STATUS = 0
    BEGIN set @ns = @ns + @n + ';' FETCH NEXT FROM c INTO @n END
    CLOSE c DEALLOCATE c select @ns
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    select IS_SRVROLEMEMBER('sysadmin')
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    exec sp_configure 'show advanced options', 1
    reconfigure with override
    exec sp_configure 'xp_cmdshell', 1
    reconfigure with override
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    exec sp_dbcmptlevel 'R3T', 90
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    use R3T select count(*) from sysobjects where type = 'P' and uid = user_id('r3t')
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    use R3T
    declare @name sysname
    declare allnames cursor for
    select name from sysobjects
    where type = 'P'
    and (name like 'Y%' or name like 'SAP%')
    and uid = user_id('r3t')
    open allnames
    fetch next from allnames into @name
    while (@@fetch_status =0)
    begin
    exec ('drop procedure [r3t].[' + @name + ']')
    fetch next from allnames into @name
    end
    close allnames
    deallocate allnames
    [Microsoft][ODBC SQL Server Driver][SQL Server]Attempt to fetch logical page (6:78) in database 5 failed. It belongs to allocation unit 71905451171905536 not to 281474979397632.
    executeSQL is called with following parameters:
    Server: cacgcbcrr518
    Login: integrated security
    Resultset will not be copied
    Ignore errors is false
    Append results is false
    use R3T select count(*) from sysobjects where type = 'P' and uid = user_id('r3t')
    executeSQL is called with following parameters:

    THIS IS THE SQL ERROR LOGS:
    2008-05-28 15:49:20.79 spid21s     Starting up database 'R3T'.
    2008-05-28 15:49:20.79 spid20s     Starting up database 'msdb'.
    2008-05-28 15:49:20.82 spid20s     1 transactions rolled forward in database 'msdb' (4). This is an informational message only. No user action is required.
    2008-05-28 15:49:20.84 spid20s     0 transactions rolled back in database 'msdb' (4). This is an informational message only. No user action is required.
    2008-05-28 15:49:20.84 spid20s     Recovery is writing a checkpoint in database 'msdb' (4). This is an informational message only. No user action is required.
    2008-05-28 15:49:20.88 spid21s     Analysis of database 'R3T' (5) is 100% complete (approximately 0 seconds remain). This is an informational message only. No user action is required.
    2008-05-28 15:49:20.90 spid21s     1 transactions rolled forward in database 'R3T' (5). This is an informational message only. No user action is required.
    2008-05-28 15:49:21.06 spid21s     0 transactions rolled back in database 'R3T' (5). This is an informational message only. No user action is required.
    2008-05-28 15:49:21.06 spid21s     Recovery is writing a checkpoint in database 'R3T' (5). This is an informational message only. No user action is required.
    2008-05-28 15:49:21.06 spid5s      Recovery of any in-doubt distributed transactions involving Microsoft Distributed Transaction Coordinator (MS DTC) has completed. This is an informational message only. No user action is required.
    2008-05-28 15:49:21.06 spid5s      Recovery is complete. This is an informational message only. No user action is required.
    2008-05-28 15:49:25.60 spid51      Configuration option 'Agent XPs' changed from 0 to 1. Run the RECONFIGURE statement to install.
    2008-05-28 15:49:25.74 spid51      Using 'xpsqlbot.dll' version '2005.90.3042' to execute extended stored procedure 'xp_qv'. This is an informational message only; no user action is required.
    2008-05-28 15:49:25.81 spid51      Using 'xpstar90.dll' version '2005.90.3042' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
    2008-05-28 15:49:25.82 spid51      Using 'xplog70.dll' version '2005.90.3042' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
    2008-05-28 15:58:29.52 spid53      Setting database option SINGLE_USER to ON for database R3T.
    2008-05-28 15:58:29.52 spid53      Setting database option SINGLE_USER to ON for database R3T.
    2008-05-28 15:59:15.77 spid53      Error: 605, Severity: 21, State: 3.
    2008-05-28 15:59:15.77 spid53      Attempt to fetch logical page (6:72) in database 5 failed. It belongs to allocation unit 71905451171905536 not to 281474979397632.
    2008-05-28 15:59:15.78 spid53      DBCC CHECKDB (R3T, repair_fast) WITH all_errormsgs, no_infomsgs executed by sa terminated abnormally due to error state 5. Elapsed time: 0 hours 0 minutes 18 seconds.
    2008-05-28 16:02:17.43 spid54      Error: 605, Severity: 21, State: 3.
    2008-05-28 16:02:17.43 spid54      Attempt to fetch logical page (6:72) in database 5 failed. It belongs to allocation unit 71905451171905536 not to 281474979397632.
    2008-05-28 16:02:17.44 spid54      DBCC CHECKDB (R3T, repair_allow_data_loss) WITH all_errormsgs, no_infomsgs executed by sa terminated abnormally due to error state 5. Elapsed time: 0 hours 0 minutes 10 seconds.
    2008-05-28 16:04:53.26 spid54      Setting database option MULTI_USER to ON for database R3T.
    2008-05-28 16:04:53.26 spid54      Setting database option MULTI_USER to ON for database R3T.
    2008-05-29 00:00:06.31 spid15s     This instance of SQL Server has been using a process ID of 2016 since 5/28/2008 3:49:21 PM (local) 5/28/2008 10:49:21 PM (UTC). This is an informational message only; no user action is required.
    2008-05-29 09:45:59.67 spid54      Error: 605, Severity: 12, State: 3.
    2008-05-29 09:45:59.67 spid54      Attempt to fetch logical page (6:72) in database 6 failed. It belongs to allocation unit 71905451171905536 not to 281474979397632.
    2008-05-29 09:45:59.69 spid54      DBCC CHECKDB (R3T) WITH no_infomsgs executed by sa terminated abnormally due to error state 5. Elapsed time: 0 hours 1 minutes 20 seconds.

  • How do you declare objects in the master database

    I am trying to register our CLR assembly as an unsafe assembly without having to make the database trustworthy.  Since making the database is_trustworthy_on = 1 is not a best practice, and would cause some of our customers (and our development process)
    a little bit of grief.
    I have read a ton about it but am still having trouble.
    The reason the assembly is 'Unsafe' is because it is calling the TimeZoneInfo class to convert between timezones, since we are not yet on UTC dates.  We plan to in the future but that's a big project.
    We are also not using the 'SQLCLR' but rather have written our own class library and just have a project reference to it, which works just the same, but we have found to be better for the C# programmers.
    I am playing with signing the assembly using an SNK file and have figured out what I need to do, including 1) creating a master key, 2) creating an asymmetric key using the same SNK file that signed the assembly, 3) creating a login for the asymmetric key,
    and 4) granting unsafe assembly to the login.
    When I do all that with straight SQL, it actually works!  But I am having trouble fitting this into our SSDT world.
    Should I create a separate SSDT project for items #1 through #4 above, and reference it, and check 'Include composite objects' in our publishing options?  As stated in this blog post though, I'm terrified of messing up the master database, and I'm not
    excited about the overhead of another project, a 2nd dacpac, etc.
    http://blogs.msdn.com/b/ssdt/archive/2012/06/26/composite-projects-and-schema-compare.aspx
    Since we do use a common set of deployment options in a deployment tool we wrote, which does set the 'block on data loss' to false, and the 'drop objects not in source' to true, b/c we drop tables all the time during the course of refactoring, etc. 
    I don't want to drop anything in master though, and I don't want to have to publish it separately if we didn't have to. 
    I suppose I could just have some dynamic SQL in a pre-deployment script that takes care of the master database, but I was trying to do it the 'right' way, in a declarative style, but struggling.
    So, in short, what's the recommended approach for getting an 'unsafe' CLR assembly into an SSDT project?
    The error that started all this was:
    CREATE ASSEMBLY for assembly *** failed because assembly *** is not authorized for PERMISSION_SET = UNSAFE. 
    The assembly is authorized when either of the following is true:
    the database owner (DBO) has UNSAFE ASSEMBLY permission and the database has the TRUSTWORTHY database property on;
    or
    the assembly is signed with a certificate or an asymmetric key that has a corresponding login with UNSAFE ASSEMBLY permission.
    Also, would a certificate be better than an asymmetric key?  I'm not entirely sure of the difference just yet to be honest.
    Thanks,
    Ryan

    After much fighting with this, figured something out as a workaround, and thought I'd share it.
    First, I'm pretty certain the SSDT declarative way for these master objects just doesn't work yet.
    My workaround was to make a pre-deployment script (that runs when we create new databases, as well as for the current release), that takes care of the security items needed to support a signed CLR assembly with unsafe permissions.
    One issue we were running into was when it came to creating the asymmetric key, there are 4 ways to do so, and we didn't want to depend on a hard-coded/absolute file path.  The 4 ways are "From file", "from external file", "from
    assembly", or "from provider".  I still don't 100% understand the from provider way, but ultimately we are actually using the from assembly way, with a little trick/hack I did that allows us to not have to use the 'from file' way and to
    reference a hard-coded path on someone's C:\ drive.  I really really didn't want to do that b/c we create local dev databases all the time and not everyone has the same paths setup.  Also, our databases are deployed on our servers as well as remote-hosted-customer
    servers, and up until now, the database release has not needed file system access.  Even the CLR itself is created using assembly_bits, which is awesome.
    So I thought of something...
    What if I had a simple/temporary assembly, which I create from assembly_bits, use to import the public key from, through the create asymmetric key from assembly command, and then drop as if it never existed?
    Well...it works!
    Here is my current prototype of a pre-deployment script, which I'll go through and cleanup more, but thought I'd share.  I also want to document how I created the temporary assembly_bits in case anyone ever wants or needs to know, even though they really
    shouldn't.  But it should make them feel better.  Basically I just created did this to get them:
    1 - Created a C# Class Library project in the solution.
    2 - Added our .SNK to that project and removed the 'Class1.cs' that it created by default
    3 - Signed that class library with the .SNK
    4 - Added a project reference to that class library from the main database solution.
    5 - Generated a deployment script (but didn't run it) and grabbed the create assembly statement (copy/paste)
    6 - Deleted the temporary project
    7 - Pasted the code I had copy/pasted into the pre-deployment script
    Note that the objects do apparently need to go into MASTER, so at the end of the pre deployment script, I switch back to the automatic [$(DatabaseName)] after first having done USE master.
    Hope this helps someone.  Finally got it!
    BTW - The other way we almost used was to introduce a SqlCmdVariable of $StrongNameKeyFilePath but that would have been a hassle for people to set whenever they got a new machine, etc.
    Thanks,
    Ryan
    PRINT '**************************************************************************'
    PRINT 'Pre\SetupMasterDatabaseKeysAndLoginsIfNecessary.sql'
    PRINT '**************************************************************************'
    PRINT '************************************************************************************'
    PRINT 'If they do not already exist, create the database master key, as well as the asymmetric'
    PRINT 'key, from the Strong-Named File (.SNK) which signed the CLR assembly.  Finally, also'
    PRINT 'create a login from that asymmetric key and grant it the UNSAFE ASSEMBLY permission.'
    PRINT 'This is all necessary b/c the CLR currently has to be referenced for UNSAFE permissions'
    PRINT 'in order to access the TimeZoneInfo class.  This code and these objects can be removed'
    PRINT 'if the system is ever updated to use all UTC dates and no longer requires the TimeZoneInfo class.'
    PRINT '************************************************************************************'
    USE master
    PRINT N'Creating Temporary Assembly [Wits.Database.AsymmetricKeyInitialization]...'
    CREATE ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
        AUTHORIZATION [dbo]
        FROM 0x4D5BlahBlahBlah;
    IF NOT EXISTS (SELECT 1 FROM sys.symmetric_keys WHERE name LIKE '%DatabaseMasterKey%')
        BEGIN
            PRINT 'Creating Master Key...'
            CREATE MASTER KEY
                ENCRYPTION BY PASSWORD = 'I Removed This Part For This Post'
        END
    IF NOT EXISTS (SELECT 1 FROM sys.asymmetric_keys WHERE name = 'ClrExtensionAsymmetricKey')
        BEGIN
            PRINT 'Creating Asymmetric Key from strong-named file...'
            CREATE ASYMMETRIC KEY [ClrExtensionAsymmetricKey]
                FROM ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
        END
    IF NOT EXISTS (SELECT 1 FROM sys.server_principals WHERE type_desc = 'ASYMMETRIC_KEY_MAPPED_LOGIN' AND name = 'ClrExtensionLogin')
        BEGIN
            PRINT 'Creating Login from Asymmetric Key...'
            CREATE LOGIN [ClrExtensionLogin] FROM ASYMMETRIC KEY [ClrExtensionAsymmetricKey]
            PRINT 'Granting Permissions to Login created from Asymmetric Key...'
            GRANT UNSAFE ASSEMBLY TO ClrExtensionLogin
        END
    PRINT N'Dropping Temporary Assembly [Wits.Database.AsymmetricKeyInitialization]...'
    DROP ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
    USE [$(DatabaseName)]

  • Copy Master Database To Another Instance

    At our instasllation we have copied the Master database across instances with success. This makes migrations much easier and it has never caused any issues. However I am concerned whether this is officially supported and if there may be something we are
    not considering that may cause issues in the future. Of course the source and destination SQL Server instances are the same OS and SQL Server versions and the paths of all databases are the same.
    Thank you for your help
    Scott

    Hi,
    I think this method can be used when the backup restore method does not work because of the original database files were corrupted or missing.
    Some interesting articles for your reference:
    The Easiest Way To Rebuild The master Database:
    http://blogs.technet.com/b/fort_sql/archive/2011/02/01/the-easiest-way-to-rebuild-the-sql-server-master-database.aspx
    Restoring Master Database :
    http://msdn.microsoft.com/en-us/library/ms190679.aspx
    How to build system databases:
    http://msdn.microsoft.com/en-us/library/dd207003.aspx
    Hope the information helps.
    Tracy Cai
    TechNet Community Support

  • Ogg-00552 database operation failed

    Please help!!!!
    I’m getting the below error:
    GGSCI (WIN-EG6QL92CF51) 1> dblogin sourcedb HR
    Successfully logged into database.
    GGSCI (WIN-EG6QL92CF51) 2> add trandata dbo.emp1
    2012-03-11 21:00:44 WARNING OGG-00552 Database operation failed: SQLExecDirect
    error: EXECUTE sys.sp_cdc_enable_db
    if 0 = (select st.is_tracked_by_cdc from sys.tables as st where st.object_id = o
    bject_id('dbo.emp1'))
    AND 0 = (select st.is_replicated from sys.tables as st where st.object_id = o
    bject_id('dbo.emp1'))
    BEGIN
    DECLARE @capture_instance sysname = N'OracleGG_' + cast(object_id('dbo.emp1') as
    sysname)
    CREATE TABLE #ggsTabKeys (db sysname, name sysname, owner sysname, column_name s
    ysname, key_seq int, pk_name sysname)
    INSERT INTO #ggsTabKeys EXEC sp_pkeys 'emp1', 'dbo'
    IF 0 = (SELECT COUNT(*) FROM #ggsTabKeys)
    BEGIN
    INSERT INTO #ggsTabKeys
    SELECT TOP (1) DB_NAME(), '', '', name, 1, '' FROM sys.columns sc
    WHERE sc.object_id = OBJECT_ID('dbo.emp1')
    AND is_computed = 0
    AND max_length > 0
    ORDER BY max_length
    END
    IF 0 = (select COUNT(*) from #ggsTabKeys)
    BEGIN
    INSERT INTO #ggsTabKeys
    SELECT TOP (1) DB_NAME(), '', '', name, 1, '' FROM sys.columns sc
    WHERE sc.object_id = OBJECT_ID('dbo.emp1')
    AND is_computed = 0
    AND max_length > 0
    ORDER BY max_length
    END
    DECLARE @cols NVARCHAR(max)
    SELECT @cols = STUFF(( SELECT
    ',' + QUOTENAME( t.column_name)
    FROM #ggsTabKeys AS t
    FOR XML PATH('')
    ), 1, 1, '')
    execute sys.sp_cdc_enable_table
    @source_schema = N'dbo'
    , @source_name = N'emp1'
    , @role_name = NULL
    , @captured_column_list = @cols
    , @capture_instance = @capture_instance
    IF EXISTS(SELECT OBJECT_ID('tempdb..#ggsTabKeys'))
    BEGIN
    DROP TABLE #ggsTabKeys
    END
    end
    . ODBC error: SQLSTATE 37000 native database error 22988. [Microsoft][ODBC SQL S
    erver Driver][SQL Server]This instance of SQL Server is the Express Edition with
    Advanced Services (64-bit). Change data capture is only available in the Enterp
    rise, Developer, and Enterprise Evaluation editions.
    2012-03-11 21:00:44 WARNING OGG-00782 Error in changing transaction logging fo
    r table: 'dbo.emp1'.
    ERROR: ODBC Error occurred. See event log for details..
    GGSCI (WIN-EG6QL92CF51) 3>
    Caused?
    I use sql server not express edition
    Edited by: 891982 on 11 มี.ค. 2555, 8:09 น.

    thank you
    At present:I install Developer Edition
    but
    GGSCI (WIN-EG6QL92CF51) 2> add trandata emp
    2012-03-14 15:19:28 WARNING OGG-00552 Database operation failed: SQLExecDirect
    error: if not exists ( SELECT * FROM master.dbo.sysdatabases WHERE
    name = N'HR' collate database_default AND (category & 1) = 1)begin exe
    c master..sp_replicationdboption @dbname = N'HR' , @optname = N'publish' ,
    @value = N'true'
    end
    if not exists (select * from syspublications where name = N'GoldenGate HR Publis
    her')
    begin
    exec sp_addpublication @publication = N'GoldenGate HR Publisher', @description =
    N'GoldenGate Publisher for [HR] Database', @sync_method = N'native', @retention
    = 0, @allow_push = N'true', @allow_pull = N'true', @allow_anonymous = N'false',
    @enabled_for_internet = N'false', @snapshot_in_defaultfolder = N'true', @compre
    ss_snapshot = N'false', @ftp_port = 21, @ftp_login = N'anonymous', @allow_subscr
    iption_copy = N'false', @add_to_active_directory = N'false', @repl_freq = N'cont
    inuous', @status = N'active', @independent_agent = N'true', @immediate_sync = N'
    false', @allow_sync_tran = N'false', @autogen_sync_procs = N'false', @allow_queu
    ed_tran = N'false', @allow_dts = N'false', @replicate_ddl = 1, @allow_initialize
    frombackup = N'true', @enabled_for_p2p = N'false', @enabled_for_het_sub = N'fa
    lse'
    end. ODBC error: SQLSTATE 37000 native database error 20028. [Microsoft][ODBC SQ
    L Server Driver][SQL Server]The Distributor has not been installed correctly. Co
    uld not enable database for publishing.
    2012-03-14 15:19:28 WARNING OGG-00782 Error in changing transaction logging fo
    r table: 'dbo.emp'.
    ERROR: ODBC Error occurred. See event log for details..
    GGSCI (WIN-EG6QL92CF51) 3>
    I don't know about?
    I suspect about Control Panel -> Administrative Tools -> Data Sources (ODBC)  select ?
    I select Name: HR and select Server:(local) select Finish
    thankyou stevencallan
    use sql server 2005 Developer Edition in window server 2008 R2
    but edit error in the at present: OGG-00987 Oracle GoldenGate Command Interpreter for ODBC: GGSCI command (Administrator): add trandata emp.
    Edited by: 891982 on 14 มี.ค. 2555, 0:54 น.
    Edited by: 891982 on 14 มี.ค. 2555, 1:20 น.
    Edited by: 891982 on 14 มี.ค. 2555, 2:34 น.

  • Exchange Add Mailbox Database Copy fails.

    I'm recovering from a server failure on my Exchange System and while I've been able to rebuild the server an integrate it into the Exchange System and the DAG. When I attempt to replicate any of the databases, it fails. It creates a directory on the new Exchange server in the right place, but the database isn't there and I get the following error:--------------------------------------------Summary: 1 item(s). 0 succeeded, 1 failed.Elapsed time: 00:00:23AM.ScottFailedError:A source-side operation failed. Error An error occurred while performing the seed operation. Error: Failed to open a log truncation context to source server 'FRANKLIN2.domain.com'. Hresult: 0x80070057. Error: An unexpected error occurred. Error (0x80070057).. [Database: AM.Scott, Server: FRANKLIN0C.domain.com]Failed to open a log truncation context to source server...
    This topic first appeared in the Spiceworks Community

    Hi Belinda,
    Thanks for the response. I am holding off on using Eseutil or Isinteg for now as I may have finally found the problem.
    I was reading another forum yesterday where someone else was getting many of the same errors and everyone responding was telling them the same thing, to check the database as it seemed to have some corruption. Then there was one post at the very bottom where
    a guy said he had the same problems but found it was an incompatibility with Exchange 2010 and the Windows Serve Backup Command-line Tools for Server 2008. He removed the Command-line Tools and the problem was resolved. Since we do not use the Windows Serve
    Backup, we use Backup Exec, I decided to give it a try. I removed the Command-line Tools and reseeded the database. It has been running since about 12:30 PM yesterday with no errors at all. I'm not claiming victory yet as I stated in my original post that
    it has at times run for up to 5 days before failing. I will monitor it for the next week and  keep my fingers crossed that the issue has been resolved. I will report back if it fails before then and if not I will consider the issue resolved and post to
    the thread. 
    If this does in fact turn out to be the solution it is just another instance of Microsoft dropping the ball as I was only able to find this mentioned once on their website in a thread about Exchange logs not truncating. I would find it rather annoying their
    Server backup software is incompatible with their Mail program and even more annoying that they have not acknowledged the issue. I have been fighting this for months and only found the solution by a stroke of luck. I will update accordingly.
    Many thanks,
    Gerard

  • Creating new Data Source Error - Database connection Failed

    Successfully installed and configured 11.1.1.3.0. Planning and Essbase dev.
    Went to Workspace > Administer > Classing Planning Administration > Manage Data Sources > Create Data Source.
    Entered all info about the application database , etc. Getting error "The database connection failed" (I was able to connect with no problem during the install)
    SQL server 2005 is on the same physical server.
    The diagnostic tool shows database connection passed for planning. A new database was created for the new application.
    The server event viewer shows these errors.
    "Login failed for user 'xxx-hyperion'. The user is not associated with a trusted SQL Server connection."
    Group Policy Error "The client-side extension could not apply computer policy settings for 'Default Domain Policy {xxx}' because it failed with error code '0x80070003 The system cannot find the path specified.' See trace file for more details. "
    The Group Policy client-side extension Group Policy Services failed to execute. Please look for any errors reported earlier by that extension.
    Any help is appreciated.

    Datasource for the application.
    I have created a sql db for this planning application (my datasource). See my first message for more details.
    When you create a new planning application, you need to associate it with a data source. Since this is a new install, I don't have any data sources available yet.
    So, "To create, edit or delete data sources, click Manage Data Source."
    This page lets you validate your connection to the database and essbase server. My essbase server connection validates! The database connection does not validate after I enter all the relevant information.
    SCREEN INFO BELOW
    Fields displayed with an asterisk (*) are mandatory.
    Data Source Name *:
    Data Source Description:
    Select Database Platform
    Microsoft SQL Server
    Application Database
    Server * :
    Port * :
    Database *:
    User *:
    Password *:
    Click "Validate Database Connection"
    ERROR ---> Database connection failed.
    So it does not let me create a data source for my new planning application, so I cannot create a new planning application.
    Thanks in advance.

  • JDBC Adapter - Established database connection failed

    Hi Guys,
    we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the  Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
    So in my point of view we have done everything right during the installation.
    Now the developer tested theJDBC Adapter and he comes back with following Error:
    Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Do you have any ideas?
    Regards
    Markus

    Hello Markus,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • Database Logon Failed after first report

    I have a Windows Server 2003 x86 server running IIS6 and ASP.NET. On this server, I have two different web forms set up to export Crystal Reports to PDF.
    My problem is that only one of these reports can run. For example, I open report 1 and can then reopen (generate PDF of) report1 as many times as I want. I cannot open report 2 - I get a "Database Logon Failed" error message. If I restart the server, I can generate a PDF of report 2 successfully and as many times as I want but report 1 will get a "Database Logon Failed" error message.
    Has anyone seen this behavior before? My code is very concise and manually closes the report document (and forces the garbage collection to run) once the PDF has been generated. However, for some reason, the report is staying in memory and is trying to run again even though it has been closed. It is driving me crazy.
    Thanks in advance for any assistance you can offer.

    Let's get the server confusion out of the way.
    A "server" runtime install is an msi file called CrystalReports11_5_NET_2005.msi.
    The msi is in a download called Crystal Reports XI Release 2 - FP x.x .NET Server Install (where x.x refers to SP or FP version (e.g.; Crystal Reports XI Release 2 - FP 5.6 .NET Server Install)
    So, this gives you an easy way of installing the CR runtime on a server (e.g.. Win 2003 server). No CR server (RAS) implication here. To install the runtime, all you have to do is run the msi, provide the keycode when prompted and the runtime is installed. You should see the directory C:\Program Files\Business Objects\Common\3.5\bin created. No pretty interface, etc. If you want a pretty interface, you create your own setup project or msi using the CR msm files.
    Hopefully this clears up the "server" confusion.
    To the actual issue on hand.
    You say this works with older "Crystal Reports viewers" installed on a WIN 2003 64 bit server. My question is; does this CR XI r2 based app work anywhere? Your dev box? Staging server?
    Ludek

Maybe you are looking for