Install Both SQL Express 2012 & LocalDB on Same Dev PC?

Q. How do I install both SQL Express 2012 & LocalDB 2012 on the same development PC?
I tried running the LocalDB 2012 Wizard installer and it failed because I have a 'Higher Version' of SQL Express installed.
I currently cannot run a web app using LocalDB unless I 'Attach' the database file in SQL Express 2012.

Hi, you should be able to install both Express and LocalDB on the same machine.  Can you run the discovery report to show exactly what is on your machine from a SQL Server perspective?  Also, which version of Express and which version of LocalDB
are you trying to install?
Thanks,
Sam Lester (MSFT)
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.

Similar Messages

  • CAS Policy Manager error when installing Server SQL express 2012

    Hello everyone,
    I was wondering if anyong can help me with this.
    I am trying to install SQL server express 2012 on a windows 7 computer and am unable to install it.
    When I try to start the installer I get the error "Microsoft .NET Framework CAS Policy Manager has stopped working"
    Problem signature:
      Problem Event Name: APPCRASH
      Application Name: caspol.exe
      Application Version: 2.0.50727.5420
      Application Timestamp: 4ca2b8df
      Fault Module Name: ntdll.dll
      Fault Module Version: 6.1.7601.18247
      Fault Module Timestamp: 521eaf24
      Exception Code: c0000005
      Exception Offset: 0000000000027689
      OS Version: 6.1.7601.2.1.0.256.1
      Locale ID: 1033
      Additional Information 1: 00a4
      Additional Information 2: 00a4a2975d5a28cfbbc1bf906fc7eacd
      Additional Information 3: 0146
      Additional Information 4: 0146abaed829ebf2f677c0e9088e54ea
    And after I hit close program on that I get the error:
    CasPol.exe - Application Error
    The application was unable to start correctly (0x0000005). Click OK to close the application.
    And I have tried redownloading it multiple times.
    I have run the .net cleanup tool and a repair tool
    I have uninstalled and reinstalled .net as well to the lastest version.
    With no luck at all.
    Any suggestions on what I might be able to do to fix this?
    An help would be greatly appreciated.

    Hello,
    It points to fact that your .Net Framework is corrupt.Use below tool to repair .Net framework
    .Net framework repair tool
    Additional helpful articles to refer
    CAS policy error message
    CAS policy error message when
    installing SQL server
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL Express 2012 SP2 Offline Install Available?

    We have a customer where SQL Express 2012 SP2 is needed for an application (the application is not yet validated for SQL Express 2014).
    The computer for this application is not connected to the internet (Win7x64).
    Is there an install package for this?

     It does complain that it cannot connect to Windows Update, but you can click past that. 
    Yes, the installer supports "live update slipstream" for newer SQL Server Service Pack, but you can skip this during installation.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SQL Browser not started in SQL Express 2012

    I just installed SQL Express 2012 on a Windows Server 2008. I downloaded the advanced 64bit installation file and selected all the options except SSRS. Everything seemed to install successfully including SSMS. I was able to connect to the instance locally
    and create a database. However, when I tries to connect from a client PC, I got the "not configured for remote connections" error. I went into Configuration Manager on the server and saw that that SQL Browser was stopped. But the Start Service option
    was grayed out. How can I enable SQL Browser?
    Darrell H Burns

    Hi, be sure that service is enabled by
    hope it will help you,
    Questo post è fornito "così com'è". Non conferisce garanzie o diritti di alcun tipo. Ricorda di usare la funzione "segna come risposta" per i post che ti hanno aiutato a risolvere il problema e "deseleziona
    come risposta" quando le risposte segnate non sono effettivamente utili. Questo è particolarmente utile per altri utenti che leggono il thread, alla ricerca di soluzioni a problemi similari. ENG: This posting is provided "AS IS"
    with no warranties, and confers no rights. Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. Please Vote This As
    Helpful if it helps to solve your issue. This can be beneficial to other community members reading the thread.

  • I am looking to add SQL Express 2012 as a pre-requisite using WIX

    Hi,
    I need working sql bootstrapping configuration that also setup password for SA Account.
    Please help me with the solution.
    Thanks,
    Naga Sreenivas Gupta V
    Naga Sreenivas, Software Engineer, SourceEdge Software Technologies.

    <?define InstanceName = "EURODESK" ?>
    <util:RegistrySearch Id="SQL2012x64InstanceExists"
    Variable="SQL2012x64InstanceExists"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL"
    Value="$(var.InstanceName)"
    Win64="yes"
    Result="exists"/>
    <util:RegistrySearch Id="SQL2012x64InstanceKey"
    Variable="SQL2012x64InstanceKey"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL"
    Value="$(var.InstanceName)"
    Win64="yes"
    After="SQL2012x64InstanceExists"
    Condition="SQL2012x64InstanceExists" />
    <util:RegistrySearch Id="SQL2012x64InstanceInstalled"
    Variable="SQL2012x64InstanceInstalled"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\[SQL2012x64InstanceKey]"
    Result="exists"
    Win64="yes"
    After="SQL2012x64InstanceKey"
    Condition="SQL2012x64InstanceExists" />
    <util:RegistrySearch Id="SQLx64Version"
    Variable="SQLx64Version"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\[SQL2012x64InstanceKey]\Setup"
    Value="Version"
    Win64="yes"
    After="SQL2012x64InstanceKey"
    Condition="SQL2012x64InstanceInstalled" />
    <util:RegistrySearch Id="SQL2012x86InstanceExists"
    Variable="SQL2012x86InstanceExists"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL"
    Value="$(var.InstanceName)"
    Win64="no"
    Result="exists"/>
    <util:RegistrySearch Id="SQL2012x86InstanceKey"
    Variable="SQL2012x86InstanceKey"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL"
    Value="$(var.InstanceName)"
    Win64="no"
    After="SQL2012x86InstanceExists"
    Condition="SQL2012x86InstanceExists" />
    <util:RegistrySearch Id="SQL2012x86InstanceInstalled"
    Variable="SQL2012x86InstanceInstalled"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\[SQL2012x86InstanceKey]"
    Result="exists"
    Win64="no"
    After="SQL2012x86InstanceKey"
    Condition="SQL2012x86InstanceExists" />
    <util:RegistrySearch Id="SQLx86Version"
    Variable="SQLx86Version"
    Root="HKLM"
    Key="SOFTWARE\Microsoft\Microsoft SQL Server\[SQL2012x86InstanceKey]\Setup"
    Value="Version"
    Win64="no"
    After="SQL2012x86InstanceKey"
    Condition="SQL2012x86InstanceInstalled" />
    <PackageGroup Id="SQLServer2012Express">
    <ExePackage Id="SQL2012Expressx64"
    InstallCondition="VersionNT64 AND NOT SQL2012x64InstanceInstalled"
    SourceFile="$(var.MyDir)\SQLEXPR_x64_ENU.exe"
    DisplayName="Installing Microsoft® SQL Server® 2012 - Express Edition..."
    InstallCommand="/ACTION=Install /INSTANCENAME=EURODESK /FEATURES=SQLENGINE /Q /HIDECONSOLE /SkipRules=RebootRequiredCheck /IAcceptSQLServerLicenseTerms /SQLSVCSTARTUPTYPE=Automatic /SQLSVCACCOUNT=&quot;NT AUTHORITY\NETWORK SERVICE&quot; /AGTSVCACCOUNT=&quot;NT AUTHORITY\NETWORK SERVICE&quot; /ASSYSADMINACCOUNTS=BUILTIN\Administrators /SQLSYSADMINACCOUNTS=BUILTIN\Administrators /BROWSERSVCSTARTUPTYPE=Disabled /ADDCURRENTUSERASSQLADMIN=true /TCPENABLED=1"
    Permanent="yes"/>
    <ExePackage Id="SQL2012Updatex64"
    InstallCondition="VersionNT64 AND (SQL2012x64InstanceInstalled AND SQLx64Version &lt; v11.0.0.0)"
    DisplayName="Upgrading SQL Server to SQL Server Express 2012..."
    InstallCommand='/IACCEPTSQLSERVERLICENSETERMS /HIDECONSOLE /ACTION=Upgrade /QUIET=True /INSTANCENAME=EURODESK /SkipRules=RebootRequiredCheck'
    SourceFile="$(var.MyDir)\SQLEXPR_x64_ENU.exe"
    Permanent="yes"/>
    <ExePackage Id="SQL2012Expressx86"
    InstallCondition="NOT VersionNT64 AND NOT SQL2012x86InstanceInstalled"
    SourceFile="$(var.MyDir)\SQLEXPR_x86_ENU.exe"
    DisplayName="Installing Microsoft® SQL Server® 2012 - Express Edition..."
    InstallCommand="/ACTION=Install /INSTANCENAME=EURODESK /FEATURES=SQLENGINE /Q /HIDECONSOLE /SkipRules=RebootRequiredCheck /IAcceptSQLServerLicenseTerms /SQLSVCSTARTUPTYPE=Automatic /SQLSVCACCOUNT=&quot;NT AUTHORITY\NETWORK SERVICE&quot; /AGTSVCACCOUNT=&quot;NT AUTHORITY\NETWORK SERVICE&quot; /ASSYSADMINACCOUNTS=BUILTIN\Administrators /SQLSYSADMINACCOUNTS=BUILTIN\Administrators /BROWSERSVCSTARTUPTYPE=Disabled /ADDCURRENTUSERASSQLADMIN=true /TCPENABLED=1"
    Permanent="yes"/>
    <ExePackage Id="SQL2012Updatex86"
    InstallCondition="NOT VersionNT64 AND (SQL2012x86InstanceInstalled AND SQLx86Version &lt; v11.0.0.0)"
    DisplayName="Upgrading SQL Server to SQL Server Express 2012..."
    InstallCommand='/IACCEPTSQLSERVERLICENSETERMS /HIDECONSOLE /ACTION=Upgrade /QUIET=True /INSTANCENAME=EURODESK /SkipRules=RebootRequiredCheck'
    SourceFile="$(var.MyDir)\SQLEXPR_x86_ENU.exe"
    Permanent="yes"/>
    </PackageGroup>
    But I am not sure how I can I supply sa user password through command.
    Also please suggest what I am doing is the better solution or not?
    Naga Sreenivas, Software Engineer, SourceEdge Software Technologies.

  • Transferring 3 SQL databases from both SQL Express 2005 and Standard to a new physical server

    I am trying to figure out the best method for transferring SQL 2005 databases from 2 different physical servers to a new server running windows server 2008 64bit.
    I own a fully registered copy of Microsoft SQL 2005 32bit Standard Edition. However all of my SQL databases together are only 4GB in size thereby making 2008 SQL Express an option.
    Here is the breakdown of the servers:
    1) (Old Server1) Windows 2003 Server 32bit - SQL Express 2005 32bit
    2) (Old Server2) Windows 2003 Server 32bit - SQL Server 2005 32bit Standard
    3) (New Server) Windows 2008 Server 64bit - (Not sure which version to install)
    **The objective is to migrate 2 SQL databases from Old Server1 and 1 SQL database from Old Server 2 to the New Server. What version should I install on the new server??? Do I go with 2008 express or install the 2005 Standard Edition?
    Pending your response to which version to install, what are the correct steps to migrate (which I have never done before) the databases from both of these servers to the new server?
    I have researched this online and I think this particular situation is unique in that I am transferring from both SQL Express and Standard from 2 different physical servers to a 2008 server that is 64bit. I cannot find anything online that I feel confident
    in trying. Please help me, as I have this migration deadline of this weekend. Any help is appreciated. Thanks.

    Hello,
    You may choose between using backup/restore or using detach/attach methods to migrate the databases.
    https://msdn.microsoft.com/en-us/library/ms187858(v=sql.90).aspx
    You can transfer logins using the following article.
    http://support.microsoft.com/en-us/kb/918992
    To decide if you migrate to Express Edition or to another edition, please review the features supported by each edition. For instance, Express Edition does not support jobs (SQL Server Agent is not available).
    https://msdn.microsoft.com/en-us/library/cc645993(v=sql.100).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Could you please confirm that the Service Pack 3 will install on SQL Express 2008 R2 SP2 With Advanced Services.

    We are using SQL server  Express 2008 R2 SP2 With Advanced Services.Its a 64 bit server.We want to Patch Service Pack 3 On express edition. Could you please
    tell us whether  the Service Pack 3 will install on SQL Express 2008 R2 SP2 With Advanced Services or not
    Could you please suggest me on this.
    Sainath Kompelly

    No, you cannot install SP3 on Express edition as Microsoft did not release it for Express Edition as noted here: http://blogs.msdn.com/b/sqlreleaseservices/archive/2014/09/26/sql-server-2008-r2-service-pack-3-has-released.aspx.
    You can see that Express edition is missing from the list of supported editions in the details section here: http://www.microsoft.com/en-us/download/details.aspx?id=44271
    Satish Kartan www.sqlfood.com

  • Problems installing MS SQl Server 2012

    Hi.
    I am trying to install MS SQL Server 2012, and I am getting the next error in the "Install Setup files" step:
    "The following error has occurred:
    An error occurred during the installation of assembly
    'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="amd64",type="win32". Please refer to Help and Support for more information. HRESULT:"
    Thanks in advance for your help

    Folks:
    I just spent 24 hours trying to research this problem.  This has affected every product I want to use that interfaces to MS SQL Server 2012.  My development machine is in need of recovery.  I de-installed my old products and I have to recover
    from backups.  Every new product (2012 and 2013) I downloaded had failed on this ERROR when it touches a SQL Server install or some VC Redistributable kit;
    ***'Microsoft.VC80.ATL,version="8.0.50727.6229", publicKeyToken="1fc8b3b9a1e18e3b", processorArchitecture="amd64",type="win32"***
    , for one reason or another (SqlSupport.msi).
    After extensive Internet research and many drill downs, it sounds like this issue has been around for years on and off.  It is now ON again.  No solution worked which tells me it is a serious architectural issue or complex upward compatibility
    issue.  Because the installs actually work on my non-development machines that have little software installed.
    It needs a cleanup routine, and a simple straight forward install routine.  I found someone who reported this a bug and I am looking forward to a solution.
    Go MS

  • SqlLocalDB.exe not Installed when sql Server 2012 Express (LocalDb Edition) is installed

    I have been having a very frustrating time trying to connect to a localDB instance of SQL Server 2012. So I started again from scratch on another computer (Windows 7). I first installed sql server 2012 Express with tools (via ENU\x64\SQLEXPRWT_x64_ENU.exe)
    and then installed the LocalDB Edition via sqlLocalDB.msi. The first installation seems to have gone OK. The second installation proceeded normally and finally advised that "Setup has installed SQL Server 2012 Express LocalDB successfully."
     A whole lot of files were installed in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, including sqlservr.exe.   But the SqlLocalDB.exe utility was
    not amongst them.
    Does anyone have any idea what is happening here? From where can I download a copy of sqlLocalDB.exe

    A whole lot of files were installed in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, including sqlservr.exe.   But the SqlLocalDB.exe utility was
    not amongst them.
    The tool is located in
    C:\Program Files\Microsoft SQL Server\110\Tools\Binn
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Setup closed with exit code: 0x84C40013 - Silent Install error - SQL Server 2012 express management studio SP1

    I am trying to create a silent installation package for SQL Server 2012 Express Management Studio SP1. (both x86 & x64)
    Prior to installation I have performed the following :
    1. Turned ON the Windows feature 'Microsoft .NET Framework 3.5.1' (I had read somewhere on the internet that this is required prior to installation)
    2. Installed Microsoft .NET Framework 4.0
    I am using the following command line to perform an unattended install :
    <EXENAME> /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools 
    However, the installation fails abruptly.
    The application installs successfully with the following command line :
    <EXENAME> /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools
    The error occurs only while attempting to install the application with the /Q switch appended.
    Please help.

    Hello Fanny,
    Thanks for providing the link to the SQL Server 2012 unattended install guide.
    However, I must highlight that I was running the setup.exe with "Run As a Administrator" option and still facing the issue.
    Anyways, I found out the root cause and I must say that it was a rather silly one.
    As I had stated previously, the following command line was causing the issue :
    <EXENAME>
    /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools
    I simply changed it to the following and it worked....
    <EXENAME>
    /QUIET /IACCEPTSQLSERVERLICENSETERMS /ACTION=INSTALL /FEATURES=TOOLS
    It so seems that everything must be in CAPITALS for this to work.
    Regards,
    Soumen

  • New install of SQL Server 2012 x64 Express on Windows 2008 Server, keep getting error when using Management Studio?

    After installing the x64 with all tools excluding the SDK from the SQL Express Edition, I go to Management Studio, log in and get the error when I click under the Instance name- Databases...Have reinstalled many times, removed all directories and registry
    keys from both HKEYs(regular and Wow6432Node) before rebooting and reinstalling. No VS installed on this computer..put it looks like it installed "MS Visual Studio 2010 Shell (Isolated)-ENU" and "Visual Studio 2010 Prerequisites".....tried working past
    the error, it just hangs the Studio after it tries to add things...HELP..PLEASE!!!
    Object reference not set to an instance of an object. (Microsoft.VisualStudio.Platform.WindowManagement)
    Program Location:
       at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.QueryService(Guid& guidService, Guid& riid, IntPtr& ppvObject)
       at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Guid guid, Type serviceType)
       at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Type serviceType)
       at Microsoft.VisualStudio.Shell.WindowPane.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerToolWindow.GetService(Type serviceType)
       at Microsoft.VisualStudio.Shell.WindowPane.System.IServiceProvider.GetService(Type serviceType)
       at System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorerControl.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorerControl.System.IServiceProvider.GetService(Type serviceType)
       at System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NodeContext.GetService(Type serviceType)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.<GetColumnsFromNavigationService>d__11.MoveNext()
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.AddFields(List`1 list, IEnumerable`1 fields, IDictionary`2 allValidFields, AddFieldsFlags flags)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.GetParentFields(INodeInformation source, Dictionary`2& allValidColumns)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItemWithQuery(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, String urnQuery, Boolean registerBuilder, Boolean registerBuiltItems)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItem(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.Build(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.RequestChildren(IGetChildrenRequest request)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ExplorerHierarchyNode.BuildChildren(WaitHandle quitEvent)

    Hi igorteper,
    Any progress?
    "MS Visual Studio 2010 Shell (Isolated)-ENU" and "Visual Studio 2010 Prerequisites" had been installed in your computer, or there is no Visual Studio installed on this computer?
    You log in SQL Server Management Studio and get an error. For further investigation the issue, please post the error messages in detail.
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • Can not install Microsoft SQL Server 2012 Express on Win7, 64 bit

    Hi,
    I had a Win7 Ultimate 64bit, Intel(R) Core(TM) 2 Duo 2.8Ghz, 4GB SDRAM, 500GB HDD. I have been used  Visual
    studio 2010, SQL Server 2008 R2 (SQL Management Studio), SQL Server Express2005, SQL Server Express2008, Microsoft Office 2010. I downloaded setup from microsoft.com/en-us/download/details.aspx?id=29062,
    after extract files and run setup which it's giving me an error message.
    "The operation system on this computer or its service pack level does not meet the minimum requirements for SQL server 2012. To determine the minimum required operating system supported for this SQL server release, see Hardward and software
    Requirement for installing SQL server 2012 at: http://go.microsoft.com/fwlink/?LinkID=195092"
    Anyone help me this issue

    it requires a minimum of Windows 7 SP 1 before installing SQL server 2008.
    It can be downloaded from below:
    http://support.microsoft.com/kb/976932/en-us
    For more details check below:
    http://msdn.microsoft.com/en-us/library/ms143506.aspx
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • Can not install Microsoft SQL Server 2012 Express on Win7, 64 bit, used on VS Studio 2010

    I had a Win7 Ultimate 64bit, Intel(R) Core(TM) 2 Duo, 4GB SDRAM, 500GB HDD. I have been used  Visual
    studio 2010, SQL Server 2008 R2 (SQL Management Studio), SQL Server Express2005, SQL Server Express2008, Microsoft Office 2010. I downloaded setup from microsoft.com/en-us/download/details.aspx?id=29062,
    after extract files which it's giving me an error message.
    Anyone help me this issue.
    Other questions is What if I want to use SQL management Studio 2008 R2 and connect SQL Server 2012 on Windows 7 

     I downloaded setup from microsoft.com/en-us/download/details.aspx?id=29062,
    after extract files which it's giving me an error message.
    Anyone help me this issue.
    I'd ask them over here.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlexpress
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Login failed for user 'IIS APPPOOL\DefaultAppPool' on SQL Express 2012

    I am new to both ASP.NET and SQL Server.
    I have IIS8 installed on my Windows 8 PC, together with SQL Server Express 2012. Given my ignorance, I have just set everything up using default values.
    I have a very small web site set up in its own folder and set up in IIS 8 as a virtual folder under the default web site. I have also set up a very simple database called 'StockControl' via SSMS, which contains one table called 'Colours' which has two columns.
    One page in the website is a simple ASP.NET form which runs on localhost without any problems.
    On the second page in the website I added a GridView ASP.NET control, letting Expression Web 4 generate the connection string and place it in a web.config file. I tested the SQL query and the connection as I went along and both came back as successful. So
    far, so good.However, when I try to run the page in the browser I get the error message:
    Server Error in '/' Application.
    Cannot open user default database. Login failed.
    Login failed for user 'IIS APPPOOL\DefaultAppPool'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Data.SqlClient.SqlException: Cannot open user default database. Login failed.
    Login failed for user 'IIS APPPOOL\DefaultAppPool'.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SqlException (0x80131904): Cannot open user default database. Login failed.
    Login failed for user 'IIS APPPOOL\DefaultAppPool'.]
    I have spent two days trying to find out what I have done wrong and even uninstalled and re-installed SQL Server just in case i'd totally messed up and corrupted the database.
    I would really appreciate some help please.

    I changed the IIS default identity to NetworkService and got this error instead
    Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\StockControl.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".
    An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\StockControl.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
    There is nothing running that is using the database.
     I have also set a login up for the Apppool and set the user mapping to the database but the problem persists,
    What is so infuriating is that a week ago I had several pages in this website that displayed, inserted, updated and deleted records on this database using ADO as well as ASP.NET running just fine. Then this problem came out of nowhere.

  • Can't connect to VS Express 2012 from SQL Express 2012

    I have recently installed VS Express 2012 and SQL Server Express 2012.
    I can open the Management Tools in SQL and view my data - and see my databases are all there, with their data..
    From within VS Express, when I use the wizard to create a new datasource - it never finds the SQL server...
    Is there something I need to do to enable the connection between VS and SQL?
    Thanks,
    Amber

    Hello ,
    I would be curious to know the "short" name of your SQL Server Express you have installed.
    As I suppose that you have installed all the available features of your SQL Server , you have 3 ways to know this "short" name ( it is important as it is possible that you have installed a no-named instance , that's to say with an empty "short" name
    1) find your SQL Server Configuration Manager and open it. It will open on a screen like this
    select and click the 1st item in the left panel ( SQL Server Services ) . In the right panel , you should see at the 1st line the name of your SQL Server instance. In my case , the "short" name of my instance is SQLEXPRESS. So the name you have to give
    for your datasource is
    yourComputerName\ShortInstanceName
    yourComputerName is the name of your laptop
    ShortInstanceName is the short name of your SQL Server instance ( you will find it surrounded by brackets ).If you have done a default install , it should be SQLEXPRESS like for me.
    Check that the service is running ( like in my screenshot ). If not , right-click on the line corresponding to the SQL Server service and click on Start.
    2nd solution : you can use VS ( I have a VS 2012 Express for Windows DeskTop ).Click on Add a connection .A new form ( labeled Add a connection ) will appear. Click on the Refresh button ,  at the right of a listbox labeled Server Name ( the listbox
    with the names of the available SQL Server instances is not populated automatically and sometimes you will need to click twice on the Refresh button to see all SQL Server instances ). Select the full name of your SQL Server instance..As it is the 1st time
    that you are creating a database , you should be able to see only the system databases ( Master , msdb , tempdb , model).
    3rd solution : to use SSMS , it is the best solution to create a new database. When you open SSMS , you have immediately the connection form on the screen. Choose the last item labeled " of the combobox labeled Browse for more and you will select the
    name of your SQL Server instance.
    Have a nice day
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

Maybe you are looking for

  • Default values for MVKE in MM01/MM02

    Hi All, If user changes any data in MM02/create material in MM01 , then I need to default some values in MVKE table( say MVKE-PRAT2, Standard SAP Field). I have tried with User exits and badi, but nothing works . EXIT_SAPLMGMU_001   ZXMG0U02 (cannot

  • How to populate table from forms

    I'm working with forms 4.5 and have created a form that is based on table A. I need to be populate another table B which has the same fields as table A from this form. How do I do that?

  • InDesign to pdf

    Help me!! I'm late to CS5.5, having just upgraded from CS4. I can't figure out a) how to create pdfs and b) where the Acrobat printer is, altho' that's probably a discussion for the Acrobat forum... I tried the AdobePDF Presets, which used to work li

  • Reg. entering another transaction from output list

    I am using 'REUSE_ALV_LIST_DISPLAY' for displaying output from a custom table. The custom table contains sales order and corresponding delivery. Now, on the output, if the user clicks on the sales order (like a hyperlink), it should go to VA02 transa

  • Pxi 4110 and dcpower express vi

    hi everyone, I'm really new to labview and I have to use a pxi 4110 to supply dc voltage with a square wave (or whatever shape I chose). I treid using the "dcpower express vi" but I can't understand how to connect the generated signal. at now I have