sql-server-express

Remote connection to SQL Server Express fails

余生长醉 提交于 2020-01-06 02:04:06
问题 I have two computers that share the same Internet IP address. Using one of the computers, I can remotely connect to a SQL Server database on the other. Here is my connection string: SqlConnection connection = new SqlConnection(@"Data Source=192.168.1.101\SQLEXPRESSNI,1433;Network Library=DBMSSOCN;Initial Catalog=FirstDB;Persist Security Info=True;User ID=username;Password=password;"); 192.168.1.101 is the server, SQLEXPRESSNI is the SQL Server instance name, and FirstDB is the name of the

How to get localized Windows Administrators group name in Inno Setup?

百般思念 提交于 2020-01-04 06:36:49
问题 I need to install SQL Server 2008 using Inno Setup. It requires /SQLSYSADMINACCOUNTS to be specified. I want to set it to BUILTIN\Administrators , but the problem is that in localized Windows versions this group's name is different. For example, in Russian version of Windows it's BUILTIN\Администраторы . How can I get the string name for this group (S-1-5-32-544) in Inno Setup? 回答1: You can get the name from a SID using LookupAccountSid API Call. 来源: https://stackoverflow.com/questions

Entity Framework 6 SetInitializer DbContext does not work for SQL Server Express and SQL Server Compact

天涯浪子 提交于 2020-01-04 03:20:12
问题 I've got a problem with creating a new database every time my application starts. I read this post Entity Framework Database.SetInitializer simply not working , but it didn't help. Here is my code: public DatabaseContext(DatabaseType type) : base("name=" + type) { Database.SetInitializer(new DropCreateDatabaseAlways<DatabaseContext>()); } and I'm calling Database.Initialize(true); doesn't matter if true or false, both doesn't work. Later in my application I also "work" with the database so

can I use SSDT/BIDS/SSIS using SQL Server 2012 express?

陌路散爱 提交于 2020-01-03 19:05:45
问题 Ideally, I want to make SSDT/SSIS packages on my desktop PC that I can test and deploy to a production server environment. On my PC I have: Windows 7 Visual Studio 2008 Visual Studio 2010 (shell) SQL Server Express 2012 (local dev copy of prod) [supposedly] BIDS (Business Intelligence Development Studio) and SSDT (SQL SErver Data Tools) etc. On my production server I have: Windows Server 2008 SQL Server 2012 Visual Studio 2010 (shell) I cannot load/run SSIS (SQL Server Integration Services)

can I use SSDT/BIDS/SSIS using SQL Server 2012 express?

北城余情 提交于 2020-01-03 19:04:26
问题 Ideally, I want to make SSDT/SSIS packages on my desktop PC that I can test and deploy to a production server environment. On my PC I have: Windows 7 Visual Studio 2008 Visual Studio 2010 (shell) SQL Server Express 2012 (local dev copy of prod) [supposedly] BIDS (Business Intelligence Development Studio) and SSDT (SQL SErver Data Tools) etc. On my production server I have: Windows Server 2008 SQL Server 2012 Visual Studio 2010 (shell) I cannot load/run SSIS (SQL Server Integration Services)

Deploying a desktop application with SQL Server Express

我只是一个虾纸丫 提交于 2020-01-02 05:23:16
问题 I have developed a C# 4.0 desktop application that uses a SQL Server Express 2005 database. I have built a Setup and Deployment (msi) package that installs the application and all it's depenedencies, including the mdb database file, into a working folder under the Program Files directory. The connection string is like this: Server=.\SQLExpress;AttachDbFilename=|DataDirectory|MyDB.mdf;Database=MyDB;integrated security=true;user instance=true; The first time a database call is made, the

Bootstrapping SQL Express from WiX?

一笑奈何 提交于 2020-01-02 02:00:14
问题 I'm working on a WPF app, and using WiX as an installer. I'd like to start using SQL Express 2012, but want to resolve installer issues first. I'm looking for a full-up example of detecting, bootstrapping, installing, upgrading and uninstalling SQL Express 2012 using WiX (although partials will be useful, too). Also, most of the detection logic I've found so far on the web uses registry keys. However, Microsoft recommends using WMI instead (see http://blogs.msdn.com/b/sqlexpress/archive/2006

Bootstrapping SQL Express from WiX?

扶醉桌前 提交于 2020-01-02 02:00:02
问题 I'm working on a WPF app, and using WiX as an installer. I'd like to start using SQL Express 2012, but want to resolve installer issues first. I'm looking for a full-up example of detecting, bootstrapping, installing, upgrading and uninstalling SQL Express 2012 using WiX (although partials will be useful, too). Also, most of the detection logic I've found so far on the web uses registry keys. However, Microsoft recommends using WMI instead (see http://blogs.msdn.com/b/sqlexpress/archive/2006

SQL Express connection string hell ASP.Net

耗尽温柔 提交于 2020-01-01 11:58:24
问题 SQL Express 2005 is running locally. I have a project written by another person running on the same machine. All I want to do is connect to it, can't be that hard right? This is the one I use in my old classic ASP code to hit another database running on the same instance: Provider=SQLOLEDB;Data Source=MYLAPTOP\MSSMLBIZ;Persist Security Info=True;User ID=TestUser;Password=letmein;Initial Catalog=TestDB But trying a version of that makes the .net code throw a wobbler as he's written it using

Can I get sql profiler for sql2008 for free?

孤人 提交于 2020-01-01 04:06:24
问题 Is it possible to get sql profiler for sql2008 for free or you have to have a license to get it? i.e. it won't work with sql express 回答1: First. SQL Profiler does work with SQL Express . Second. You can get SQL Profiler with the Developer version of SQL, which is included with all MSDN licenses. However you will not be able to get it for free with SQL Express like you can with SSMS. 回答2: You can get SQL Profiler with the Developer version of SQL. But how is written three answer before: SQL