ssms

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

Procedure times out from ADO.NET but not in SSMS

落爺英雄遲暮 提交于 2019-11-28 13:59:59
I've got a stored procedure that is giving me a SqlException because of a timeout when I run it from code (with timeout set to 30). When I run the procedure directly in Management Studio, it executes in under 1 second. I also only get the timeout when running it against a specific database. When I use other databases it finishes quickly without an error. Here is the full error message: System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError

How to open a rpt file as a SQL Table?

天涯浪子 提交于 2019-11-28 13:47:37
问题 I have a rpt dump that one of my colleagues gave. I need to open this file as a SQL Table (I presume that this is possible since he generated the rpt dump from the SQL Table). How do I do that. I am using SQL Server Management Studio. I can also open the rpt file as a separate file in SSMS. 回答1: Though this answer is late, I didn't see a canonical answer to the problem of opening the .rpt file format and writing it to a SQL table. In SQL Server Management Studio in Object Explorer, right

Are there any way to programmatically execute a query with Include Actual Execution Plan and see whether any index suggestion or not

牧云@^-^@ 提交于 2019-11-28 12:37:33
I have a quite good number of queries and i want to test each of them with Include Actual Execution Plan feature on sql server management studio However it is not possible for me to do this manually for 1m + queries So i wonder can i execute them programmatically (from c#) with Include Actual Execution Plan feature and see whether SQL server suggests any index or not Scott Chamberlain First, before I go in to how to get the Actual Execution Plan in code and find the ones that report needing indexes I would recommend you look in to using the Database Engine Tuning Adviser (DTA) , you can feed

sql server management console doesn't work with multi-byte characters

可紊 提交于 2019-11-28 12:35:47
I'm trying to work out how to use SQL server management studio properly with multi-byte unicode characters. even something as simple as: select N'动漫' just returns square boxes in the result pane. I know the underlying database is set up correctly to handle unicode and other apps on the PC work fine with chinese characters any clues very much appreciated Changing the font to Arial Unicode MS did the trick for me. I don't understand why Text Results displays fine with Fonts where Grid Results does NOT, and why other Unicode Fonts don't work but oh well. After many frustrating hours with this

Full precision output of floating point types in SQL Server Management Studio

旧巷老猫 提交于 2019-11-28 12:13:54
I have the value 1555.4899999999998 stored in a float column with default precision (53). When I do a simple select , SSMS rounds the output instead of printing it with all available precision. It's caused some gotchas for me recently since the value printed doesn't work as a float literal to match the actual stored value. For example (note that both of these numbers have an exact representation in the default float ), declare @f1 float declare @f2 float set @f1 = 1555.49 set @f2 = 1555.4899999999998 select @f1, @f2 select STR(@f1,30,15), STR(@f2,30,15) Outputs: 1555.49 1555.49 1555

“Save changes is not permitted” when changing an existing column to be nullable

会有一股神秘感。 提交于 2019-11-28 10:48:03
I've got a SQL Database Table, which has 35 existing records. One of the fields in this table is called Name , nvarchar(100) , not null However, due to a recent change, I need to make this column nullable. When I change the column to allow nulls in SQL Server Management Studio, and go to save my changes, I get the following error: Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created How can I allow this to automatically be dropped and re-created? I've found the solution. Go to "Tools > Options > Designers > Table and Database

xp_regread() returned error 5, 'Access is denied.'

China☆狼群 提交于 2019-11-28 09:50:41
问题 I'm running the SQL Server Copy Database Wizard. Of note is that the Operator is NT AUTHORITY\SYSTEM , which I thought should have the authority to run whatever it wants. How can we grant sufficient privileges to NT AUTHORITY\SYSTEM ? I have already tried: GRANT EXECUTE ON xp_regread TO public GRANT EXECUTE ON xp_regread TO [NT AUTHORITY\SYSTEM] And running the following shows that it worked. SELECT grantee_principal.name AS [Grantee] , prmssn.permission_name FROM sys.all_objects AS xproc

SQL Server Management Studio Logins Dialog missing

两盒软妹~` 提交于 2019-11-28 09:24:03
问题 I am running SQL Server Management Studio v17.6. The online tutorials for creating a new Login show a dialog that comes up when your right-click on Logins and select New Login. I don't see this dialog; instead I get a script to CREATE LOGIN which is OK but I would prefer the dialog. I don't see an option to switch from getting a script to getting the dialog. I don't know if this version does not have the dialog or if I am just not finding the option. 回答1: Currently this is an Azure SQL

SQL Server Management Studio: Increase number of characters displayed in result set

这一生的挚爱 提交于 2019-11-28 09:22:14
问题 I have the following scenario: We have stored procedures which compare our developement database to our customer databases and tell us, what the difference is (so, what we have to update on the customer machine). Now I wrote some additional code to automatically generate the CREATE/ALTER/DROP statements needed to bring the customer database to the same status as our developement database. My code works fine, but I have a problem with SQL Server Management Studio: I can't tell it to display