Deleted failed DC from the domain (Server 2012 R2) - Now after doing metadata and DNS cleanup, I can no longer promote a new DC to the domain

I work for a university and teach IT courses to undergrad and graduate students. The details below are pertaining an isolated lab environment
I had a storage failure in my lab and the DCs became corrupt. This is a university lab environment so there isn't anything crucial on here. I just would rather avoid rebuilding the domain/forest and would rather use this as a learning experience with my
students...
So after the storage failed and was restored, the VMs hosted became corrupt. I did a NTDSUTIL to basically repair the NDTS.dit file but one of my DCs reverted to a state before DC promotion. Naturally, the domain still had this object in AD. After numerous
failed attempts at trying to reinstall the DC on the server through the server manager wizard in 2012 R2, I decided that a metadata cleanup of the old failed object was necessary.
Utilizing this article, I removed all references of the failed DC from both AD and DNS (http://www.petri.com/delete_failed_dcs_from_ad.htm) 
So now that the failed object is removed completely from the domain and the metadata cleanup was successful, I then proceeded to re-install the necessary AD DS role on the server and re-promote to the existing domain. Pre-Requisites pass but generate some
warning around DNS Delgation, and Dynamic Updates (delegation is ignored because the lab is isolated from external comms, and dynamic updates are in fact enabled on both my _msdcs and root domain zones).
Upon the promotion process, I get the following error message (also worth mentioning - the account performing these operations is a member of DA, EA, and Schema Admins)
The operation failed because:
Active Directory Domain Services could not create the NTDS Settings object for this Active Directory Domain Controller CN=NTDS Settings,CN=domainVMDC1,CN=Servers,CN=Default-
First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu on the remote AD DC domainVMDC2. Ensure the provided network credentials have sufficient permissions.
"While processing a change to the DNS Host Name for an object, the Service Principal Name values could not be kept in sync."
As you can see, this error seems odd considering. Now that I'm down to a single DC and DNS server, the sync should be corrected. I've run a repadmin /syncall and it completed successfully. Since then, I've run dcdiags and dumped those to a text as well and
here are my results...
Directory Server Diagnosis
Performing initial setup:
   Trying to find home server...
   Home Server = domainVMDC2
   * Identified AD Forest. 
   Done gathering initial info.
Doing initial required tests
   Testing server: Default-First-Site-Name\domainVMDC2
      Starting test: Connectivity
         ......................... domainVMDC2 passed test Connectivity
Doing primary tests
   Testing server: Default-First-Site-Name\domainVMDC2
      Starting test: Advertising
         ......................... domainVMDC2 passed test Advertising
      Starting test: FrsEvent
         ......................... domainVMDC2 passed test FrsEvent
      Starting test: DFSREvent
         ......................... domainVMDC2 passed test DFSREvent
      Starting test: SysVolCheck
         ......................... domainVMDC2 passed test SysVolCheck
      Starting test: KccEvent
         ......................... domainVMDC2 passed test KccEvent
      Starting test: KnowsOfRoleHolders
         ......................... domainVMDC2 passed test KnowsOfRoleHolders
      Starting test: MachineAccount
         ......................... domainVMDC2 passed test MachineAccount
      Starting test: NCSecDesc
         ......................... domainVMDC2 passed test NCSecDesc
      Starting test: NetLogons
         ......................... domainVMDC2 passed test NetLogons
      Starting test: ObjectsReplicated
         ......................... domainVMDC2 passed test ObjectsReplicated
      Starting test: Replications
         ......................... domainVMDC2 passed test Replications
      Starting test: RidManager
         ......................... domainVMDC2 passed test RidManager
      Starting test: Services
         ......................... domainVMDC2 passed test Services
      Starting test: SystemLog
         A warning event occurred.  EventID: 0x00001795
            Time Generated: 12/18/2014   00:35:03
            Event String:
            The program lsass.exe, with the assigned process ID 476, could not authenticate locally by using the target name ldap/domainvmdc2.domain.school.edu. The target name used is not valid. A target name should
refer to one of the local computer names, for example, the DNS host name.
         ......................... domainVMDC2 passed test SystemLog
      Starting test: VerifyReferences
         ......................... domainVMDC2 passed test VerifyReferences
   Running partition tests on : ForestDnsZones
      Starting test: CheckSDRefDom
            For the partition
            (DC=ForestDnsZones,DC=domain,DC=school,DC=edu) we encountered
            the following error retrieving the cross-ref's
            (CN=3098109a-ff99-41d4-8926-0e814ac8efde,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
             information: 
               LDAP Error 0x52e (1326). 
         ......................... ForestDnsZones failed test CheckSDRefDom
      Starting test: CrossRefValidation
            For the partition
            (DC=ForestDnsZones,DC=domain,DC=school,DC=edu) we encountered
            the following error retrieving the cross-ref's
            (CN=3098109a-ff99-41d4-8926-0e814ac8efde,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
             information: 
               LDAP Error 0x52e (1326). 
         ......................... ForestDnsZones failed test
         CrossRefValidation
   Running partition tests on : DomainDnsZones
      Starting test: CheckSDRefDom
            For the partition
            (DC=DomainDnsZones,DC=domain,DC=school,DC=edu) we encountered
            the following error retrieving the cross-ref's
            (CN=2f0b8ac0-2630-441a-891f-b5fcb91498a8,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
             information: 
               LDAP Error 0x52e (1326). 
         ......................... DomainDnsZones failed test CheckSDRefDom
      Starting test: CrossRefValidation
            For the partition
            (DC=DomainDnsZones,DC=domain,DC=school,DC=edu) we encountered
            the following error retrieving the cross-ref's
            (CN=2f0b8ac0-2630-441a-891f-b5fcb91498a8,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
             information: 
               LDAP Error 0x52e (1326). 
         ......................... DomainDnsZones failed test
         CrossRefValidation
   Running partition tests on : Schema
      Starting test: CheckSDRefDom
         ......................... Schema passed test CheckSDRefDom
      Starting test: CrossRefValidation
            For the partition
            (CN=Schema,CN=Configuration,DC=domain,DC=school,DC=edu) we
            encountered the following error retrieving the cross-ref's
            (CN=Enterprise Schema,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
             information: 
               LDAP Error 0x52e (1326). 
         ......................... Schema failed test CrossRefValidation
   Running partition tests on : Configuration
      Starting test: CheckSDRefDom
         ......................... Configuration passed test CheckSDRefDom
      Starting test: CrossRefValidation
            For the partition
            (CN=Configuration,DC=domain,DC=school,DC=edu) we encountered
            the following error retrieving the cross-ref's
            (CN=Enterprise Configuration,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
             information: 
               LDAP Error 0x52e (1326). 
         ......................... Configuration failed test CrossRefValidation
   Running partition tests on : domain
      Starting test: CheckSDRefDom
         ......................... domain passed test CheckSDRefDom
      Starting test: CrossRefValidation
            For the partition (DC=domain,DC=school,DC=edu) we encountered
            the following error retrieving the cross-ref's
            (CN=domain,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
             information: 
               LDAP Error 0x52e (1326). 
         ......................... domain failed test CrossRefValidation
   Running enterprise tests on : domain.school.edu
      Starting test: LocatorCheck
         ......................... domain.school.edu passed test
         LocatorCheck
      Starting test: Intersite
         ......................... domain.school.edu passed test Intersite
From what I can gather, there is a definite DNS issue but I don't have any stale records to the old DC stored anywhere. I've tried this with a new server as well and get similar errors... 
At this rate I'm ready to rebuild the entire forest over again. I'm just reluctant to do so as I want to make this a learning experience for the students. 
Any help would be greatly appreciated. Thanks!

As you can see, there seems to be some errors. The one that I did correct was the one around the _msdcs NS record being unable to resolve. For whatever, reason the name wasn't resolving the IP but all other NS tabs and records were. Just that one _msdcs
sub-zone. Furthermore, the mentioning of any connections to root hint servers can be viewed as false positives. There is no external comms to this lab so no communication with outside IPs can be expected. Lastly, they mentioned a connectivity issue yet mention
that I should check the firewall settings. All three profiles are disabled in Windows Firewall (as they have been the entire time). Thank you in advance for your help!
C:\Windows\system32>dcdiag /test:dns /v
Directory Server Diagnosis
Performing initial setup:
   Trying to find home server...
   * Verifying that the local machine domainVMDC2, is a Directory Server.
   Home Server = domainVMDC2
   * Connecting to directory service on server domainVMDC2.
   * Identified AD Forest.
   Collecting AD specific global data
   * Collecting site info.
   Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),.......
   The previous call succeeded
   Iterating through the sites
   Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu
   Getting ISTG and options for the site
   * Identifying all servers.
   Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu,LDAP_SCOPE_SUBTREE,(objectClass=ntDSDsa),.......
   The previous call succeeded....
   The previous call succeeded
   Iterating through the list of servers
   Getting information for the server CN=NTDS Settings,CN=domainVMDC2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu
   objectGuid obtained
   InvocationID obtained
   dnsHostname obtained
   site info obtained
   All the info for the server collected
   * Identifying all NC cross-refs.
   * Found 1 DC(s). Testing 1 of them.
   Done gathering initial info.
Doing initial required tests
   Testing server: Default-First-Site-Name\domainVMDC2
      Starting test: Connectivity
         * Active Directory LDAP Services Check
         The host
         3a38b19c-4bb3-4542-acb6-9e5e97cc15c4._msdcs.domain.school.edu
         could not be resolved to an IP address. Check the DNS server, DHCP,
         server name, etc.
         Got error while checking LDAP and RPC connectivity. Please check your
         firewall settings.
         ......................... domainVMDC2 failed test Connectivity
Doing primary tests
   Testing server: Default-First-Site-Name\domainVMDC2
      Test omitted by user request: Advertising
      Test omitted by user request: CheckSecurityError
      Test omitted by user request: CutoffServers
      Test omitted by user request: FrsEvent
      Test omitted by user request: DFSREvent
      Test omitted by user request: SysVolCheck
      Test omitted by user request: KccEvent
      Test omitted by user request: KnowsOfRoleHolders
      Test omitted by user request: MachineAccount
      Test omitted by user request: NCSecDesc
      Test omitted by user request: NetLogons
      Test omitted by user request: ObjectsReplicated
      Test omitted by user request: OutboundSecureChannels
      Test omitted by user request: Replications
      Test omitted by user request: RidManager
      Test omitted by user request: Services
      Test omitted by user request: SystemLog
      Test omitted by user request: Topology
      Test omitted by user request: VerifyEnterpriseReferences
      Test omitted by user request: VerifyReferences
      Test omitted by user request: VerifyReplicas
      Starting test: DNS
         DNS Tests are running and not hung. Please wait a few minutes...
         See DNS test in enterprise tests section for results
         ......................... domainVMDC2 passed test DNS
   Running partition tests on : ForestDnsZones
      Test omitted by user request: CheckSDRefDom
      Test omitted by user request: CrossRefValidation
   Running partition tests on : DomainDnsZones
      Test omitted by user request: CheckSDRefDom
      Test omitted by user request: CrossRefValidation
   Running partition tests on : Schema
      Test omitted by user request: CheckSDRefDom
      Test omitted by user request: CrossRefValidation
   Running partition tests on : Configuration
      Test omitted by user request: CheckSDRefDom
      Test omitted by user request: CrossRefValidation
   Running partition tests on : domain
      Test omitted by user request: CheckSDRefDom
      Test omitted by user request: CrossRefValidation
   Running enterprise tests on : domain.school.edu
      Starting test: DNS
         Test results for domain controllers:
            DC: domainVMDC2
            Domain: domain.school.edu
               TEST: Authentication (Auth)
                  Authentication test: Successfully completed
               TEST: Basic (Basc)
                  Error: No LDAP connectivity
                  The OS
                  Microsoft Windows Server 2012 R2 Datacenter (Service Pack level: 0.0)
                  is supported.
                  NETLOGON service is running
                  kdc service is running
                  DNSCACHE service is running
                  DNS service is running
                  DC is a DNS server
                  Network adapters information:
                  Adapter [00000010] vmxnet3 Ethernet Adapter:
                     MAC address is 00:50:56:A2:2C:24
                     IP Address is static
                     IP address: *.*.100.26
                     DNS servers:
                        *.*.100.26 (domainVMDC2) [Valid]
                  No host records (A or AAAA) were found for this DC
                  The SOA record for the Active Directory zone was found
                  The Active Directory zone on this DC/DNS server was found primary
                  Root zone on this DC/DNS server was not found
               TEST: Forwarders/Root hints (Forw)
                  Recursion is enabled
                  Forwarders are not configured on this DNS server
                  Root hint Information:
                     Name: a.root-servers.net. IP: 198.41.0.4 [Invalid (unreachable)]
                     Name: b.root-servers.net. IP: 192.228.79.201 [Invalid (unreachable)]
                     Name: c.root-servers.net. IP: 192.33.4.12 [Invalid (unreachable)]
                     Name: d.root-servers.net. IP: 199.7.91.13 [Invalid (unreachable)]
                     Name: e.root-servers.net. IP: 192.203.230.10 [Invalid (unreachable)]
                     Name: f.root-servers.net. IP: 192.5.5.241 [Invalid (unreachable)]
                     Name: g.root-servers.net. IP: 192.112.36.4 [Invalid (unreachable)]
                     Name: h.root-servers.net. IP: 128.63.2.53 [Invalid (unreachable)]
                     Name: i.root-servers.net. IP: 192.36.148.17 [Invalid (unreachable)]
                     Name: j.root-servers.net. IP: 192.58.128.30 [Invalid (unreachable)]
                     Name: k.root-servers.net. IP: 193.0.14.129 [Invalid (unreachable)]
                     Name: l.root-servers.net. IP: 199.7.83.42 [Invalid (unreachable)]
                     Name: m.root-servers.net. IP: 202.12.27.33 [Invalid (unreachable)]
                  Error: Both root hints and forwarders are not configured or
                  broken. Please make sure at least one of them works.
               TEST: Delegations (Del)
                  Delegation information for the zone: domain.school.edu.
                     Delegated domain name: _msdcs.domain.school.edu.
                        Error: DNS server: domainvmdc2. IP:<Unavailable>
                        [Missing glue A record]
                        [Error details: 9714 (Type: Win32 - Description: DNS name does not exist.)]
               TEST: Dynamic update (Dyn)
                  Test record dcdiag-test-record added successfully in zone domain.school.edu
                  Warning: Failed to delete the test record dcdiag-test-record in zone domain.school.edu
                  [Error details: 13 (Type: Win32 - Description: The data is invalid.)]
               TEST: Records registration (RReg)
                  Network Adapter [00000010] vmxnet3 Ethernet Adapter:
                     Matching CNAME record found at DNS server *.*.100.26:
                     3a38b19c-4bb3-4542-acb6-9e5e97cc15c4._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.a9241004-88ea-422d-a71e-df7b622f0d68.domains._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _kerberos._tcp.dc._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.dc._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _kerberos._tcp.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _kerberos._udp.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _kpasswd._tcp.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.Default-First-Site-Name._sites.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _kerberos._tcp.Default-First-Site-Name._sites.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.gc._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _gc._tcp.Default-First-Site-Name._sites.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.domain.school.edu
                     Matching  SRV record found at DNS server *.*.100.26:
                     _ldap._tcp.pdc._msdcs.domain.school.edu
               Error: Record registrations cannot be found for all the network
               adapters
         Summary of test results for DNS servers used by the above domain
         controllers:
            DNS server: 128.63.2.53 (h.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 128.63.2.53               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 192.112.36.4 (g.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.112.36.4               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 192.203.230.10 (e.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.203.230.10               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 192.228.79.201 (b.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.228.79.201               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 192.33.4.12 (c.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.33.4.12               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 192.36.148.17 (i.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.36.148.17               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 192.5.5.241 (f.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.5.5.241               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 192.58.128.30 (j.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.58.128.30               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 193.0.14.129 (k.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 193.0.14.129               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 198.41.0.4 (a.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 198.41.0.4               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 199.7.83.42 (l.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 199.7.83.42               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 199.7.91.13 (d.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 199.7.91.13               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: 202.12.27.33 (m.root-servers.net.)
               1 test failure on this DNS server
               PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 202.12.27.33               
[Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
            DNS server: *.*.100.26 (domainVMDC2)
               All tests passed on this DNS server
               Name resolution is functional._ldap._tcp SRV record for the forest root domain is registered
         Summary of DNS test results:
                                            Auth Basc Forw Del  Dyn  RReg Ext
            Domain: domain.school.edu
               domainVMDC2                 PASS FAIL FAIL FAIL WARN FAIL n/a
         ......................... domain.school.edu failed test DNS
      Test omitted by user request: LocatorCheck
      Test omitted by user request: Intersite

Similar Messages

  • Using Firefox 5 in Windows 7, once I have Firefox open, I can no longer open a new window using the start button. How do I fix?

    As I stated, I have Windows 7 on my laptop and have installed Firefox 5. I sometimes like to have multiple windows of the browser open. But, unlike any previous version of Firefox, now when I have the browser open, when I try to open a new window using the Start menu, it will not open one. I have to use Ctrl+N. Why did this change?
    This may seem insignificant but it really hampers my work flow. For one, with other applications, Shift+N is what opens a new window. For two, I've been doing with with my browsers for years now and it's like second nature for me - having to remember that in Firefox it's Ctrl+N is a pain in my tuccus.
    Firefox is my go to browser and I would like it to stay that way. Please find the solution for me! I have tried looking using Tools, Options, as well as looking at my start menu and taskbar options, and no dice.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Does any one know if you can upload a program to use windows on the ipad, like you can with the mac computers??

    does any one know if you can upload a program to use windows on the ipad, like you can with the mac computers??

    karleyfrombrisbane wrote:
    does any one know if you can upload a program to use windows on the ipad, like you can with the mac computers??
    Nope, can't be done.
    Stedman

  • How to delete a row from a SQL Server CE Table with multiple JOINs?

    I want to delete a record from a SQL Server CE table.
    There are 3 tables scripts, options and results. I would like to remove a record from the results table. The where clause contains dynamic information which retrieved via other queries to different tables in the same database. These queries work fine and deliver
    the desired data.
    The Compact server is a clone of a remote table created using the sync framework. The same query to the remote table works fine.
    The error I get is:
    There was an error parsing the query. [ Token line number = 1,Token line offset = 10,Token in error = from ]
    The code that throws the exception is as follows:
    Dim connLoc As SqlCeConnection = New SqlCeConnection(My.Settings.ConnectionString)connLoc.Open()     Dim strDel As String = "Delete r from ResultsTable r inner join OptionsTable o ON o.TestName=r.TestName inner join ScriptTable c ON r.TestName=c.TestName WHERE r.TestName = '" & ds1Loc.Tables(0).Rows(0)(1) & "' AND [Index] = '" & lstIndex & "'"Dim cmdDel As SqlCeCommand = New SqlCeCommandcmdDel.CommandText = strDelcmdDel.Connection = connLoccmdDel.ExecuteNonQuery()
    The values held in ds1Loc.Tables(0).Rows(0)(1) and lstIndex are
    correct so should not be the problem.
    I also tried using parameterised queries
    Dim strDel As String = "Delete r from [ResultsTable] r inner join [OptionsTable] o ON o.TestName=r.TestName inner join [ScriptTable] c ON r.TestName=c.TestName WHERE r.TestName = @TestName AND [Index] = @lstIndex"
    Dim cmdDel As SqlCeCommand = New SqlCeCommand        cmdDel.CommandText = strDel       
    With cmdDel.Parameters           
    .Add(New SqlCeParameter("@TestName", ds1Loc.Tables(0).Rows(0)(1)))           
    .Add(New SqlCeParameter("@lstIndex", lstIndex))       
    End With 
    cmdDel.Connection = connLoc        cmdDel.ExecuteNonQuery()
    I have tried replacing the "=" with "IN" in the the WHERE clause but this has not worked.
    Is it the join that is causing the problem? I can do a select with the same search criteria and joins from the same database.
    Also this query works with SQL Server. Is it perhaps that SQL CE does not support the Delete function the same as SQL Server 2008? I have been looking at this for a while now and cannot find the source of the error. Any help would be greatly appreciated.

    Hello,
    In SQL Server Compact, we can use join in FROM clause. The DELETE statement fail may be caused by the FOREIGN KEY constraint.
    Please refer to:
    DELETE (SQL Server Compact)
    FROM Clause (SQL Server Compact)
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Bare metal restore of full server backup fails with RPC error 0x800706BA (server 2012)

    With Windows Server 2012, after creating a successful windows server backup (full server), I am unable to do a bare metal restore of the system.
    EFI System Partition, C:, D: are the volumes on a single array (Raid 5).
    Loading WinRE and launching re-image, the full server restore stops after completing the C: restore just after beginning the D: drive restore (data volume) with the error with the message about RPC error 0x800706BA, unavailable.
    The system will not boot as a result of the failure. 
    What may be causing this?
    [edit]
    I think I have two things working against me here... one, Volume Shadow Copy service wasn't running in WinPE and two.. the D: volume contains data deduplication.
    I think this is causing some of my problems.
    Is there an additional service that I need to start in WinPE to get a volume that was deduplicated restored perhaps using wbadmin?

    Hi,
    Thanks for the reply Shaon.
    The hardware system is identical; however, I am increasing storage capacity from 12TB to 16TB.  Basically, the system is the same, just new hard drives (4x4TB versus 4x3TB).  Drives are all identical enterprise class drives and I am actually using
    the same system (backup, swap drives then restore).
    I tried both using the WinRE restore (re-image) with the backup set, and tried using wbadmin.  Both produce same RPC unavailable messages (although using the GUI based tool via WinRE provides the additional error code #).
    I do not have any idea what to look at to try to figure this one out.
    [edit]
    I was just informed of this posting:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/147efccc-e0e9-4458-852e-c3a44ae5cb64/the-system-image-restore-failed-error-details-he-rpc-server-is-unavailable-0x800706ba?forum=windowsbackup
    and in my case, this lab server does in fact act also as a DC as well as a file server...  do I need to spin up a secondary controller (perhaps in a VM on another machine) to do this restore?

  • How to restore a database backup taken from a SQL Server 2012 instance to SQL Server 2014

    I am trying to restore a database backup taken from a SQL Server 2012 instance to my new SQL Server 2014 instance.  When I add the .bak through the Mgmt studio UI, it does not seem to find a backup set in the file so I cannot proceed (does not give
    me any errors though either.  I tried restoring through TSQL command but only got a database restore terminating abnormally error with no other details.  How can I restore this database to SQL 2014?

    Hello,
    Please examine SQL Server Error Log and share with us any error you can find. The following article may locate the log:
    http://msdn.microsoft.com/en-us/library/ms187109.aspx
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • What will I do with the SQL Server (2012/2014) (Standard/Enterprise) Licenses?

    What will I do with the SQL Server (2012/2014) (Standard/Enterprise) Licenses?
    Are these the same as software product keys, or just some pieces of paper the company needs to have on hand?
    In which case, when we install SQL Server 2014, (and when looked for videos) - there is only 1 product key value to be put in, is there some other screen in the setup to input the License bought ( in our case will be Core licenses).
    So in addition to the Core Licenses do will a Product key be needed? Would product key from an msdn work, as it is the licenses that we will buy to indicate that we bought to run the software on server X?
    Thanks for any indications.

    1. What will I do with the SQL Server (2012/2014) (Standard/Enterprise) Licenses?
    Are these the same as software product keys, or just some pieces of paper the company needs to have on hand?
    2. In which case, when we install SQL Server 2014, (and when looked for videos) - there is only 1 product key value to be put in, is there some other screen in the setup to input the License bought ( in our case will be Core licenses).
    3. So in addition to the Core Licenses do will a Product key be needed? Would product key from an msdn work, as it is the licenses that we will buy to indicate that we bought to run the software on server X?
    Thanks for any indications.
    I will answer your question point wise
    1. Keeping license key is good idea it helps you during audit and you have proof that you are using a valid Microsoft License. Plus in scenario of disaster where whole box gets damanged you might need to install SQL Server again in that case during
    reinstallation on setup page where you need to enter key you might need need it. If you are missing your paper then you are in trouble.
    2. Only on product key page license key is required and it is not required anywhere else during installation. Unless you enter valid product key installation will not proceed further.
    3 License makes you a valid owner of Microsoft product with restrictions on how much hardware resource you can use how much max connections you can make etc. Key lets you install it on Windows machine making sure that you are using valid Microsoft product.
    This was just a general idea please speak to your licensing specialist for more details. This is technical forum and we generally ask user to speak to licensing expert for such queries.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Is it possible to create the template Server 2012 R2 in Azure?

    For RemoteApp, I know that I need to create a template of Server 2012 R2.
    I don't want to create it locally.
    Is it possible to create the template Server 2012 R2 in Azure?
    And then upload from Azure to Azure?
    Thanks!!!
    Regards Todd Booth

    Currently, that's not possible. It is however a feature request that has been asked for a lot. There also is a feedback page here
    http://feedback.azure.com/forums/247748-azure-remoteapp where you can vote for features, including the feature you are asking for.
    Kind regards,
    Freek Berson
    The Microsoft Platform
    Twitter
    Linked-in
    Wortell company website

  • IOMeter hangs when running to a NFS share from Windows Storage Server 2012

    Hello, 
    I am trying to measure performance of NFS share coming from Windows Storage Server 2012 using IOMeter also running on windows Server 2012. I can create the share on WSS2012. Windows 2012 client does see the share. IOmeter does see the share, and I can start
    running. But fairly quick IOMeter gets an error, and stops. After that NFS share on the client is not visible to IOMeter anymore. This happen every time. 
    I have used IOMeter to SMB shares a lot with no problem..
    Thanks in advance,
    BJ

    I am trying to measure performance of NFS share coming from Windows Storage Server 2012 using IOMeter also running on windows Server 2012. I can create the share on WSS2012. Windows 2012 client does see the share. IOmeter does see the share, and I can start
    running. But fairly quick IOMeter gets an error, and stops. After that NFS share on the client is not visible to IOMeter anymore. This happen every time. 
    I have used IOMeter to SMB shares a lot with no problem..
    1) Can you use NFS share with NFS clients normally? I mean is it I/O Meter who has issues with streaming or do other apps have similar problems? Say normal copy to / from NFS share?
    2) What error exactly is popped up? Do you happen to have a screenshot?
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Help to write the sql server 2012(business intelligence ) certification.

    Hi,
    I am planning to write the SQL SERVER 2012 certification exam.
    i want few more details...
    1. Examination code.
    2. how to prepare
    3. is there any dumps available.
    4. is there any books available for preparation.
    Please pass the details, it would be very help full for me..

    The Business Intelligence exams are:
    70-461: Querying Microsoft SQL Server 2012
    70-462: Administering Microsoft SQL Server 2012 Databases
    70-463: Implementing a Data Warehouse with Microsoft SQL Server 2012
    70-466: Implementing Data Models and Reports with Microsoft SQL Server 2012
    70-467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012
    Ramesh Babu Vavilla MCTS,MSBI

  • [Forum FAQ] How to install and configure Windows Server Essentials Experience role on Windows Server 2012 R2 Standard via PowerShell locally and remotely

    As we all know,
    the Windows Server Essentials Experience role is available in Windows Server 2012 R2 Standard and Windows Server 2012 R2 Datacenter. We can add the Windows Server
    Essentials Experience role in Server Manager or via Windows PowerShell.
    In this article, we introduce the steps to install and configure Windows
    Server Essentials Experience role on Windows Server 2012 R2 Standard via PowerShell locally and remotely. For better analyze, we divide this article into two parts.
    Before installing the Windows Server Essentials Experience Role, please use
    Get-WindowsFeature
    PowerShell cmdlet to ensure the Windows Server Essentials Experience (ServerEssentialsRole) is available. (Figure 1)
    Figure 1.
    Part 1: Install Windows Server Essentials Experience role locally
    Add Windows Server Essentials Experience role
    Run Windows PowerShell as administrator, then type
    Add-WindowsFeature ServerEssentialsRole cmdlet to install Windows Server Essentials Experience role. (Figure 2)
    Figure 2.
    Note: It is necessary to configure Windows Server Essentials Experience (Post-deployment Configuration). Otherwise, you will encounter following issue when opening Dashboard.
    (Figure 3)
    Figure 3.
      2. Configure Windows Server Essentials Experience role
    (1)  In an existing domain environment
    Firstly, please join the Windows Server 2012 R2 Standard computer to the existing domain through the path:
    Control Panel\System\Change Settings\”Change…”\Member of. (Figure 4)
    Figure 4.
    After that, please install Windows Server Essentials Experience role as original description. After installation completed, please use the following command to configure Windows
    Server Essentials:
    Start-WssConfigurationService –Credential <Your Credential>
    Note: The type of
    Your Credential should be as: Domain-Name\Domain-User-Account.
    You must be a member of the Enterprise Admin group and Domain Admin group in Active Directory when using the command above to configure Windows Server Essentials. (Figure 5)
    Figure 5.
    Next, you can type the password for the domain account. (Figure 6)
    Figure 6.
    After setting the credential, please type “Y” to continue to configure Windows Server Essentials. (Figure 7)
    Figure 7.
    By the way, you can use
    Get-WssConfigurationStatus
    PowerShell cmdlet to
    get the status of the configuration of Windows Server Essentials. Specify the
    ShowProgress parameter to view a progress indicator. (Figure 8)
    Figure 8.
    (2) In a non-domain environment
    Open PowerShell (Run as Administrator) on the Windows Server 2012 R2 Standard and type following PowerShell cmdlets: (Figure 9)
    Start-WssConfigurationService -CompanyName "xxx" -DNSName "xxx" -NetBiosName "xxx" -ComputerName "xxx” –NewAdminCredential $cred
    Figure 9.
    After you type the commands above and click Enter, you can create a new administrator credential. (Figure 10)
    After creating the new administrator credential, please type “Y” to continue to configure Windows Server Essentials. (Figure 11)
    After a reboot, all the configurations will be completed and you can open the Windows Server Essentials Dashboard without any errors. (Figure 12)
    Figure 12.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Part 2: Install and configure Windows Server Essentials Experience role remotely
    In an existing domain environment
    In an existing domain environment, please use following command to provide credential and then add Server Essentials Role: (Figure 13)
    Add-WindowsFeature -Name ServerEssentialsRole
    -ComputerName xxx -Credential DomainName\DomainAccount
    Figure 13.
    After you enter the credential, it will start install Windows Server Essentials role on your computer. (Figure 14)
    Figure 14.
    After the installation completes, it will return the result as below:
    Figure 15.
    Next, please use the
    Enter-PSSession
    cmdlet and provide the correct credential to start an interactive session with a remote computer. You can use the commands below:
    Enter-PSSession –ComputerName
    xxx –Credential DomainName\DomainAccount (Figure 16)
    Figure 16.
    Then, please configure Server Essentials Role via
    Add-WssConfigurationService cmdlet and it also needs to provide correct credential. (Figure 17)
    Figure 17.
    After your credential is accepted, it will update and prepare your server. (Figure 18)
    Figure 18.
    After that, please type “Y” to continue to configure Windows Server Essentials. (Figure 19)
    Figure 19.
    2. In a non-domain environment
    In my test environment, I set up two computers running Windows Server 2012 R2 Standard and use Server1 as a target computer. The IP addresses for the two computers are as
    below:
    Sevrer1: 192.168.1.54
    Server2: 192.168.1.53
    Run
    Enable-PSRemoting –Force on Server1. (Figure 20)
    Figure 20.
    Since there is no existing domain, it is necessary to add the target computer (Server1) to a TrustedHosts list (maintained by WinRM) on Server 2. We can use following command
    to
    add the TrustedHosts entry:
    Set-Item WSMan:\localhost\Client\TrustedHosts IP-Address
    (Figure 21)
    Figure 21.
    Next, we can use
    Enter-PSSession
    cmdlet and provide the correct credential to start an interactive session with the remote computer. (Figure 22)
    Figure 22.
    After that, you can install Windows Server Essentials Experience Role remotely via Add-WindowsFeature ServerEssentialsRole cmdlet. (Figure 23)
    Figure 23.
    From figure 24, we can see that the installation is completed.
    Figure 24.
    Then you can use
    Start-WssConfigurationService cmdlet to configure Essentials Role and follow the steps in the first part (configure Windows Server Essentials Experience in a non-domain environment) as the steps would be the same.
    The figure below shows the status of Windows Server Essentials.
    Figure
    25.
    Finally, we have successfully configured Windows Server Essentials on Server1. (Figure 26)
    Figure 26.
    More information:
    [Forum
    FAQ] Introduce Windows Powershell Remoting
    Windows Server Essentials Setup Cmdlets
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server"

    After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server".
    Anyone have any ideas?

    You have two choices to try & fix this: 1. Backup your phone, then restore as a new device, then restore from the backup you first created, or 2. Follow the advise from this poster:
    I had the same problem with the black blocks after upgrading to iOS4 on my iPhone. The reason for the black blocks is that the thumbnail images for those particular images have not been created when the Photo Library has been updated to iOS4. I followed the advice on a couple of blogs and fixed the problem.
    1. I downloaded iPhone Explorer free software (http://www.macroplant.com/iphoneexplorer/) so I could view the photo data folders on my phone. I could see that the thumbnail images were missing.
    2. I followed a slight variation on the instructions on this blog. (http://blog.mbentley.net/2010/06/iphone-ios-4-upgrade-restore-lost-pictures-in-c amera-roll/)
    3. First I copied the Photo Data folder by dragging it from the iPhone Explorer window to my Mac desktop.
    4. Through iPhone Explorer I deleted the info.plist file in the Media/PhotoData/MISC folder.
    5. I also deleted the Photos.sqlite and PhotosAux.sqlite files in Media/PhotoData.
    6. I then rebooted the phone and launched the Photo Library.
    7. The Library rebuilt it's self again and recreated the thumbnails.
    8. The problem was fixed!!! Thank you M Bentley!
    I hope this helps - this has been bugging me for 2 weeks.
    Regards
    Alijm23

  • I was on facebook and deleted an icon by using the right-click menu but then all my pictures and all profile pictures, could no longer be seen. I was able to view them in Explorer so this is something I did in Firefox. How can I unblock a site?'

    '''I was on facebook and deleted an icon by using the right-click menu but then all my pictures and all profile pictures, could no longer be seen. I was able to view them in Explorer so this is something I did in Firefox. How can I unblock a site?'''

    If you select that right-click context menu entry then you block all images from that domain and not one specific image, so do not use that.
    * Check the exceptions in Tools > Options > Content: Load Images > Exceptions (e.g. sphotos.ak.fbcdn.net)
    You can use these steps to check if images are blocked:
    * Open the web page that has the images missing in a browser tab.
    * Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    * Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    * Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    * Select the first image link and scroll down through the list with the Down arrow key.
    * If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • SQL Server 2012 Evaluation (x64 bit) does not install

    Hi
    I downloaded the following files from the site:
    http://www.microsoft.com/download/en/details.aspx?id=29066
    SQLFULL_x64_ENU_Core.box
    SQLFULL_x64_ENU_Install.exe
    SQLFULL_x64_ENU_Lang.box
    i have  double-clicking the executable to SQLFULL_x64_ENU_Install.exe ,i got error popup box as below
    popup box name :Unloading the box
    error message:The application cannot find one of its required files,possibly it was unable to create it in the folder.please make sure that
    the folder in which application was downloaded is accessible and not read-only
    os : windows 7 home basic
    i am the adminstator in the machine and tried to copy the files to diffeent drives and click the exe
    but still its stays same error message
    can some one please suggest on next steps
    Thanks

    Hi sai sudeep,
    I know that you have downloaded the SQL Server 2012, but it wasn’t successful because the entire application contains more files and folders and not just three files (setup.exe, .box files). So, as Alberto Morillo said, you could download an ISO file for installing.
    Please pay attention to that a Service Pack 1 or higher is required on windows 7 for installing the SQL Server 2012.
    please refer to:
    Download Windows 7 Service Pack 1:
    http://www.microsoft.com/en-us/download/details.aspx?id=5842 .
    Hardware and Software Requirements for Installing SQL Server 2012:
    http://msdn.microsoft.com/en-us/library/ms143506(v=sql.110).aspx.
    How to install SQL Server 2012:
    http://msdn.microsoft.com/en-us/library/ms143219.aspx.
    Regards,
    Amy Peng
    Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • SQL Server 2012 stops running after setup files are copied.

    SQL Server 2012 setup stops running after setup files are copied.
    I've experiencing the same issue on two different machines. Both are 64 bit running Server 2008.
    On both of them I tried installing using the files from the ISO. I initially used winzip to extract the files. The setup was running fine, but the SQL Server engine had an error when it installed. Then using the Add/Remove programs i uninstalled all of the
    SQL Server 2012 applications, including the setup files.
    Now when i try to install using the "New SQL Server stand-alone..." wizard it will copy the setup files and then the wizard never comes back. I've tried mounting the ISO, extracting with winrar, Burning the ISO to a dvd and downloading the 3 files. I also
    tried mounting ISO of the version that was just recently released. I run into the same issue with all of them.
    Thanks for the help.

    can you try 
     setup.exe
    /Action=install /x86 /UpdateEnabled=false
    If this doesn't work please use below FAQ to locate and upload SQL Server setup logss.
    FAQ
    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    My Blog
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful"
    on posts that help you.
    This can be beneficial to other community members reading the thread.
    Thank you, it's work!!! :) Maybe problem was in /UpdateEnabled=false and I could try to install a x64 version... but too late, setup in progress and I do not want to have to try all over again :)

Maybe you are looking for

  • BW FICA extract structures corrupted after upgrade from 4.6C to ECC6

    Hi All. After the upgrade an include (FKKBWP) in the extract structure FKKOPBW_BASIC contained  a field belonging to the APPEND structure ZAFKKOPBW_BASIC (originating from enhancing the configured structure). Also ZAFKKOPBW_BASIC is not visible in FK

  • Windows 7 - which version needed for Palm to work?

    I think perhaps I understand the answers, but please tell me if I have this worked out correctly. I have a Palm M515, so no bluetooth or wifi. 1. I want a 32 bit system on one machine. I think I can simply install Windows 7 Home Premium, install Palm

  • MS Access Cfquery or Cfstoredproc parameters declaration?

    How do you pass more than one argument to MS Access stored procedure (query) using either CFQuery or CFStoredProc? Environment: MS Access 2007; Coldfusion 7 Std Edition. Working example CFQUERY with 1 date value parameter: <cfquery name="testStoredPr

  • Older iPod touch

    i have an older ipod touch here and it only charges to 10% then stops charging it wont connect to iTunes and my computer doesn't recognize it i have reset it and erased everything but now its telling me to connect to itunes which i cant, once its off

  • Syslogging on WLC for custom webauth bundle

    Hi, I recently created a WLAN for guest users. They would have to "register" themselves by entering an emailadress. After this they get access to guest WLAN for a number of hours. My question: In the logs of our syslog server I don't see any of these