SQL 2012 database master key

Hi All ,
I have some issue to create database master key in SQL server 2012.
I have typed this command below:
USE master 
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'passwordbypolicy'
This is the error I got:
Msg 33094, Level 16, State 1, Line 2
An error occurred during Service Master Key decryption
Can somebody help.
Thanks ,

Below is the link for it:
http://msdn.microsoft.com/en-us/library/ms174382.aspx
Please be careful on your password part as there are some norm attached to it.
Also if it is giving you any more issues better clean your instance and try again. In some cases it doesn't  work as we might forget something to remove completely.
Santosh Singh

Similar Messages

  • Use a SQL 2012 database server with Reporting Services 2008?

    Hello, we have a SQL Server 2008 R2 Reporting Services Standard server with the reporting databases running on a SQL Server 2008 Standard database server. I would like to upgrade the database server to SQL Server 2012 before I upgrade the reporting server.
    Can I run SQL Server 2008 R2 Reporting Services against a 2008-version database running on a SQL 2012 database server? Thanks for your help.

     
    Hi Nicole
    Thanks for your posting.
    Are you asking if we can connect from SSRS 2008 r2 to a database sitting on SQL Server 2012.  Am I right?, please ignore me if I misunderstood your question. If that is your question
    then I think you will be able to using BIDS 2008, I have created A database on SQL Server 2012 and I use that database table inside  my SSRS 2008 R2 dataset. I can even think that you can use a database of compatibility level of 2012(110) as well
    Many thanks
    Syed Qazafi Anjum

  • SQL 2012 database behaves differently with a unique index and ignore_dup_key = on when inserting data. It works on SQL 2008 db

    If you have a table with a unique index and ignore_dup_key = on and you INSERT rows into that table with an ORDER BY clause (because you want to control which of the duplicate
    key rows gets inserted),  the wrong row gets inserted in SQL2012.  It works correctly in SQL 2008.
    We have recently migrated  a database from SQL 2008 to SQL 2012.  We do have few other dbs which are in compatability mode 100.  The above operation works fine
    in SQL 2008 dbs but not SQL 2012.
    I've even tried applying the latest patch for SQL 2012 SP2 with CU2. Still the problem exists.  I'm going to call MS support, but want to know if anyone has come across this problem ?

    The MS documentation doesn't guarantee that the first row of the duplicates will always be inserted and the next duplicate row(s) get(s) ignored. Where did you find it in the MS documentation? I think you were just lucky that it was always inserting the
    first row in SQL 2008 (and ignoring the rest of the duplicates) - I don't think this is guaranteed
    Satish Kartan http://www.sqlfood.com/

  • Backup and Restore of DQS (Data Quality Service SQL 2012) Databases

    We are currently using DPM 2010 running on Server 2008 R2 as our backup solution.  We will soon be leveraging the Data Quality Services in SQL 2012 along with the Master Data Service.  
    In the SQL 2012 documentation from Microsoft it states, “The backup and restore operations of the DQS databases must be synchronized.” 
    Otherwise the restored Data Quality Server will not be functional.  Currently I believe that DPM will run serialized backups of databases from one SQL server. 
    I was hoping someone could point me towards some documentation for backing up DQS with DPM. 
    Is anybody currently doing this?  If so have you been successful restoring?

    LogicalName cant be same for mdf and ldf. verify again with FILELISTONLY. Also you have put wrong logical name 
    MOVE N'OriginalDB' TO N'D:\sql data\TargetDB.mdf'
    Please paste the output of
    RESTORE FILELISTONLY FROM DISK = 'D:\backup.bak'

  • SQL 2012 Database Availability Group - Force Automatic Failover

    Hi All,
    I'd appreciate some help in understanding the following scenario in my test environment.
    I have created a DAG with 2 replica servers (both of which are HyperV VM's running W2012 Std).
    From a client PC in my test lab, I can connect to the virtual listener of my DAG and confirm via the "select @@servername" command that I am connecting to the primary replica server.
    Using the Failover Wizard, I can easily move to primary instance between my 2 nodes and the command above confirms that the primary replica server has changed. So far so good.
    What I wanted to test, was what would happen to my DAG in the event of a complete loss of power to the server that was acting as the primary replica server. At first, I thought I would stop the SQL Server service on the primary server, but this did not result
    in my DAG failing over to the secondary replica. I have found out that the only way I can do this is by effectively shutting down the primary server in a controlled manner.
    Is there any reason why either stopping the SQL Server service on the primary replica, or indeed forcing a power off of the primary replica does not result in the DAG failing over to the secondary replica?
    Thanks,
    Bob

    Hi,
    I would verify if Database Availability Group means AlwaysOn Availability Group.
    How did you set the FailureConditionLevel?
    Whether the diagnostic data and health information returned by sp_server_diagnostics warrants an automatic failover depends on the failure-condition level of the availability group. The failure-condition level specifies what failure conditions
    trigger an automatic failover. There are five failure-condition levels, which range from the least restrictive (level one) to the most restrictive (level five). For details about failure-conditions level, see:
    http://msdn.microsoft.com/en-us/library/hh710061.aspx#FClevel
    There are two useful articles may be helpful:
    SQL 2012 AlwaysOn Availability groups Automatic Failover doesn’t occur or does it – A look at the logs
    http://blogs.msdn.com/b/sql_pfe_blog/archive/2013/04/08/sql-2012-alwayson-availability-groups-automatic-failover-doesn-t-occur-or-does-it-a-look-at-the-logs.aspx
    SQL Server 2012 AlwaysOn – Part 7 – Details behind an AlwaysOn Availability Group
    http://blogs.msdn.com/b/saponsqlserver/archive/2012/04/24/sql-server-2012-alwayson-part-7-details-behind-an-alwayson-availability-group.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support
    Hi,
    Thanks for the reply.
    It's an AlwaysOn Availability Group.
    In my test lab, I have changed the quorum configuration to a file share witness and that has allowed an automatic failover when I turn the primary replica server off (rather than power it off).
    I'll take a look at the links you provided.
    Regards,
    Bob

  • Secure login to sql 2012 database for webusers

    We build up a new website in .net mvc 4.0 on a w2012 server with MSSQL 2012 database.
    We use windows autentification and normal anonymous access through NT AUTHORITY\IUSR who is also a login in the database.
    But we make extra login possibility for users who are registered and they can insert and modify data in some tables in the database. And I'am afraid of giving NT AUTHORITY\IUSR insert and update for some column in tables.
    I think of set up a new login for the database. Run a new connection string on login and set up special permission for that extra user on the database, set up a new role and let the new user become member, but also let the user become a member of the ordinary
    user(roles) in the database.
    Have anyone any idea what is the best practice here and the most secure way to do it? 
    Any links for other resources about this topic?
    Or perhaps my fear for using NT AUTHORITY\IUSR is groundless
    And perhaps someone has links to resources for using SQL server as a backendserver for websites. 
    Knut from Norway!

    I don't know much about web servers, which may explain your alternatives entirely.
    But, if you use the same connection string for reads that you do for updates, then you must control all permission for writes in the web app. And you must be sure that you only use parameterised SQL or stored procedures, so that there is no risk for SQL
    injection.
    If you give special logins for the users with read access, they would need their own accounts in SQL Server. If this is an intranet site, the web server may be able to impersonate these users and then connect to SQL Server. If that does not work out, you
    would have to create SQL logins for these.
    Obviously, this requires more administration, but it is also more secure, because you are adding a line of defence. Even if your application is free from SQL injection vulnerabilities today, some new badly educated kid on the block could open a hole two
    years later.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SQL 2012 Database Mirroring Issue is stalling

    hi All, 
    I have a SQL 2012 Enterprise Primary and DR SQL Clusters. 
    I have a 500 GB TDE Enabled Using HSM SQL DB which I have mirrored across to DR. 
    I am noticing that my Logs are shipping to DR, but the Unrestored Log size is huge and My restore rate is about 0 - 80KB/Sec. This is Causing the unrestored
    Log to grow on the DR side. 
    I also notice at times my Unsent Log is also getting big after any DB Maintenance activities (such as rebuild of indexes). 
    I have a dedicated connection between my datacenters and the traffic thruput is quite reasonable and I am able to copy out a 2GB File across within a few
    minutes. I see no packet drops within my links. 
    How do I ensure that my unsent logs are copied out and also increase my restore rate in DR side. 
    Any help / Suggestions will be much appreciated.   
    Regards 
    Aravin. 

    You need to limit the amount of reindexing you do on your primary/principal as it generates a lot of logs which slows down mirroring and log shipping.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • SQL 2012 database stuck in Recovery Pending status

    Hey all.  Thanks in advance to anybody that can please help me.  I have a SQL cluster which ran out of disk the other day.  I threw plenty more disk at the SAN.  However, 1 of the databases came back with Recovery Pending and has been
    over 24 hours.  I have tried to backup the database with no success.  I don't have a clean backup from the day it occured so would have a good amount of work missing.
    Running a dbcc check returns the following:
    Msg 945, Level 14, State 2, Line 1
    Database 'sqldb' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
    I have not tried a dbcc check with REPAIR_ALLOW_DATA_LOSS as there seems to be a high risk of losing whatever was going on.  Does anybody have an idea of how I can get the db back online?

    Just a note... the database is not in Suspect mode, it is in Recovery mode.  If there is a transaction in process, attaching and reattaching may or may not trigger the transaction to complete.    The answer would be different if the database
    were in suspect mode.  The fact that it is now in CHECKPOINT shows that there is an incomplete transaction.  Once back online, a backup can occur and the CHECKPOINT can resolve.
    http://support.microsoft.com/kb/110139?wa=wsignin1.0
    Seems to me this is more like a case where the database is in log ship mode.  In that case, the solution is relatively simple (this is not what needs to happen... it simulates what has happened):
    RESTORE DATABASE MyDB WITH RECOVERY
    USE master
    ALTER DATABASE MyDB SET OFFLINE WITH ROLLBACK IMMEDIATE
    ALTER DATABASE MyDB SET ONLINE
    RESTORE DATABASE MyDB WITH RECOVERY
    I don't believe you want to rollback anything though.  As you state above, the big trick is to bring it online.
    I think you can get it into Single User Mode and then from there, restore the diffs and the logs after backing up the tail, then restore the tail and put it back into multi-user mode.  Given the difference in opinion here, I am feeling a little gunshy.
    RESTORE DATABASE [MyDB]
    FROM DISK = 'c:\MyDB.BAK'
    WITH MOVE 'MyDB_Data' TO 'c:\data\MyDB.mdf',
    MOVE 'MyDB_Log' TO 'c:\data\MyDB_log.ldf' 
    R, J

  • Update sql 2012 database from access 2003

    Hi, all,
    I have a new sql server 2012 and has already created a database same as the one from access 2003. 
    Can someone give me a details or links how to update sql server 2012 through SSIS package? I know I could use import wizard but it is a customized version of SSIS. And I want to build my own project using SSIS package.
    source: access 2003 on old sql server 2005
    destination: sql server 2012.
    Thanks.

    you can try this
    http://www.mssqltips.com/sqlservertip/2484/import-data-from-microsoft-access-to-sql-server/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to convert sql 2012 database to 2008

    i have 2012 sql database file (.mdf ans .ldf ) how to connect same database in 2008 sql server . please help me its very urgent 

    i have 2012 sql database file (.mdf ans .ldf ) how to connect same database in 2008 sql server . please help me its very urgent 
    Hi,
    You cannot attach or restore(if you have a backup) msf and ldf file of SQL Server 2012 to SQL server 2008 its not allowed it will flash error. If its urgent you need to manually script out table definition with constraints and then create same table in SS
    2012 and then transfer data using import/export wizard
    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 Articles

  • Key is not visible in SQL 2012 R2 when query is read from SAP BI

    Hi All,
    I have a query in sap bi which has variables where key and text is displayed as per screen shot 1. How ever the same query is triggered from SQL 2012 r2 the key is not visible but text is visible as per screenshot 2  . Could any one suggest how the key will be displayed by there end(SQL).
    Thanks,
    Payani

    I think you're in the wrong space as yor screenshots are not from any Business Objects or SAP BI 4.x products I know.
    What exact product are you using ?
    this space is for SAP Business Objects products family.

  • BIDS or SQL data Tools for SQL 2012 SP1 database

    I want to start customising reports from my Win 7 workstations. The SCCM server is SQL 2012 SP1
    Do I need to install SQL Server Data Tools onto the workstation or can you still use BIDS (Visual Studio) from SQL 2008 media
    Also I have saved some custom report .RDL files from previous assignments. Can I convert these to point to this site's database for use in SQL 2012 ?
    Ian Burnell, London (UK)

    Thanks Garth - so if I install 2008 BIDS on my W7 workstation then I will be able to connect to the CM2012/SQL 2012 database?
    Yes you will be able to do that. I do it all the time for SQL 2005 or 2008 to SQL 2012 and SQL 2014. :-)
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SQL 2000 LINKED SERVER ERROR 7303 WITH SQL 2012 ON WINDOWS SERVER 2012 R2

    Hi all,
    I have a problem with SQL Server 2012 and a linked server for SQL 2000 database.
    System specification:
    Windows server 2012 64 bit
    SQL SERVER 2012 64 bit
    REMOTE SERVER SQL 2000 32 bit
    I've installed sql native client 32bit,create a SYSTEM DSN odbc connection with "SQL Server" driver named "MYSERVER".
    Create a linked server with the query below in SQL 2012:
    EXEC master.dbo.sp_addlinkedserver @server =N'MYSERVER', @srvproduct=N'MYSERVER', @provider=N'MSDASQL', @datasrc =N'MYSERVER', @location=N'System';
    EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'MySERVER',@useself=N'True',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULL
    GO
    but when i browse the linked server i receved error 7303.

    You need 64-bit MSDASQL. It is the bitness of the server you are connecting from that matters. 64-bit executables cannot hook into 32-bit DLL.
    However, I suspect that you will not get things to work anyway. At least I have not seen anyone this far who has been able to set up a linked server from SQL 2012 to SQL 2000. I know that when I tried this, the following providers had this result:
    SQLNCLI11 - does not support connections to SQL 2000.
    SQLNCLI10 - failed with some obscure message that I don't recall.
    SQLNCLI - Don't recall that the problem was here.
    SQLOLEDB - SQLOLEDB is always replaced with the most recent version of SQLNCLI, so this fails because of lack of support.
    I don't think I got through all version of the ODBC drivers, though.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • CDC for Oracle in SQL 2012 not writing updates

    Hello...
    I have set up a CDC for Oracle Service and Instance for use with SQL 2012.  After the instance was started, I inserted six rows of data into my Oracle table and a few minutes later, it looks like the changes were picked up by the service.
    The instance status page contains the following information:
    Status = Green Checkmark
    Detailed Status = PROCESSING
    Last Transaction Timestamp = 7/22/2014 12:11:56 PM
    Last Change Timestamp = 7/22/2014 11:58:35 AM
    Transaction Log Head Change Number = 0x0A2C1C...
    Transaction Log Tail Change Number = 0x0A2C1C... (not the same value as the head)
    Current Change Number = 0x0A2C1C...
    Active Transactions = 1
    Staged Transactions = 0
    Completed Transactions = 0
    Written Changes = 0
    Read Changes = 6
    It looks like the six rows have been read, but they are not being written to cdc.CDC_TEST_TABLE_CT on my SQL 2012 database.
    I exported the diagnostic data using the "Collect Diagnostics" link, but there are no errors in the log.  Is there a primer for how to read the results of the diagnostics?
    I had the following error earlier today:
    "ORACDC517E:Oracle Call Intreface (OCI) method failed: ORA-01291: missing logfile 
    ORA-06512: at "SYS.DBMS_LOGMNR"
    But that error was resolved when my Oracle account was granted DBA and "execute_catalog_role" permissions.
    The account being used for the CDC Service and Instance has dbo rights on the SQL Server.
    Does anyone have an idea what the problem could be?
    Any help would be greatly appreciated.
    Thanks!

    Arthur, thank you for responding.  I appreciate it! :)
    I followed the instructions from Rakesh Parida's video on Technet.  Below are the individual steps I followed for creating the CDC Service and Instance.
    CDC Service Setup:
    I made sure that supplemental logging was enabled on my Oracle server.  I also made sure that my Windows account had DBA and "execute_catalog_role" permissions on the Oracle database.
    From the CDC Service Config MMC I ran Action>Prepare SQL Server which created the MSXDBCDC database.
    I then ran Action>New Service and entered the following information:
    Service name: OracleCDCService1
    Service Account: "This Account" radio button with my Windows username and password information
    Associated SQL Server: <My SQL 2012 Server>
    Authentication: Windows authentication
    I also provided a CDC Service master password.
    CDC Instance Setup:
    Connected to <My SQL 2012 Server> using the CDC Designer MMC
    Went through the steps of creating the Oracle CDC Instance
    Oracle CDC Instance Name = CDC_TEST_SOURCE
    Connected to my Oracle DB using Windows authentication
    Selected a single table that I wanted to try CDC on and left CDC Gating Role blank
    Ran the Oracle Logging script that enables table logging and supplemental log groups on the Oracle DB
    Ran the Status Check step and all passed
    Finished the wizard and started the instance
    A few minutes after the instance was started I added six records to the table in Oracle.
    Please let me know if you need more info.
    Thanks!

  • SQL 2012 Databse Migration to Windows Azure SQLDatabase

    Hello Experts
    Please advise on the following issues, thank you.
    If we want to migrate a SQL 2012 database to windows Azure SQL Database by implementing the Contained database features, can you pleas explain the procedures or steps, thank you for your help as always.
    Regards

    Hi,
    Here are some links on deploying database to SQL Azure.
    How to Deploy a Database to Azure
    http://azure.microsoft.com/en-us/documentation/articles/sql-database-deploy/
    How to Migrate an On-Premises SQL Server 2012 Database to Windows Azure SQL Database
    http://blogs.msdn.com/b/brunoterkaly/archive/2013/09/26/migrating-an-on-premises-sql-server-2012-database-to-windows-azure-sql-database.aspx
    Using the Deploy Database to SQL Azure Wizard in SQL Server Management Studio to move to the Cloud
    http://www.mssqltips.com/sqlservertip/3035/using-the-deploy-database-to-sql-azure-wizard-in-sql-server-management-studio-to-move-to-the-cloud/
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • Setting minimum order level in BC?

    Is there an easy way to set a minimum total order level in BC and enforce it by not allowing Check Out at lower $ amounts?  I've tried setting all of my shipping options to a $150 minimum level and then setting the shipping validation in the buy butt

  • E1200 weird connection problem

    Recently I got a brand new E1200 from the Cisco store to replace Apple Extreme Base station for my home wireless network. The router deployed just fine except one weird problem. While all devices (desktops, laptops, cell phones, iPad) can access the

  • Flat file conversion issue

    Hi all, I'm doing a IDOC to Flat file scenario, now after the mapping and FCC I have an output in this way: SOLD_TO,SHIP_TO,BILL_TO,0000300623,0000300622,0000500569 But I want it in this way: SOLD_TO,0000300623,SHIP_TO,0000300622,BILL_TO,0000500569 W

  • Re-Install Creative Suite - Activation preserved?

    I have the Creative Suite CS4 Master Collection installed and activated on my main Hard Drive. Because I am running out of disk space, I will add a 2nd disk to the laptop and plan to uninstall the Suite and re-install on that new disk. Will the activ

  • Officejet 6700 margin problems printing from Mac

    I recently purchased and setup a  new HP 6700 all in one wireless printer and have a problem that I can't seem to solve or find a solution for.  Printing from my Mac's leaves margins cutting the top and bottom off of documents.  I've printed the same