sql-server-express

Using ANY free SQL Server version to simply create a local SSIS/dtsx file run on local machine

左心房为你撑大大i 提交于 2019-12-08 14:09:15
问题 Yes I KNOW there are a lot of questions about this on styack overflow, and I'm sorry but all I found was reading through dozens and dozens where every one seemed to disagree, or things were terribly version specific and more importantly - many of them were out of date as the rules seem to change over time. All I want to know is, can I download and install (actually on my client's computer), any free or almost-free version of SQL Server (I really don't care if it's 2005, 2008, 2012 etc) to

SQL Server Express connection to .mdf file

只谈情不闲聊 提交于 2019-12-08 11:54:22
问题 Two-Part Question. I have created an ASP.NET MVC 5 application using VS 2015 Update 3. I am quite a ways along with the project on my local machine. Suddenly, I can no longer connect via SQL Server Object Explorer to the .mdf database file and get the following error: The database 'aspnet-DevilsTowerMVC-20180327093314' cannot be opened because it is version 852. This server supports version 782 and earlier. A downgrade path is not supported. Could not open new database 'aspnet-DevilsTowerMVC

I would like to set the Default value for a column to Current Time + 6hrs

末鹿安然 提交于 2019-12-08 09:39:52
问题 I have a column in an Sql server express table called DepTime which has a Time data type. I would like to set the Default value for this column to Current Time + 6hrs. How can I do this. Thank you 回答1: here is an example for a temporary table: CREATE TABLE #tmp ( test varchar(30), DepTime datetime DEFAULT DATEADD(hour, 6, GETDATE()) ); or if you already have a table: ALTER TABLE SomeTable ADD CONSTRAINT DF_SomeTableSomeName DEFAULT DATEADD(hour, 6, GETDATE()) FOR DepTime; 来源: https:/

Migrate SQL Server Express tables to SQL Server database

自闭症网瘾萝莉.ら 提交于 2019-12-07 22:04:27
问题 I have a local SQL Server Express database that I want to copy to a SQL Server database on a server. I do not have full permissions to the server, so I cannot directly attach it. Somebody told me I could do this by using the SqlBulkCopy[MSDN] class. I can't figure out how to use it. I haven't done enough database programming to be familiar with how this sort of thing is done. Basically, I want to copy all the tables in one database to another. There are relationships between the tables, I don

How to insert record into a sql server express database table?

六眼飞鱼酱① 提交于 2019-12-07 17:09:06
问题 I'm trying to insert a textbox value to a database table called site_list . The site_list table contains two columns id and site_name , id set to auto increment This is the code I'm trying and when it execute there is no error, but the data is not showing up in the table SqlConnection conn = new SqlConnection(); conn.ConnectionString = "Data Source=.\\SQLExpress;" + "User Instance=true;" + "Integrated Security=true;" + "AttachDbFilename=|DataDirectory|scraper_db.mdf;"; SqlCommand addSite =

Create jobs in SQL Server Express edition? [duplicate]

倖福魔咒の 提交于 2019-12-07 15:24:23
问题 This question already has answers here : SQL Server Agent Job Set Up (2 answers) Closed 5 years ago . I want to schedule some jobs in sql server express edition. After digging a bit i got few post like: How to run a stored procedure every day in SQL Server Express Edition? How to create jobs in SQL Server Express edition How to run a stored procedure every day in SQL Server Express Edition? and i understand that Sql Agent is require to schedule a job in sql server but since SQL Server express

What are the options available to encrypt a SQL Server Express database?

回眸只為那壹抹淺笑 提交于 2019-12-07 12:56:01
问题 We have a team of sales persons who travel often carrying a laptop loaded with Sales data in a SQL Server Express database. What are the options available to encrypt a SQL Server Express database? 回答1: What's your threat model? Are you trying to stop a casual thief who's stolen a laptop, or a determined hacker? Are you trying to protect just the data, or also the schema? If you're using SQL Server Express 2005 or higher, then it supports native asymmetric encryption. But if you're trying to

Set UK date format for SQL Express

别来无恙 提交于 2019-12-07 07:07:17
问题 How do I permanently set the date format for SQL Express to be UK format (dd/mm/yyyy). I know I can use SET DATEFORMAT DMY , but this only works for that connection. I have also seen, exec sp_addlanguage 'British', 'English', 'January,February,March,April,May,June,July,August,September,October, November,December', 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec', 'Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday' ,dmy,1 sp_configure 'default language', 1 reconfigure with override but

How to save QTime in SQL Server Express table and read it back?

限于喜欢 提交于 2019-12-07 05:49:02
问题 I have a table in SQL Server Express with fields name varchar(10) and timeVar time and I want to save the value of a QTime variable in the time field. This is what I have tried: QTime time = QTime::currentTime(); QString timeString = time.toString("hh:mm:ss"); QString query = QString("insert into timeHold(name,timeVar) values ('ABC','%2')").arg(timeString); qry->prepare(query); qry->exec(); However, I get QSqlQuery::value: not positioned on a valid record . When I insert values into the table

Windows Azure VM (Iaas) unexpected restarts [closed]

北慕城南 提交于 2019-12-07 03:59:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a number of VMs on Windows Azure (Iaas) hosting a website. There are a number of load-balanced front-end VMs, all connecting to a single VM with SQL Express. It works well. However! I'm getting random restarts across all the VMs. As for the front-end VMs (with IIS), since they are load balanced, the site