sql-server-2014-express

Microsoft SQL Server does not return everything when using LIKE clause

眉间皱痕 提交于 2019-12-11 10:38:43
问题 I have a Products table in SQL Server 2014 Express with records in it. A few product names (records) are the following: Test product Teszt termék Teszt termék 2 When I execute the following query, everything works just fine: SELECT * FROM Products WHERE name LIKE 'te%' It retrieves all three records. However, when I use SELECT * FROM Products WHERE name LIKE 'tes%' is executed, only "Test product" is retrieved. And when the query is SELECT * FROM Products WHERE name LIKE 'tesz%' then it works

Get a single record from SQL Server the correct way

时间秒杀一切 提交于 2019-12-09 10:48:34
问题 I'm using Ado to retrieve a single record by id. Observe: public async Task<Image> GetImage(int id) { var image = new Image(); using (SqlConnection conn = new SqlConnection(ConnectionString)) { conn.Open(); string sql = @" SELECT * FROM Images where id = @id"; using (SqlCommand comm = new SqlCommand(sql, conn)) { comm.Parameters.AddWithValue("@id", id); var reader = await comm.ExecuteReaderAsync(); int ordId = reader.GetOrdinal("id"); int ordName = reader.GetOrdinal("name"); int ordPath =

How is the memory used greater than the SQL Server Express limitation?

梦想与她 提交于 2019-12-07 18:48:31
问题 Microsoft tells me that SQL Server 2014 Express should have Maximum memory utilized (per instance of SQL Server Database Engine) of 1 GB. Whenever I run this simple script to tell me the Physical Memory In Use I get 4 GB. SELECT dopm.physical_memory_in_use_kb FROM sys.dm_os_process_memory AS dopm; Here's the version info. What gives? The server itself has 24 GB of RAM so I'd like SQL Server to use more if possible. I think I'd have start using a different edition of SQL... 回答1: According to

How is the memory used greater than the SQL Server Express limitation?

大憨熊 提交于 2019-12-06 07:50:33
Microsoft tells me that SQL Server 2014 Express should have Maximum memory utilized (per instance of SQL Server Database Engine) of 1 GB. Whenever I run this simple script to tell me the Physical Memory In Use I get 4 GB. SELECT dopm.physical_memory_in_use_kb FROM sys.dm_os_process_memory AS dopm; Here's the version info. What gives? The server itself has 24 GB of RAM so I'd like SQL Server to use more if possible. I think I'd have start using a different edition of SQL... According to this link SQL Server 2014 Editions Express Edition Express edition is a free version of SQL Server that is

I can't get a Sql Server localdb connection to work on a computer that does not have SqlServer Express installed

我的梦境 提交于 2019-12-04 08:55:20
问题 I have a C# console application written using Visual Studio 2012. In the application I am using a Sql Server localdb connection to a database to store information. This is working fine on several computers, all of which have Visual Studio installed. I would like to deploy a program that only has to install the Sql Server Express LocalDB, and not the larger Sql Server Express. However, my application is not running on the target computers. I have installed Sql Server Express LocalDB 2014 on a

Can't connect to SQL Server 2014 Express

二次信任 提交于 2019-12-03 23:57:13
I'm having trouble connecting to a freshly installed instance of SQL Server 2014 Express. I'm not even totally sure what information you would need to help, so please bear with me as I'm very much an amateur. If I can provide anymore information to help, I'd be glad to. The error I get is always the same, "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error

SQL Server Express 'NEW TRIGGER' BUTTON IS DISABLED

会有一股神秘感。 提交于 2019-12-03 14:51:05
问题 I am new to SQL Server Express and I want to create a new trigger on my table. But I found that the 'New trigger' button in my table's trigger folder shows Disabled. When I right click on trigger folder it shows 'New trigger' button disabled and in gray color. I am using SQL Server 2014 Express and Management Studio 2014. Does anybody have any idea why it is happening? Please suggest me some way out. 回答1: This a known issue (bug) with SSMS 2014. Reference : https://connect.microsoft.com

Get a single record from SQL Server the correct way

老子叫甜甜 提交于 2019-12-03 13:52:40
I'm using Ado to retrieve a single record by id. Observe: public async Task<Image> GetImage(int id) { var image = new Image(); using (SqlConnection conn = new SqlConnection(ConnectionString)) { conn.Open(); string sql = @" SELECT * FROM Images where id = @id"; using (SqlCommand comm = new SqlCommand(sql, conn)) { comm.Parameters.AddWithValue("@id", id); var reader = await comm.ExecuteReaderAsync(); int ordId = reader.GetOrdinal("id"); int ordName = reader.GetOrdinal("name"); int ordPath = reader.GetOrdinal("path"); while (reader.Read()) { image.Id = reader.GetInt32(ordId); image.Name = reader

SQL Server Express 'NEW TRIGGER' BUTTON IS DISABLED

亡梦爱人 提交于 2019-12-03 04:36:08
I am new to SQL Server Express and I want to create a new trigger on my table. But I found that the 'New trigger' button in my table's trigger folder shows Disabled. When I right click on trigger folder it shows 'New trigger' button disabled and in gray color. I am using SQL Server 2014 Express and Management Studio 2014. Does anybody have any idea why it is happening? Please suggest me some way out. This a known issue (bug) with SSMS 2014. Reference : https://connect.microsoft.com/SQLServer/feedback/details/873249/ssms-2014-new-trigger-is-disabled-for-older-2012-2008r2-versions-of-sql-server

I can't get a Sql Server localdb connection to work on a computer that does not have SqlServer Express installed

风格不统一 提交于 2019-12-03 02:22:26
I have a C# console application written using Visual Studio 2012. In the application I am using a Sql Server localdb connection to a database to store information. This is working fine on several computers, all of which have Visual Studio installed. I would like to deploy a program that only has to install the Sql Server Express LocalDB, and not the larger Sql Server Express. However, my application is not running on the target computers. I have installed Sql Server Express LocalDB 2014 on a target computer. I can, using a command line, run commands using sqllocaldb to verify that it is