SQL Server 2012 restoring database from backup file

Hi All,
1. I was restoring the database from PROD box to DEV box with the deferent name.
For Ex: Both PROD and DEV boxes are having "A" database. Now I am refreshing database"A" from PROD bot to DEV box with name "B". Now while restoring in SQL server 2012 I used GUI and took database name as "A" by default.
by mistake I executed the request. before completing I notice that "A" database in DEV Box went to restoring mode.
Now, in middle I stopped the query but still I am seeing database "A" is in restoring state.
Please guide me is there any way to bring database online with current data?
2. Why sql server 2012 takes tail log backup of the existing database while restoring database with different name?

Hi,
check this link for the same issue and solutions:
http://stackoverflow.com/questions/520967/sql-server-database-stuck-in-restoring-state
  Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]

Similar Messages

  • 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 :)

  • SQL Server 2012 Management Studio:Importing XML file to new Table of new Database-XML parsing: unexpected end of input???

    Hi all,
    In the Notepad, I created an xml file (ZenQroducts.xml) :
    <Qroducts>
    <Qroduct>
    <SKU>1</SKU>
    <Desc>Book</Desc>
    </Qroduct>
    <Qroduct>
    <SKU>2</SKU>
    <Desc>DVD</Desc>
    </Qroduct>
    <Qroduct>
    <SKU>3</SKU>
    <Desc>Video</Desc>
    </Qroduct>
    In my SQL Server 2012 Management Studio, I executed the following code:
    --to create a new object Qroducts in a new database OPENXMLtesting
    CREATE DATABASE OPENXMLtesting
    GO
    CREATE TABLE Qroducts(
    sku INT Primary KEY,
    qroduct_desc VARCHAR(30));
    INSERT INTO Qroducts (sku, qroduct_desc)
    SELECT X.qroduct.query('SKU').value('.', 'INT'),
    X.qroduct.query('Desc').value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'H:\ZenQroducts.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('Qroducts/Qroduct') AS X(qroduct);
    SELECT sku, qroduct_desc
    FROM Qroducts;
    I got the following message:
    Msg 9400, Level 16, State 1, Line 6
    XML parsing: line 13, character 12, unexpected end of input
    I have no ideas why I got this "XML parsing:line 13, character12, unexpected end of input" message. Please kindly help, advise me on where I made mistake and how I can resolve this problem, and respond in this Forum.
    Thanks in advance,
    Scott Chang
     

    Hi Manish, Thanks for your response.
    Yes, it is a duplicate with Qroducts/Qroduct instead of Products/Product. I did it, because I don't know how to remove the existing "Products" database.
    Again, I got the existing "Qroducts" database in this second trial!!??  I am comletely lost in doing "Importing XML file to SQL Table" now!!  I think that I have not touched T-SQL and XML programming, since 2008. I
    did not catch the new features of T-SQL 2008, XML, SQL/XML, XQuery, etc. for long time. Recently, I did not know what DECLARE, @x, SET,...were, and dived into the SQL/XML and XQuery programming. I knew the SQL Basics (SELECT, FROM, WHERE,..), creating
    the names of databases and tables in SQL Server 2008/2012 Management Studio (Express) before. This morning, I found an old T-SQL 2008 Prgrammer's Guide that has the new features of SQL Server 2008 for T-SQL, XML, XQuery, etc. I just starting reading
    it to know what DECLARE, @x, SET,... are. But, I still don't know where the existing databases "Products" and "Qroducts" (created by me) are - they are not in the Databases of SQL Server 2012 Management Studio I am using!!??  Could
    you please kindly point out where the "Products" and "Qroducts" databases are?
    Prashanth responded to my posted question too and he asked to to try his code: DECLARE @xml XML, SELECT @xml =' <Qroducts>.....SELECT product.value.....FROM @XML.nodes.....AS.... I just learned that his code is doing the thing we
    want to do and print the results below the SQL Query. This is not what I need in doing my SQL/XML programming. I am reading/studying the new (2008) features of T-SQL, XQuery 1.0: An XML Query Language (Second Edition), and Microsoft XQuery Language Reference
    (SQL Server 2012 Books Online) closely now. I hope that I can resume the T-SQL, XML Query, SQL/XML, XQuery in my SQL Server 2012 Management Studio soon.
    Please tell me  where the existing databases "Products" and "Qroducts" I created in my previous trials in my SQL Server 2012 Management Studio.  This is what I need to know and to delete them, before I do this kind of "Importing
    XML file to Table of SQL Server 2012 Management Studio"  programming again.
    Please kindly help, advise and respond again.
    Many Thanks,
    Scott Chang

  • Sql server 2014 set password for backup file

    We are using sql server 2014, all our databases will be automatically backed up as per schedule. Now need to protect our
    backed up databases with password. We have tried below queries:
    BACKUP DATABASE teknomectest TO DISK='C:\test.BAK' WITH MEDIAPASSWORD='sqlpas'
    Executing it shows below error
    One or more of the options (mediapassword) are not supported for this statement.
    Analyzing which we came to know this feature is blocked in sql server 2012 itself. Is there any other way to protect bak file.
    Bala
    Bala

    MayurPaghal, Bala said he is using SQL server 2014
    Beginning with SQL Server 2012, the PASSWORD and MEDIAPASSWORD options
    are discontinued for creating backups. It is still possible to restore backups created with passwords.
    https://msdn.microsoft.com/en-us/library/ms186865.aspx

  • Best procedure to downgrade a SQL Server 2012 SP2 installation from Enterprise edition to Standard edition

    Hi,
    following a purpose change for a database server, I need to downgrade the SQL Server 2012 SP 2 installation from Enterprise to Standard edition.
    Does it exist the best procedure to do it in a secure manner with a low impact?
    Many thanks

    Please note that while you are downgrading by uninstalling and reinstalling and then restoring backup  taken from 2012 enterprise to standard , if backup contains data about used enterprise features you would not be able to restore the backup so BE
    CAREFUL.
    You should , if possible, get a new box install SQL Server standard and try restoring backup if it fails disable enterprise features and again take backup and then you would be able to restore.
    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

  • SQL Server 2012 Management Studio: Import XML File to SQL Table - XML parsing: illegal qualified name character

    Hi all,
    In my SQL Server 2012 Management Studio, I executed the following code:
    CREATE TABLE Products(
    sku INT Primary KEY,
    product_desc VARCHAR(30));
    INSERT INTO Products (sku, product_desc)
    SELECT X.product.query('SKU').value('.', 'INT'),
    X.product.query('Desc').value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'H:\ZenProducts.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('Products/Product') AS X(product);
    SELECT sku, product_desc
    FROM Products;
    I got the following message:
    Msg 9455, Level 16, State 1, Line 5
    XML parsing: line 3, character 12, illegal qualified name character
    I have no ideas why the "product" in the statement "SELECT X.product.query('SKU').value('.','INT')" is not legal qualified name charcter!!!???  Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hi Manish, Thanks for your response.
    Here is a copy of my ZenProducts.xml:
    <Products>
    <Product>
    <SKU>1<</SKU>
    <Desc>Book</Desc>
    </Product>
    <Product>
    <SKU>2<</SKU>
    <Desc>DVD</Desc>
    </Product>
    <Product>
    <SKU>3<</SKU>
    <Desc>Video</Desc>
    </Product>
    I found the wrong "<<" in my xml file and changed it to the right "<" for the statement<SKU>1</sku>. I executed the corrected code and I got the following new message:
    Msg 2714, Level 16, State 6, Line 1
    There is already an object named 'Products' in the database.
    I don't know how to remove the old, existing the 'Products' object in the database and execute the corrected code again. Please kindly help, advise and tell me how to resolve this new problem.
    Many Thanks,
    Scott Chang
    P. S. I played with another project to get the 'Products' object in my database before. Frankly, I don't know where the old 'Products' object and the database are. Please enlighten me in resolving this matter more clearly.
    You welcome Scott, As Olaf mentioned in this post, there was already a table exists , so need to drop your Products table.
    Apart from this, I guess either you did not pasted the full XML file or what, I needed to have the (  </Products>)closing tag in your XML file as follows.
    <Products>
    <Product>
    <SKU>1</SKU>
    <Desc>Book</Desc>
    </Product>
    <Product>
    <SKU>2</SKU>
    <Desc>DVD</Desc>
    </Product>
    <Product>
    <SKU>3</SKU>
    <Desc>Video</Desc>
    </Product>
    </Products>
    You can use following script to drop if your 
    Products table is already existing.
    if exists(select 1 from sys.tables where name ='Products')
    drop table Products
    CREATE TABLE Products(
    sku INT Primary KEY,
    product_desc VARCHAR(30));
    INSERT INTO Products (sku, product_desc)
    SELECT X.product.query('SKU').value('.', 'INT'),
    X.product.query('Desc').value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'H:\ZenProducts.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('Products/Product') AS X(product);
    SELECT sku, product_desc
    FROM Products;
    Let us know if you face any other problem.
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

  • SQL Server 2012 Deploy Database to SQL Azure...

    I have spent many days trying to copy a simple test database from my PC to SQL Azure but with little success.  Then I installed SQL Server 2012 and see a new task:
    Deploy Database to SQL Azure...  It looks like an automated extraction to DAC and then creating the Azure database all in one step.
    I was elated, but got hit with the following three types of errors.
    One or more unsupported elements were found in the schema used as part of a data package.
    Error SQL71564: The element Extended Property: [dbo].[Accounts].[Address].[MS_Description] is not supported when used as part of a data package (bacpac).
    Error SQL71564: Table Table: [dbo].[Activities] does not have a clustered index.  Clustered indexes are required for inserting data in this version of SQL Server.
    Error SQL71564: Element User: [NT AUTHORITY\NETWORK SERVICE] has an unsupported property AuthenticationType set and is not supported when used as part of a data package.
     (Microsoft.SqlServer.Dac)
    May I know what I can do on the on-premise database to rid of the first and third error?
    Thanks.

    Hello,
    1) Remove the Extended Property from the (?) column Address in table Accounts.
    BTW, for small databases it's sometimes easiere to generate a script for the database (and modify it slightly) instead of using the Wizard
    Olaf Helper
    Blog
    Xing
    What is Extended Property?   What is this .MS_Description?   I can't see it in the table designer or the Column Properties.  (I don't know whether this was corruption caused by Data Sync I used earlier.)  How do I remove it.
    Of all the methods of copying SQL Server to Azure SQL, this one gives the least mistakes.  If I can solve this Extended Properties thing hopefully I can migrate the database over.

  • SQL Server 2012 Express bulk Insert flat file 1million rows with "" as delimeter

    Hi,
    I wanted to see if anyone can help me out. I am on SQL server 2012 express. I cannot use OPENROWSET because my system is x64 and my Microsoft office suit is x32 (Microsoft.Jet.OLEDB.4.0).
    So I used Import wizard and is not working either. 
    The only thing that let me import this large file, is:
    CREATE TABLE #LOADLARGEFLATFILE
    Column1
    varchar(100), Column2 varchar(100), Column3 varchar(100),
    Column4 nvarchar(max)
    BULK INSERT
    #LOADLARGEFLATFILE
    FROM 'C:\FolderBigFile\LARGEFLATFILE.txt'
    WITH 
    FIRSTROW = 2,
    FIELDTERMINATOR ='\t',
    ROWTERMINATOR ='\n'
    The problem with CREATE TABLE and BULK INSERT is that my flat file comes with text qualifiers - "". Is there a way to prevent the quotes "" from loading in the bulk insert? Below is the data. 
    Column1
    Column2
    Column3
    Column4
    "Socket Adapter"
    8456AB
    $4.25
    "Item - Square Drive Socket Adapter | For "
    "Butt Splice" 
    9586CB
    $14.51
    "Item - Butt Splice"
    "Bleach"
    6589TE
    $27.30
    "Item - Bleach | Size - 96 oz. | Container Type"
    Ed,
    Edwin Lopera

    Hi lgnusLumen,
    According to your description, you use BULK INSERT to import data from a data file to the SQL table. However, to be usable as a data file for bulk import, a CSV file must comply with the following restrictions:
    1. Data fields never contain the field terminator.
    2. Either none or all of the values in a data field are enclosed in quotation marks ("").
    In your data file, the quotes aren't consistent, if you want to prevent the quotes "" from loading in the bulk insert, I recommend you use SQL Server Import and Export Wizard tools in SQL Server Express version. area, it will allow to strip the
    double quote from columns, you can review the following screenshot.
    In other SQL Server version, we can use SQL Server Integration Services (SSIS) to import data from a flat file (.csv) with removing the double quotes. For more information, you can review the following article.
    http://www.mssqltips.com/sqlservertip/1316/strip-double-quotes-from-an-import-file-in-integration-services-ssis/
    In addition, you can create a function to convert a CSV to a usable format for Bulk Insert. It will replace all field-delimiting commas with a new delimiter. You can then use the new field delimiter instead of a comma. For more information, see:
    http://stackoverflow.com/questions/782353/sql-server-bulk-insert-of-csv-file-with-inconsistent-quotes
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL Server 2012 Service Pack 2 Configuration file path: is empty

    I have begun installing SQL 2012 Service Pack 2 on a test system and I go to the page where it is Ready to update.  The configuration file path: at the bottom of the screen was empty.  Is this normal or will I need to go to the default locations
    of Bootstrap to find the configuration file this upgrade is going to use?  This is something that is odd as a majority of our current installations is automated using a configuration file and a path for the Upgrade files.
    Rick

    Hi Rick,
    Based on your description, I make a test on my computer. When I go to the ‘Ready to update’ page, I also find that the ‘configuration file path’ box is empty, below is my screenshot. This is a normal phenomenon during the installation of SQL Server Service
    Pack.
    We don’t need to find the configuration file from SQL Server setup location, just click the Update button to perform the Service Pack installation. After the update process, I install SQL Server 2012 Service Pack 2 successfully.
    Besides, there is also a similar article about installing SQL Server Service Pack for your reference.
    Steps to Install SQL Server 2008 Service Pack 1 (SP1):
    http://www.mssqltips.com/sqlservertip/1764/steps-to-install-sql-server-2008-service-pack-1-sp1/
    Thanks,
    Lydia Zhang

  • SQL SERVER 2012 ADVENTUREWOPRKS2012 DATABASE ERROR

    IAM HAVING ERROR ON SUCCESSFUL ATTACHMENT OF ADVENTUREWORKS2012 DATABSE IN SQL SERVER 2012 BUT ON MAKING DATASET FOR VISUAL STUDIO 2012 ULTIMATE ITS GING ERROR THAT ADVENTURE WORKS 2012. PERSON. ADDRESS USER DEFINED TYPES ARE NOT SUPPORTED BY DATSET DESINGER
    AND NOT MAKING DATSET FOR VISUAL STUDIO 2012 ULTIMATE .ITS NOT SHOWING ANY TABLES DATA IN GRIDVIEW.....PLEASE HELP ME ANYONE ITS MAKING STOPPAGE IN MY PROJECT../...

    .. ADDRESS USER DEFINED TYPES ARE NOT SUPPORTED
    BY DATSET DESINGER AND ...
    NO NEED TO YELL, WE CAN HEAR YOU.
    As the message already says, UDT = user defined data types are not supported; see also this post:
    Custom data types in DataSet Designer
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Having Problems Loading SQL Server 2012 Express Database Engine

    Hi All,
    I keep getting a Database Engine failed when I download SQL 2012 Express.  I have loaded it 5 times.  My PC meets all the HW requirements listed.  All the other sections load.  Any idea why it is doing this?  

    Raju,
    Here is the log file, it shows some error codes, but I am unfamiliar with them.
    2014-06-06 07:51:58.60 Server      Microsoft SQL Server 2014 - 12.0.2000.8 (X64) 
    Feb 20 2014 20:04:26 
    Copyright (c) Microsoft Corporation
    Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    2014-06-06 07:51:58.60 Server      UTC adjustment: -6:00
    2014-06-06 07:51:58.60 Server      (c) Microsoft Corporation.
    2014-06-06 07:51:58.60 Server      All rights reserved.
    2014-06-06 07:51:58.60 Server      Server process ID is 1840.
    2014-06-06 07:51:58.60 Server      System Manufacturer: 'Hewlett-Packard', System Model: 'HP EliteBook 8540p'.
    2014-06-06 07:51:58.60 Server      Authentication mode is WINDOWS-ONLY.
    2014-06-06 07:51:58.60 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL12.TSQLLAB6\MSSQL\Log\ERRORLOG'.
    2014-06-06 07:51:58.60 Server      The service account is 'NT Service\MSSQL$TSQLLAB6'. This is an informational message; no user action is required.
    2014-06-06 07:51:58.60 Server      Registry startup parameters: 
    -d C:\Program Files\Microsoft SQL Server\MSSQL12.TSQLLAB6\MSSQL\DATA\master.mdf
    -e C:\Program Files\Microsoft SQL Server\MSSQL12.TSQLLAB6\MSSQL\Log\ERRORLOG
    -l C:\Program Files\Microsoft SQL Server\MSSQL12.TSQLLAB6\MSSQL\DATA\mastlog.ldf
    2014-06-06 07:51:58.60 Server      Command Line Startup Parameters:
    -s "TSQLLAB6"
    -m "SqlSetup"
    -Q
    -q "SQL_Latin1_General_CP1_CI_AS"
    -T 4022
    -T 4010
    -T 3659
    -T 3610
    -T 8015
    -d "C:\Program Files\Microsoft SQL Server\MSSQL12.TSQLLAB6\MSSQL\Template Data\master.mdf"
    -l "C:\Program Files\Microsoft SQL Server\MSSQL12.TSQLLAB6\MSSQL\Template Data\mastlog.ldf"
    2014-06-06 07:51:59.70 Server      SQL Server detected 1 sockets with 2 cores per socket and 4 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational message;
    no user action is required.
    2014-06-06 07:51:59.70 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2014-06-06 07:51:59.70 Server      Detected 3957 MB of RAM. This is an informational message; no user action is required.
    2014-06-06 07:51:59.71 Server      Using conventional memory in the memory manager.
    2014-06-06 07:51:59.72 Server      Default collation: SQL_Latin1_General_CP1_CI_AS (us_english 1033)
    2014-06-06 07:51:59.73 Server      Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
    2014-06-06 07:51:59.75 Server      Query Store settings initialized with enabled = 1, 
    2014-06-06 07:51:59.75 Server      The maximum number of dedicated administrator connections for this instance is '1'
    2014-06-06 07:51:59.75 Server      This instance of SQL Server last reported using a process ID of 7256 at 6/6/2014 7:51:52 AM (local) 6/6/2014 1:51:52 PM (UTC). This is an informational message only; no user action is required.
    2014-06-06 07:51:59.75 Server      Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message
    only. No user action is required.
    2014-06-06 07:51:59.76 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2014-06-06 07:51:59.76 Server      Database Mirroring Transport is disabled in the endpoint configuration.
    2014-06-06 07:51:59.76 Server      Software Usage Metrics is disabled.
    2014-06-06 07:51:59.76 spid8s      Warning ******************
    2014-06-06 07:51:59.76 spid8s      SQL Server started in single-user mode. This an informational message only. No user action is required.
    2014-06-06 07:51:59.76 spid8s      Starting up database 'master'.
    2014-06-06 07:51:59.82 spid8s      1 transactions rolled forward in database 'master' (1:0). This is an informational message only. No user action is required.
    2014-06-06 07:51:59.82 spid8s      0 transactions rolled back in database 'master' (1:0). This is an informational message only. No user action is required.
    2014-06-06 07:51:59.86 Server      CLR version v4.0.30319 loaded.
    2014-06-06 07:52:00.04 Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
    2014-06-06 07:52:00.07 spid8s      Service Master Key could not be decrypted using one of its encryptions. See sys.key_encryptions for details.
    2014-06-06 07:52:00.10 spid8s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
    2014-06-06 07:52:00.10 spid8s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
    2014-06-06 07:52:00.14 spid8s      SQL Trace ID 1 was started by login "sa".
    2014-06-06 07:52:00.14 spid8s      Server name is 'SEDTS-L0E8-0PUM\TSQLLAB6'. This is an informational message only. No user action is required.
    2014-06-06 07:52:00.15 spid14s     Error: 17190, Severity: 16, State: 1.
    2014-06-06 07:52:00.15 spid14s     Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.
    2014-06-06 07:52:00.16 spid14s     Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
    2014-06-06 07:52:00.16 spid14s     Error: 17182, Severity: 16, State: 1.
    2014-06-06 07:52:00.16 spid14s     TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property. 
    2014-06-06 07:52:00.16 spid14s     Error: 17182, Severity: 16, State: 1.
    2014-06-06 07:52:00.16 spid14s     TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property. 
    2014-06-06 07:52:00.16 spid14s     Error: 17826, Severity: 18, State: 3.
    2014-06-06 07:52:00.16 spid14s     Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
    2014-06-06 07:52:00.16 spid14s     Error: 17120, Severity: 16, State: 1.
    2014-06-06 07:52:00.16 spid14s     SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.

  • How do i connect to sql server 2012 from cmd .

    Hi ,
    I Installed sql server 2008 R2 and 2012 Express and sql server2014 . I can conect to sql server 2008 R2 using
    SQLCMD -L command .
    How do i connect to sql server 2012 express edition from cmd .
    Any Hep appreciated
    Thanks in advance,
    Shravan

    I HAVE ANOTHER INSTANCE NAMED TEST  WHEN I USE THE COMMAND IT GIVES ME THIS ERROR 
    HOW TO RECTIFY 
    C:\Users\HP>SQLCMD -S HP-HP/TEST
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Named Pipes Provider: C
    ould not open a connection to SQL Server [67]. .
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login timeout expired.
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : A network-related or in
    stance-specific error has occurred while establishing a connection to SQL Server
    . Server is not found or not accessible. Check if instance name is correct and i
    f SQL Server is configured to allow remote connections. For more information see
     SQL Server Books Online..
    PLZ HELP 

  • Problem with restoring database from backupset

    Hello,
    I'm newie in working with RMAN and I have problem with restoring database from backup set in my testcase.
    I've restored controlfile, but I couldn't restore database - it fails with:
    RMAN-00571: =============================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
    RMAN-00571: =============================================
    RMAN-03002: failure of restore command at 08/31/2006 12:06:47
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: 'C:\ORACLE\ORADATA\LOCA10G2\SYSTEM01.DBF'
    List of backupsets from restored controlfile
    (I restored controlfile by command: restore controlfile from 'C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP'; -- I have disabled controlfile autobackup, therefore I couldn't restore from autobackup);
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    36 Full 6.98M DISK 00:00:02 29-AUG-06
    BP Key: 36 Status: AVAILABLE Compressed: NO Tag: 01_CTL
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    Control File Included: Ckp SCN: 578469 Ckp time: 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    37 Full 322.96M DISK 00:00:27 29-AUG-06
    BP Key: 37 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    List of Datafiles in backup set 37
    File LV Type Ckp SCN Ckp Time Name
    1 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSTEM01.DBF
    2 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\UNDOTBS01.DBF
    3 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSAUX01.DBF
    4 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\USERS01.DBF
    BS Key Size Device Type Elapsed Time Completion Time
    38 650.50K DISK 00:00:00 29-AUG-06
    BP Key: 38 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113804
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    List of Archived Logs in backup set 38
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 32 577277 29-AUG-06 578529 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    39 Full 7.02M DISK 00:00:00 29-AUG-06
    BP Key: 39 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    Control File Included: Ckp SCN: 578493 Ckp time: 29-AUG-06
    SPFILE Included: Modification time: 28-AUG-06
    I can successfully crosscheck backup sets (by command crosscheck backup), but I couldn't restore database.
    Path C:\ORACLE\ORADATA\LOCA10G2\ exists and I have right privileges.
    Output of command restore database validate:
    RMAN> restore database validate;
         Starting restore at 31-AUG-06
         allocated channel: ORA_DISK_1
         channel ORA_DISK_1: sid=102 devtype=DISK
         data file 1 will be created automatically during restore operation
         data file 2 will be created automatically during restore operation
         data file 3 will be created automatically during restore operation
         data file 4 will be created automatically during restore operation
         restore not done; all files readonly, offline, or already restored
         Finished restore at 31-AUG-06
    What's wrong?
    Thanks
         Paul

    Hi,
    I think, that everything seems to be OK.
    Commands which I use to validation of existence backup:
    RMAN> crosscheck backup;
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=102 devtype=DISK
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP recid=36 stamp=599744172
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP recid=37 stamp=599744183
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP recid=38 stamp=599918805
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP recid=39 stamp=599918805
    Crosschecked 4 objects
    RMAN> list backup summary;
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    36 B F A DISK 29-AUG-06 1 1 NO 01_CTL
    37 B F A DISK 29-AUG-06 1 1 NO TAG20060829T113622
    38 B A A DISK 29-AUG-06 1 1 NO TAG20060829T113804
    39 B F A DISK 29-AUG-06 1 1 NO TAG20060829T113622
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    36 Full 6.98M DISK 00:00:02 29-AUG-06
    BP Key: 36 Status: AVAILABLE Compressed: NO Tag: 01_CTL
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    Control File Included: Ckp SCN: 578469 Ckp time: 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    37 Full 322.96M DISK 00:00:27 29-AUG-06
    BP Key: 37 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    List of Datafiles in backup set 37
    File LV Type Ckp SCN Ckp Time Name
    1 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSTEM01.DBF
    2 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\UNDOTBS01.DBF
    3 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSAUX01.DBF
    4 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\USERS01.DBF
    BS Key Size Device Type Elapsed Time Completion Time
    38 650.50K DISK 00:00:00 29-AUG-06
    BP Key: 38 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113804
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    List of Archived Logs in backup set 38
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 32 577277 29-AUG-06 578529 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    39 Full 7.02M DISK 00:00:00 29-AUG-06
    BP Key: 39 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    Control File Included: Ckp SCN: 578493 Ckp time: 29-AUG-06
    SPFILE Included: Modification time: 28-AUG-06
    RMAN> restore database validate;
    Starting restore at 04-SEP-06
    using channel ORA_DISK_1
    data file 1 will be created automatically during restore operation
    data file 2 will be created automatically during restore operation
    data file 3 will be created automatically during restore operation
    data file 4 will be created automatically during restore operation
    restore not done; all files readonly, offline, or already restored
    Finished restore at 04-SEP-06
    Is something wrong? After crosscheck backup set with system datafile is AVAILABLE.
    If i tried to test existence of backup pieces on disk and permissisons - everything is OK too:
    C:\>dir C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\
    Volume in drive C has no label.
    Volume Serial Number is E003-9FC6
    Directory of C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29
    29.08.2006 11:38 <DIR> .
    29.08.2006 11:38 <DIR> ..
    29.08.2006 11:38 666 624 O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    29.08.2006 11:36 7 340 032 O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    29.08.2006 11:37 7 372 800 O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    29.08.2006 11:36 338 657 280 O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    4 File(s) 354 036 736 bytes
    2 Dir(s) 56 865 202 176 bytes free
    C:\>copy C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\ C:\ORACLE\ORADATA\LOCA10G2\
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    4 file(s) copied.
    Thanks
    Pavel

  • Master Data Services not available under shared feature while installing SQL server 2012

    Hi,
    I am trying to install Master Data Services but do not see the option to select MDS under the shared features when going through the SQL server 2012 installation. I have the SQL server 2012 SP1 (64 bit) install files. I have also installed SP2. I havent
    found anything online about the issue.
    Can someone please advise?
    I have a screenshot of the installation screen which I will attach as soon as I am able to get my account verified. Thanks!

    Hi Revees,
    This might be a very naïve and also out of the original scope of the thread question.
    We are thinking of going with the developer edition. We have 2/3 developers and some other testers and business users.
    1) I understand that we need a developer license for each developer. But would we need a license for the business user. Can they have a sort of read access to the dbs?
    2) If a developer has MSDN subscription, Would they need to purchase the license too assuming we purchase the developer edition of the software (and not download it using the MSDN subscription)?
    Thanks for your assistance!

  • Finalizing SQL Server 2012 SP2 update

    Hi,
       I just successfully upgraded SQL Server 2012 Developer Edition from SP1 CU8 to SP2.
       Here is the actual portrait I have in my control panel (Installed programs + version):
           Version changed after SP2 update (through Windows Update):
             Microsoft SQL Server 2012 Express LocalDB                          11.2.5058.0
            Microsoft SQL Server 2012 Transact-SQL ScriptDom              11.2.5058.0
            Microsoft SQL Server 2012 Transact-SQL Compiler Service    11.2.5058.0
            Microsoft SQL Server 2012 Native Client                                11.2.5058.0
            Microsoft SQL Server 2012 Policies                                        
    11.2.5058.0
            Microsoft SQL Server 2012 Setup (English)                            11.2.5058.0
            Microsoft VSS Writer for SQL Server 2012                              11.2.5058.0
            Microsoft System CLR Types for SQL Server 2012                  11.2.5058.0
            SQL Server Browser for SQL Server 2012                               11.2.5058.0
          Version changed only after installing corresponding Features Pack component:
             Microsoft SQL Server 2012 T-SQL Language Service              11.2.5058.0    
             SQL Server Report Builder 3 for SQL Server 2012                  11.2.5058.0
             Microsoft SQL Server 2012 Management Objects                   11.2.5058.0
          Version did not change:
             Microsoft SQL Server System CLR Types                                10.51.2500.0
             Microsoft SQL Server 2012 Data-Tier App Framework            11.1.2902.0
    My questions:
    1. Am I missing any components update or is my actual SP2 setup OK?
    2. Even if I tried to install DACFramework SP2 Feature pack by running corresponding installer, it told me that I had an higher version...  Does any of you have a different version number for this component?
    3. I actually have SSDT for VS2010 installed.  The corresponding versions I actually have are the following:
               Microsoft SQL Server Data Tools 2010                                 
    10.3.31009.2
               Microsoft SQL Server Data Tools - enu                                 
    10.3.31009.2
               Microsoft SQL Server Data Tools Build Utilities - enu             10.3.31009.2
        Should I consider upgrading any component so they work with SQL 2012 SP2 properly?  If so, could someone provide me the corresponding download/webpage links?
    4. Finally, should I upgrade to CU2 which is actually available. Among other problems, I notice that it should fix an index rebuild problem.  Any other major issues it targets?  Is there any easy way I can test if I should install this update or
    not?
    Thanks for helping.

    Hi again,
      I knew I was at SP2 level now.  My request is more about the Features Pack components as well as the CU2 which is actually out:
    1- Features Pack components that I couldn't update:
             Microsoft SQL Server System CLR Types                                10.51.2500.0    
    --> presume was for VS2008
             Microsoft SQL Server 2012 Data-Tier App Framework            11.1.2902.0       --> is this the real last version?
    2- SQL Server Data Tools vs Visual Studio 2010 SP1 + SQL Server 2012 SP2
               Microsoft SQL Server Data Tools 2010                                 
    10.3.31009.2
               Microsoft SQL Server Data Tools - enu                                 
    10.3.31009.2
               Microsoft SQL Server Data Tools Build Utilities - enu             10.3.31009.2
        Do I have the last versions possible (VS2010) or should I update something?
    3- SQL Server 2012 SP2 CU2
        What simple test can I do in order to verify if I really need to install this patch or not?
    Thanks for helping!

Maybe you are looking for

  • My Library Won't Display Prior Mp3s

    Can someone help me figure out how to display my old mp3s in my my Library so that I can transfer them to my new Nano? My Library is only showing new disks that I have downloaded - they are showing up as .m4As. This is very frustrating.

  • Sound output to Airport Express horrible except through iTunes Airplay

    I've had an Airport Express for 2 or so months now, and I use it for both wifi routing as well as its Airplay functionality, wired into my stereo. I've used it with Airplay directly from iTunes as well as setting the system sound output on my Mac to

  • Unaccounted Payment transactions

    Hi, working in oracle applications 11i. We have a payment that cannot be accounted with error: APP-SQLAP-10710: Online accounting could not be created. Please submit the payables accounting process instead to create accounting entries for this transa

  • Color change of bar chart in webi .

    Hi All, I have created a Webi Report with drill-down functionality . Suppose i have data for 2 years 2008 & 2009 and i want color of both years to be different . When i drilldown i want colors of subsequent products to be composed of different colors

  • Customise Widget Menu Bar

    Hello could anyone please tell me how it would be possible to customise some images of Cupcakes to enlarge when a mouse is hovered over then. As I have an image of a Cupcake that I would like to use for menu options, where you hover over each one and