sql-server-express

How can I create a local user profile for the anonymous user of an ASP.Net MVC application under IIS 7?

筅森魡賤 提交于 2019-12-31 02:09:11
问题 I've been experimenting with ASP.Net MVC, and have come across a problem that is probably not specifically MVC related. But I cannot get the authentication in the default MVC application (the one created by the wizard when you create a new MVC project) to work properly under IIS 7 on Windows 7. If I run under the Visual Studio environment, it works, but if I switch the settings to run under IIS instead, I get the following exception trying to submit the login or registration: Failed to

Getting “SQLExpress database file auto-creation error” for site that uses AspNetSqlMembershipProvider, but connection string is to SQL Server 2005

北慕城南 提交于 2019-12-30 18:21:06
问题 I have an ASP.NET v2.0 website (not web application) where the root directory is public, but the "Admin" subdirectory requires authentication. Everything about the setup is very generic - I used a connection string defined in the root web.config, and the standard AspNetSqlMembershipProvider provider, and I'm using the ASP.NET Login control. The web.config in the Admin directory specifies that the user must have the "Admin" role. I'm using SQL Server 2008 , and my connection string is good;

SQL Server: enable remote connections without SSMS

狂风中的少年 提交于 2019-12-30 03:48:06
问题 I've got a SQL Server Express 2008 install on my web server, which by default does not allow remote connections (probably a good thing.) I opted not to install SQL Server Management Studio Express along with it for disk space and other reasons. I need to enable remote connections but any instructions I can find involve using SSMS to change that setting. Surely there's a transact-sql statement of some kind i can from from sqlcmd.exe to change the setting?! Thanks! 回答1: I went into my SMS and

How to create a connection string in asp.net c#

我怕爱的太早我们不能终老 提交于 2019-12-29 06:23:31
问题 I am working on asp.net c# project, for connection I used: SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\19-02\ABCC\App_Data\abcc.mdf;Integrated Security=True;User Instance=True"); but I want to get this connection string to get configure and be like this, so can any one help how to create this kind of connection. SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["itmall"].ConnectionString); 回答1: Demo : <connectionStrings> <add

How to create a connection string in asp.net c#

自作多情 提交于 2019-12-29 06:23:08
问题 I am working on asp.net c# project, for connection I used: SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\19-02\ABCC\App_Data\abcc.mdf;Integrated Security=True;User Instance=True"); but I want to get this connection string to get configure and be like this, so can any one help how to create this kind of connection. SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["itmall"].ConnectionString); 回答1: Demo : <connectionStrings> <add

How do I connect to a SQL database from C#?

亡梦爱人 提交于 2019-12-28 05:21:49
问题 I am trying to write a local program management and install system for my home network, and I think I've got the technologies nailed down: C#/.NET/WPF for the client Lua for installation scripting support (through LuaInterface) SQL Server Express for maintaining a database of programs However I'm unsure what specifically I'll use to connect C# to the database. Is there something built into the .NET framework for this? Bonus points if you have a suggestion on what I should use for interacting

SQL Express connection string: mdf file location relative to application location

痞子三分冷 提交于 2019-12-27 10:26:11
问题 I am using SQL Express databases as part of a unit test project in c#. My databases is located here: ./Databases/MyUnitTestDB.mdf I would like to use a relative path or variable in the app.config rather than having my connection string defined as: AttachDbFilename=C:\blah\blah\blah\yea\yea\yea\MyApplication\Databases\MyUnitTestDB.mdf I have seen the use of |DataDirectory| but am I correct in thinking this is only applicable to web applications? I want to control this in the application

Fails on setup of SQL Server Express silent Installation with Exit Codes: 0x84B40003 and 0x84C40013

Deadly 提交于 2019-12-25 13:15:13
问题 I'm trying to made a setup using Installshield 2015 with SQL Server Express silent install, I set "specify command line for the application" with these values: SQLEXPR_x86_ENU.exe /QS /FEATURES=SQLEngine,Replication,Conn /IAcceptSQLServerLicenseTerms=1 /SQLSVCSTARTUPTYPE=Automatic /ACTION=Install /INSTANCENAME=SQLExpress /SQLSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /AGTSVCSTARTUPTYPE=Automatic

SQL Server Express connection string on server not working

試著忘記壹切 提交于 2019-12-25 08:14:54
问题 I have uploaded my project to a server and everything works fine until I try to "log-in" or "register" using EF Interestingly, on my PC, I have got this to work with SQL Server Express & SQL Server Compact - it just does not work on the server On the server, I have SQL Server Express installed Here is the connection string <add name="DefaultConnection" connectionString="data source=(localhost);Integrated Security=SSPI; database=aspnet-MvcDealerConn-20121005200308; AttachDBFilename=

SQL Server Express equivalent for EXTERNAL DATA SOURCE

不打扰是莪最后的温柔 提交于 2019-12-25 05:13:13
问题 As per https://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-query-getting-started-vertical/, it is now possible for one database in Azure SQL to query other Azure SQL databases. For my use case, I plan to have one database serving reference data for other databases, which fits nicely to Topology 1 (vertical sharding). This is great for a deployed environment, but for local development I typically develop using SQL Server Express. As of SQL Server 2012 Express, the