sql-server-express

CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105)

蹲街弑〆低调 提交于 2019-11-28 19:03:35
I have a database file .mdf from MS SQL EXPRESS in folder: C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA I would like to attach it to MS 2008 R2 (MSSQL10_50.MSSQLSERVER) but using Server Management Studio I receive the following error: CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105) while attempting to open or create the physical file Do you have any idea how to solve it? I was able to solve the problem running MS SQL Management Studio as ADMINISTRATOR. It's a Windows permissions issue. If you connected to your

Point to localhost\\sqlexpress using only localhost

青春壹個敷衍的年華 提交于 2019-11-28 17:15:58
Working on a common codebase, one developer is running SQL Server Express 2005 and the other 2 are running SQL Server 2005. Everything is working fine, but the connection strings differ. To maintain common configuration and build scripts we're looking to mask "localhost\sqlexpress" to just "localhost" like the other 2 developers. Can this be done? Or, maybe there's a better way for all 3 to run on the same connection string... The solution sought is for all 3 to be able to run on the same file versions in the code repository. I might not be 100% clear: basically I want this: Data Source

SQL Server® 2016 Express full download

爱⌒轻易说出口 提交于 2019-11-28 15:43:44
问题 All previous version of SQL Server Express were available in both web and full downloads. But I cannot find full download of SQL Server® 2016 Express. Does it exist? Asked the same question on MSDN forums, not much luck: https://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/4bfaa080-ec3b-4677-b2b8-cd0b60dc9486/. 回答1: When you can't apply Juki's answer then after selecting the desired version of media you can use Fiddler to determine where the files are located. SQL Server 2017

SQL Server 2016 Express Management Studio cannot design a new or existing table

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 14:00:08
In Microsoft SQL Server 2016 Express Management Studio (July 2016) cannot design a new or existing table. Image 1: click on the tables node. Where is the menu option to add a new table? Image 2: Click on existing table. Where is the menu option to edit an existing table? Version: SQL Server 2016 Management Studio (July 2016) Thanks! This has been reported as a bug: Microsoft Connect social.msdn Microsoft released a hotfix for this issue already. You can download it here: https://msdn.microsoft.com/en-us/library/mt238290.aspx Chris Z. If you uninstall the July edition and re-install the June

All data from database is deleted when closing the application

风流意气都作罢 提交于 2019-11-28 10:08:22
问题 What is the proper way to create a local-database file and then connect the app to it ? I want it to work even if you change the location of the project folder. Right know what I do is: Project -> Add new item -> Service-based Database and I create one and then I go to Data -> Add new Data Source, I add the created database and I get the connection string. Ok, all good, I can connect to it as I wish BUT all my data is erased from the database when I close the application (not always). For

SQL Server after update trigger

主宰稳场 提交于 2019-11-28 09:04:48
I have a problem with this trigger. I would like it to update the requested information only to the row in question (the one I just updated) and not the entire table. CREATE TRIGGER [dbo].[after_update] ON [dbo].[MYTABLE] AFTER UPDATE AS BEGIN UPDATE MYTABLE SET mytable.CHANGED_ON = GETDATE(), CHANGED_BY=USER_NAME(USER_ID()) How do I tell the trigger that this applies only to the row in question? Here is my example after a test CREATE TRIGGER [dbo].UpdateTasadoresName ON [dbo].Tasadores FOR UPDATE AS UPDATE Tasadores SET NombreCompleto = RTRIM( Tasadores.Nombre + ' ' + isnull(Tasadores

How can I create a user in SQL Server Express database I added to my project?

时光毁灭记忆、已成空白 提交于 2019-11-28 08:34:22
How can I create a SQL user in a SQL Server Express database that I added to my project? I need to create a user to use in a connection string that doesn't use Integrated Security. You would need to create a SQL Authenticated login first with CREATE LOGIN then add a user associated with that login to your database by using CREATE USER . USE [master] GO CREATE LOGIN [JohnEgbert] WITH PASSWORD=N'YourPassword', DEFAULT_DATABASE=[YourDB], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF GO USE [YourDB] GO CREATE USER [JohnEgbert] FOR LOGIN [JohnEgbert] WITH DEFAULT_SCHEMA=[dbo] GO If you create a SQL login

automate a SQL query to run every month

为君一笑 提交于 2019-11-28 07:57:35
问题 I have a simple SQL query that updates some date fields in a record, on a SQL Express instance. I'd like to have it run automatically every month. What is the best way of accomplishing this in SQL Server 2005 Express using the Management Studio? 回答1: For SQL Server Express, there are a few possibilities. Unfortunately none of them involve Management Studio: Use a combination of Windows Scheduler, sqlcmd.exe, and .bat files Use SQL Server Service Broker Use a Codeplex variation of SQL Agent

SQL LocalDB vs SQL Server CE

岁酱吖の 提交于 2019-11-28 06:49:30
I have a small project that will have 1 user on 1 computer. The database will be rather small (probably less than 1 mb of data). I plan to use WPF and Entity Framework for that project. I came up with 2 potential database solutions for my project : SQL Server CE and SQL Server Express LocalDB (with SQL Server 2012). I have never worked with any of those, I'm more used to work with the full SQL Server 2008 installation. I also want it to be easy to install on the client. Ideally I'd like to just throw a bunch of files on a folder (along with my .exe file). So anybody here could suggest me the

SQL Server Express vs MS Access

倖福魔咒の 提交于 2019-11-28 05:25:10
A colleague I work with recently told me that SQL Express and MS Access were essentially the same thing; that does not seem to be an accurate statement. I know you can convert Access to a SQL DB and maybe under the covers they are similar, but I would assume that the SQL DB engine and what is used to run access are not the same. Not only that, but the SQL statement syntax, etc. I know are not the same. I am mainly trying to understand so that I am more informed about the versions. mwolfe02 Um, no, not the same. First off, I need to clear up some terminology. MS Access is a Rapid Application