SQL 2012 Express end date of distribution

For SQL Server Express 2012 is there an end date for when a customer is no longer allowed to distribute it?
If so, what is that date? And where can we find it posted on a MS web page?
Does the customer need to register for SQL 2012 Express to get the redistribution rights as well?
Thanks

Hi Nikki,
As is mentioned in the article
Microsoft Support Lifecycle, SQL Server 2012 Express is supported until 2017, and the extended support end date of SQL Server 2012 Express is 12/07/2022.
However, SQL Server Express exists as a free SQL Server edition, fully compatible with and easily upgradeable to higher SQL Server editions. You can download SQL Server 2012 Express directly from below link and install it on your computer.
http://www.microsoft.com/en-us/download/details.aspx?id=29062
Thanks,
Lydia Zhang

Similar Messages

  • Conversion from SQL 2005 to SQL 2012 Express

    Looking to move a small database from SQL 2005 to SQL 2012 Express - can a 2005 backup file be restored to a newly created 2012 Express database file?

    Are you using 2005 express? Yes, you can do that
    http://technet.microsoft.com/en-us/library/ms177429.aspx
    Note that if you restore a SQL Server 2005 or SQL Server 2008 database to SQL Server 2012, the database is automatically
    upgraded. 
    Also you
    cannot
    do a  cross
    edition restore i.e. from enterprise edition (2005) backup to 2012 express
    Satheesh
    My Blog

  • Providing configuration file for SQL 2012 Express installation which installing HPC 2012 R2

    Hi guys,
    I need to know if there is any way to provide configuration file for SQL 2012 Express installation which installing HPC 2012 R2?
    I am scripting installation on HPC 2012 R2 with default SQL 2012 Express edition but I am not able to find any option to provide a configuation file for SQL 2012 Express installaiton.
    Thanks,
    Vivs.

    Hi Vivs,
    As my understanding, you want to generate a configuration file and install SQL Server 2012 express edition using that configuration file.
    If that is the case, firstly, you could generate the configuration file following the steps below since express edition is run in AutoAdvance mode which skips "Ready to Install" page.
    1.Double-click SQL Server installation file in your local drive, you will see that the file will be extracted to a temporary folder. Please make a note of what directory it is extracted to. For example, it could be in c:\ followed by a folder name which
    will be a set of random letters and numbers "gy7h8hjhhj67rfs7".
    2.Cancel installation. Then click on the Start button on the task bar, click run, type the command cmd.exe, and go to that directory via cmd.
    3.Execute the following command: setup.exe /ACTION=INSTALL /UIMODE=Normal
    4.Follow the wizard through to the 'Ready to Install' page. The path to the configuration file is specified in the 'Ready to Install' page in the configuration file path section.
    5.Cancel the setup without actually completing the installation, to generate the INI file.
    Secondly, to install SQL Server using Command Prompt, go to the SQL Server installation media root (the temporary folder) from the command prompt and specify the ConfigurationFile.ini as a parameter as shown below.
    Setup.exe /ConfigurationFile=ConfigurationFile.INI
    For more information about the process, please refer to the article:
    http://www.mssqltips.com/sqlservertip/2511/standardize-sql-server-installations-with-configuration-files/
    Regards,
    Michelle Li

  • Sql 2012 express edition upgrade

    Hi,
    I have a SQL 2014 standard license.  How can ı SQL 2012 Express edition upgrade to SQL 2012 standard edition ?

    Hello,
    You can upgrade the Edition with the SQL Server installer, see MSDN
    Upgrade to a Different Edition of SQL Server 2014 (Setup)
    But why do you want to stay on Version 2012 if you have a license for the newer Version 2014?
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Installing IBuySpy Database using SQL 2012 Express

    Hi,
    I am attempting to install a store application called IBUYSPY from a script file I received from the a book - Pro WPF 4.5 with C#. I get an error as follows:
    Program Location:
       at System.Data.SqlTypes.SqlBinary.get_Value()
       at Microsoft.SqlServer.Management.UI.VSIntegration.DebugSession.DebugCallbacks.OnSqlInitializeDebuggingEvent(ISqlInitializeDebuggingEvent sqlInitializeDebuggingEvent)
       at Microsoft.SqlServer.Management.UI.VSIntegration.DebugSession.DebugCallbacks.Microsoft.VisualStudio.Debugger.Interop.IDebugEventCallback2.Event(IDebugEngine2 debugEngine, IDebugProcess2 debugProcess, IDebugProgram2 debugProgram, IDebugThread2
    debugThread, IDebugEvent2 debugEvent, Guid& riidEvent, UInt32 attribute).
    I just simply double clicked the Store.sql script provided. Any suggestions on how to fix this would be appreciated The script is rather long but I can supply that if needed. Thank you.
    Soincerely,
    Om

    Are you trying to install application or sql server 2012 ? Can you explain us with more details, this error doesnt looks like a sql installation related...
    Raju Rasagounder Sr MSSQL DBA

  • SQL 2012 AlwaysOn Dual Data Centre (an instance in each data centre with a secondary in each other respectively)

    Hi, hopefully someone will be able to find my scenario interesting enough to comment on!
    We have two instances of SQL, for this example I will call them 'L' and 'J'. We also have two data-centres, for this example I will call them 'D1' and 'D2'. We are attempting to create a new solution and our hardware budget is rather large. The directive
    from the company is that they want to be able to run either instance from either data centre. Preferably the primary for each will be seperated, so for example:
    Instance 'L' will sit in data centre 'D1' with the ability to move to 'D2', and...
    Instance 'J' will sit in data centre 'D2' with the ability to move to 'D1' on request.
    My initial idea was to create a 6-node cluster - 3-nodes in each data centre. Let's name these D1-1, D1-2, D1-3 and D2-1, D2-2, D2-3 to signify which data centre they sit in.
    'L' could then sit on (for example) D1-1, with the option to move to D1-2 (synchronously), D2-1,D2-2 (a-synchronously)
    'J' could sit on D2-3, with D2-2 as a synchronous secondary and D1-3,D1-2 as the asynchronous secondaries.
    Our asynchronous secondaries in this solution are our full DR options, our synchronous secondaries are our DR option without moving to another data centre site. The synchronous secondaries will be set up as automatic fail-over partners.
    In theory, that may seen like a good approach. But when I took it to the proof of concept stage, we had issues with quorum...
    Because there are three nodes at each side of the fence (3 in each data centre), then neither side has the 'majority' (the number of votes required to take control of the cluster). To get around this, we used WSFC with Node and File Share majority - with
    the file share sitting in the D1 data centre. Now the D1 data centre has 4 votes in total, and D2 only has 3.
    This is a great setup if one of our data centres was defined as the 'primary', but the business requirement is to have two primary data centres, with the ability to fail over to one another.
    In the proof of concept, i tested the theory by building the example solution and dropping the connection which divides the two data centres. It caused the data centre with the file share to stay online (as it had the majority), but the other data centre
    lost it's availability group listeners. SQL Server stayed online, just not via the AG listener's name - i.e. we could connect to them via their hostnames, rather than the shared 'virtual' name.
    So I guess really I'm wondering, did anyone else have any experience of this type of setup? or any adjustments that can be made to the example solution, or the quorum settings in order to provide a nice outcome?

    So if all nodes lost connectivity to the fileshare it means that there are a total number of 6 votes visible to each node now. Think of people holding up their hands and each one can see the hand. If the second link between the two sites went down then each
    node on each side would only see 3 hands being held up. Since Quorum maximum votes =7, the majority needed to be seen by a node would be 4. So in that scenario, every node would realize it had lost majority and would offline from the cluster.
    Remember that quorum maximum (and therefore majority), never changes *unless* YOU change node weight. Failures just mean then is one less vote that can be cast, but the required majority remains the same.
    Thanks for the complement btw -very kind! I am presuming by your tag that you might be based in the UK. If so and you are ever nearby, make sure you drop by and say hello! I'll be talking at the
    London SQL UG two weeks from today if you are around.
    Regards,
    Mark Broadbent.
    Contact me through (twitter|blog|SQLCloud)
    Please click "Propose As Answer" if a post solves your problem
    or "Vote As Helpful" if a post has been useful to you
    Come and see me at the
    PASS Summit 2012

  • Why can't I work with SQLCe files in SQL 2012 Express?

    I installed SQL2012 Express with the latest sp and have not been able to modify a SqlCe version 4.0 database. Comments from will be appreciated.
    thanks

    Hi,
    SQL Server Management Studio does not support SSCE 4.0. You can use SSCE 4.0 Design Tools(SSCEVSTools) which installs the SQL Server Compact
    4.0 design-time components with Visual Studio.
    Does Sql Management Studio work with SSCE 4.0?
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7588375e-3069-4d68-9365-29feb25b7296/does-sql-management-studio-work-with-ssce-40?forum=sqltools
    VS 2010 SP1 and SQL CE
    http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010-sp1-and-sql-ce.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Instance failure, in System.Data in sql 2012

    On Win Server 2012 Standard I have a C# app that runs fine with sql 2008 express. When I installed sql 2012 express I get "instance Failure" source: System.data. when the following LYNQ query executes:
    //MessageBox.Show("Starting GetInitialPortStatus.");
    db =new
    DataClasses1DataContext();   //establish
    dataconnection to CALMasterSQL
    // 2. Query creation.
    var PortsQuery =from
    portrecord in db.Channels
    select portrecord;
    // 3. Query execution.
    int count = 0;
    // MessageBox.Show("Starting >portrecord in PortsQuery<.");
    foreach (var
    portrecord in PortsQuery)           
    // add rows to the grid for each record in the database Ports table
    Otherwise the app works fine. The closet fix in the forum I could find was to run
    exec sp_configure 'user instances enabled',
    1.
    Go
    Reconfigure
    Which I did but no change.
    How can this be corrected. It seems like it is a known issue but no fix for sql 2012?
    Thanks
    Morris
    Thank you Morris

    Thanks for your reply.
    The connection string is:
    <add name="CMMainWindow.Properties.Settings.CALLMASTERConnectionString"
                connectionString="Data Source=HLA2012\\SQL2012EXP;Initial Catalog=CALLMasterSQL;Integrated Security=True;Connect Timeout=5"
                providerName="System.Data.SqlClient" />
    The SQl instance is call "SQL2012EXP". There is also SQL 2008 Express on the same machine called SQLExpress.
    Both engines work fine in every other way.
    Thanks
    Morris
    Thank you Morris
    Hi MoCoder,
    According to your description, if it contains a double-slash between the server name and the database instance name in your connection string, it should be localhost\SQLEXPRESS. There is a similar issue about instance failure when connecting to SQL Server
    Express in C# application. You can review the following article.
    http://www.hanselman.com/blog/FixingInstanceFailureWhenConnectingToSQLServer2005Express.aspx
    In addition, Make sure your SQL Server instance(MSSQLSERVER) is running via the services management console.
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • 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.

  • Sql server 2012 express - tcp/ip connection to named instance using dynamic port not working

    I have a named instance on a SQL 2012 Express server that won't connect via TCP/IP when wanting to connect off of the dynamic port.  I can connect via shared memory locally on the server.   I can connect to the namespace when specifying the
    dynamic port listed in the configuration manager.  
    This is the only named instance on the server and it is not the default.
    TCP/IP is enabled
    Allow Remote connections is enabled
    the server browser service is running
    I can connect via the dynamic port number
    I am testing the connection locally on the server, so I don't believe a firewall is the issue.  I get the same results if I test it from a remote computer.
    When using the sqlcmd (sqlcmd -S tcp:SQLSRVR\NAMEINST -E) I get the message that "the requested protocol isn't supported [xfffffffff]".   The command (sqlcmd -S tcp:SQLSRVR\NAMEINST,59992 -E) works.
    Through SSMS, I get the message "the connection was actively refused".
    On other boxes, I can connect with the named instance without having to specify the port. 
    I have looked through the sql logs and nothing much shows up.  The log does show that is listening on the port # for ipv4 and ipv6.   There is also a line in there talking about the SPN not being registered and not to worry about it if
    you are not using Kerberos.  I logged in through shared memory and it said I was using NTLM.
    Any help would be appreciated.
    thanks.

    Hi clw,
    I’m writing to follow up with you on this post. According to your description, I do a test, if you configure the database engine to listen on a specific TCP port (59992), and
    the port is opened in the firewall. If you want to connect to the SQL Server instance, you 'd better to
    use the port number.
    In my opinion, by default, the default instance of the Database Engine uses port 1433, usually, if you have configured the server to listen on a non-default port number, when an instance of SQL Server uses dynamic port allocation, the connection string that
    is built at the SQL Server client does not specify the destination TCP/IP port unless the user or the programmer explicitly specifies the port. Therefore, the SQL Server client library queries the server on UDP port 1434 to collect the information about the
    destination instance of SQL Server.
    If UDP port 1434 is disabled, the SQL Server client cannot dynamically determine the port of the named instance of SQL Server. Therefore, the SQL Server client may be unable to connect to the named instance of SQL Server. In this situation, the SQL Server
    client must specify the dynamically allocated port where the named instance of SQL Server is listening.
    For more information about configuring an instance of SQL Server to listen on a specific TCP port or dynamic port, you can review the following article.
    https://support.transfrm.com/entries/503111-How-to-configure-an-instance-of-SQL-Server-to-listen-on-a-specific-TCP-port-or-dynamic-port
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL Server 2012 Express Install on Windows 7 SP1 Embedded not using virtual account?

    Hi there,
    I did a default installation of SQL Server 2012 Express on Windows 7 embedded Standard SP1.
    When I look at the SQLSERVER service credential it is configured to run under "NETWORK SERVICE" instead of the virtual account "NT SERVICE\MSSQL$SQLEXPRESS".
    This is different from SQL 2012 Express installation on a non-embedded Windows 7.
    Why is this difference?
    Secondly, because of this, I am unable to take a backup of databases to any folder other than the default SQL folder.

    Hi Chandrasekaran,
    As Local Service account, the Network Service account and high privileged Local System account could be used by many services.
     It becomes harder to track which service is actually accessing resources and performing actions, because all the services are using the one Network Service account or other account.
    In Windows7 and Windows Server 2008R2, it introduces a new type of account called a virtual account, which emulates creating many unique instances of the Network Service account, so each service runs with its own instance of the Network Service account.
      For example, when you install SQL 2012 on Windows Server 2008 R2 or Windows 7 and later you’ll see the services run with virtual service accounts named like:
    in the format NT SERVICE\<SERVICENAME>.
    According to your description, when the SQLSERVER service was run under “NETWORK SERVICE”, you only back up database to the default SQL folder. It may be caused by the NETWORK SERVICE account has limited local privileges, just accesses network
    resource with the computer credential. I recommend you change the account to Local System account, by default, which has full permissions on your computer.
    For more information about SQL Server service account and virtual account, you can review the following articles.
    http://www.travisgan.com/2013/06/sql-server-service-account-and-per.html
    http://www.sqlservercentral.com/blogs/sqldbauk/2014/01/13/sql-server-2012-and-virtual-service-accounts/
    http://msdn.microsoft.com/en-us/library/ms143504(v=sql.110).aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL Server 2012 Express: Password emergency

    I am trying to reset sa password on SQL 2012 Express as it described on
    http://technet.microsoft.com/en-us/magazine/jj853293.aspx
    When I execute SQLSMD command it fails with following message.
    Msg 15247, Level 16, State 1, Line 1
    User does not have permission to perform this action.
    Is there any secret on
    SQL 2012 Express?

    You need to restart in single-user mode first.
    See
    http://blogs.msdn.com/b/dbrowne/archive/2010/06/11/batch-file-to-local-administrators-a-sysadmin-login-in-sql-server.aspx
    eg
    net stop mssql$sqlexpress
    net start mssql$sqlexpress /mSQLCMD
    sqlcmd -S (local)\sqlexpress -Q "if not exists(select * from sys.server_principals where name='BUILTIN\administrators') CREATE LOGIN [BUILTIN\administrators] FROM WINDOWS;EXEC master..sp_addsrvrolemember @loginame = N'BUILTIN\administrators', @rolename = N'sysadmin'"
    net stop mssql$sqlexpress
    net start mssql$sqlexpress
    sqlcmd -S (local)\sqlexpress -Q "if exists( select * from fn_my_permissions(NULL, 'SERVER') where permission_name = 'CONTROL SERVER') print 'You are a sysadmin.'"
    David
    David http://blogs.msdn.com/b/dbrowne/

  • SQL Server 2012 Express on Window 8.1 64 bit version?

    Hi,
    I´m trying to install SQL Server 2012 Express on Windows 8.1 64 bit version. When I reach the point of "Installing Setup Files", of the installation process, the installation seems to halt. I´ve tried both the 32 bit and 64 bit versions of SQL 2012
    Express. I´ve installed SQL 2012 Express several times before on other Windows versions but I´ve never encountered this problem. Is it a known SQL Server 2012 Express/Windows 8.1 64 bit compability problem?
    Thanks in advance!
    Martin

    SQL Server 2012 express can be installed in windows 8.1 all you need to take care is that you meet
    hardware and software requirements . Please read the article in hyperlink carefully.Make sure you have internet connection because it is required. Make sure you meet all .net
    framework requirements
    Below link would be helpful as well.
    How to use SQL server on Windows 8 environment
    Please remove any previous failed installation of SQL server from add remove program. If you still face issue please refer to Solution section of
    this link for manual un installation.
    Finally you can locate log files present at location
    C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\summry.txt for details about log
    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

  • Change Tracking in SQL 2012 - Behavior Change

    Hi,
    We observed some change in behavior for Change Tracking feature in SQL 2012 Express. Sequence is as follows,
    CT is not enabled at DB level. (Of course at table level too)
    Created and populated table CTTEST with some rows, say 10 rows
    Enabled CT at DB level
    Enable CT for table CTTEST
    Queried change tracking data, using change table function (select CT.* from CHANGETABLE(changes CTTEST, 0) CT). No rows returned. Perfect.
    Updated few existing rows
    Queried change tracking data using CHANGETABLE function as above. Now it returns the modified records. But SYS_CHANGE_OPERATION column shows as 'U', indicating update. Same scenario was tested in SQL 2008 Express, and we got SYS_CHANGE_OPERATION column
    as 'I', indicating as Insert. 
    Is this a change in behavior? Can somebody clarify this?
    Note: SQL Version is, "Microsoft SQL Server 2012 - 11.0.2100.60 (X64) Express Edition  (Build 7601: Service Pack 1)"

    Please note that I am not talking about CDC, but CT - Change Tracking and that too in Express edition. 
    Yes, I know, when we update primary key value, we will get a delete and insert transactions in CT. But my scenario is different. I am updating the rows, which are already available prior to enabling Change Tracking in that table. In that case only, I am
    observing this. 

  • SQL query to group data by Code and dates

    Hi There,
    I have the following table structure
    col1 col2 col3
    code1 21-jan-2012 tested
    code1 20-jan-2012 tested
    code1 01-jun-2012 tested
    code2 01-jun-2012 tested
    code3 04-jun-2012 tested
    so on
    The output should be some thing like
    code Week1 week2 week 3 week4 week5 till about last 14 weeks from the date we are running
    code1 1 0 0 0 0
    code2 1 0 0 0 0
    code 3 0 1 0 0 0
    where 1, 0 is actually the counts and not sum and the week in this case, should have maybe been since we are in the second week it should have been
    code .....................week3 may week4 may week1 jun week2june
    Was looking for suggestions on how to get this done.
    I am assuming this would require some sort of a pivot query?
    Thanks,
    Sun

    Hi, Sun,
    sun1977 wrote:
    Thanks EKH,
    Yes, in lines of the output of this query. Is it possible to,
    1. In the query, if condition is met, the it simply displays 1 else 0. Basically, we need to get the count of the number of the codes in that week. So if code 1 happened 5 times, it should show 5.Sure; use COUNT instead of MAX.
    2. Provide the output between two dates. Lets say, I have to do it for the last 14 weeks from sysdate. Then will the logic of week1 = 1 work?Use date arithmetic to get the number of days between the starting date and col2, then divide by 7 to get the number of weeks. Use that number instead of the value returned by TO_CHAR.
    3. any suggestions if the counts have to be changed to percentages. How can we have the percentage value showingYou can do that. Exactly how depends on exactly what you want. It may involve using the analytic RATIO_TO_REPORT function in a sub-query. Post the exact results you want from the sample data that Ekh posted (or new sample data that you post), and explain how you get those results from that data.
    4. Would we also be able to add a date bind value. Lets say, if the user selects start date as may, 1st, 2012 and end date as jun5th. It sort of shows the same data but in weekly format for the weeks between the period selected?Sure, just use those values in a WHERE clause. The output needs to have a fixed number of columns, however. Say that number is 14. You can give a range that only covers 5 weeks, but the output will have 9 0's at the end of every row. You can give a range that covers 15 or more weeks, but the weeks after 14 will not be shown. To get around that requires dynamic SQL (if you want each week in a real column) or string aggregation. See {message:id=3527823}
    Point 3 is different from point 1 as in, the first one would be maybe using your logic but hardcoding for 14 weeks. Point three would be a little more dynamic.
    Thanks for your time.
    Sun
    Edited by: sun1977 on Jun 7, 2012 2:28 AM
    EXEC  :start_dt_txt := '01-May-2012';
    EXEC  :end_dt_txt   := '05-Jun-2012';
    WITH  got_week_num  AS
         SELECT  col1, col2
         ,     1 + FLOOR ( (col2 - TO_DATE (:start_dt_txt, 'DD-Mon-YYYY'))
                         / 7
                     )     AS week_num
         FROM    t
         WHERE     col2     >= TO_DATE (:start_dt_txt, ':DD-Mon-YYYY')
         AND     col2     <  TO_DATE (:end_dt_txt,   ':DD-Mon-YYYY') + 1
    SELECT       col1
    ,       COUNT (CASE WHEN week_num =  1 THEN 1 END)     AS week_1
    ,       COUNT (CASE WHEN week_num =  2 THEN 1 END)     AS week_2
    ,       COUNT (CASE WHEN week_num =  3 THEN 1 END)     AS week_3
    ,       COUNT (CASE WHEN week_num =  4 THEN 1 END)     AS week_4
    ,       COUNT (CASE WHEN week_num =  5 THEN 1 END)     AS week_5
    ,       COUNT (CASE WHEN week_num =  6 THEN 1 END)     AS week_6
    ,       COUNT (CASE WHEN week_num = 14 THEN 1 END)     AS week_14
    FROM       got_week_num
    GROUP BY  col1
    ORDER BY  col1
    ;Edited by: Frank Kulash on Jun 7, 2012 5:53 AM

Maybe you are looking for

  • Execution of  infopackage by change in data selection without client open

    Hi, In BI Prd if we suppose to execute a infopackage manually by changing its data selection then how to execute with out opening client. Regards, Kiran

  • Has anyone running across spontaneously jumping windows in Firefox

    What I am seeing so far just in Firefox 1.5.0.1 occurs only when I drag a window in Firefox. The window very frequently jumps to some other location to where I'm draggin it. Sometimes, it jumps back to the original location. Other times, it jumps bey

  • Servelt best practices

    I have a single page that displays two lists, one for javascript generated dropdowns and another for the results of its selection. The dropdown list needs to be on every page. Lets just say I am searching for horses by state and county. I think the n

  • Java Web Service that accepts DIME attachments?

    Hi guys here's my situation.. I am required to build a Java webservice that can take a file attachment and various other parameters(I have the parameters bit sorted, and can access them fine using .net's WSE). I need to access this webservice and sen

  • Why do images I export look darker than they do in Aperture?

    I'm using Aperture 3.2.3.  Onscreen Proofing is on and set to sRGB IEC61966-2.1.  In my image export settings, I've also selected sRGB IEC61966-2.1 and Gamma Adjust is set to 1.0 (which should mean no change, right?). If I export an image and then vi