ssms

Change the location of the Auto Recovery information in SQL Server Management Studio

孤人 提交于 2020-01-02 08:48:12
问题 Our local IT has our My Documents folder on a network path. This causes a problem from MSQL Server management studio as it saves it auto recovery information every 10 min it will lock up as its doing its save. I found where VS2008 saved its setting but I can not find out how to change it out of My Documents for this. Does anyone know where that setting is located? 回答1: Unfortunately, at least for VS2005 and VS2008 (and I think for VS2010, but I haven't checked there), this cannot be changed

How to edit SSMS Script Table As templates?

旧城冷巷雨未停 提交于 2020-01-02 06:23:09
问题 In the context menu of a table in SQL Server Management Studio there are several items under the common item Script Table as : SELECT to INSERT to UPDATE to DELETE to .. and the same for all objects, e.g. stored procedures, functions, etc. How can I edit the templates used by that menus? 回答1: You cannot edit the templates used by SQL Server Management Studio (which would be a nice feature). You can create your own (parameterised templates) in C:\Users\Username\AppData\Roaming\Microsoft

Stop SQL Server from running until needed [closed]

守給你的承諾、 提交于 2020-01-02 02:14:45
问题 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 SQL Server 2012 installed on my PC, and usually don't need it. It's only for debugging purposes. I've seen it takes up quite some RAM so I'd like to prevent it from starting until I need it, start it, and then stop it when not needed again. How do I do that? (I have SSMS installed as well so I can use

Unable to log in to server in SQL Server 2008 R2 Management Studio

不打扰是莪最后的温柔 提交于 2020-01-01 14:57:14
问题 I have a SQL Server 2008 R2 instance and can log in using the sa user. But I want to define another user ( administrator ) to log in with SQL Server Management Studio, so I did the following: Logged in to the server in Management Studio as sa . Right clicked on the database name. Clicked on properties. Then under permission, I select the required username ( administrator ). And I grant him all the permission. But when I tried to log in using administrator , I got the following error: Login

“collapse all' or ”toggle outline" in SQL Server Management Studio 2008

我们两清 提交于 2020-01-01 07:52:08
问题 A new feature in SQL Server Management Studio 2008 is 'outlining' (the ability to collapse regions). It is awesome. However, by default all regions are expanded. I can't seem to find a way to 'collapse all' (also called 'toggle outline' in Visual Studio). Is anyone aware of a way to do this? I've been tasked with reviewing a 3,000 line stored procedure, and collapsing regions one-by-one is cumbersome. 回答1: It appears this feature does not exist. It has been recommended to Microsoft. I suggest

“collapse all' or ”toggle outline" in SQL Server Management Studio 2008

梦想的初衷 提交于 2020-01-01 07:51:49
问题 A new feature in SQL Server Management Studio 2008 is 'outlining' (the ability to collapse regions). It is awesome. However, by default all regions are expanded. I can't seem to find a way to 'collapse all' (also called 'toggle outline' in Visual Studio). Is anyone aware of a way to do this? I've been tasked with reviewing a 3,000 line stored procedure, and collapsing regions one-by-one is cumbersome. 回答1: It appears this feature does not exist. It has been recommended to Microsoft. I suggest

In SQL Server Management Studio what is SQLCMD mode?

ε祈祈猫儿з 提交于 2019-12-31 10:07:15
问题 In SQL Server Management Studio I would like to know what is SQLCMD mode? 回答1: Exactly what it sounds like. It is a mode that lets you author SQLCMD scripts. From MSDN - Editing SQLCMD Scripts with Query Editor: To use the Database Engine Query Editor to write or edit SQLCMD scripts, you must enable the SQLCMD scripting mode. In SQL Server Management Studio, set this via the Query menu (Query -> SQLCMD Mode). 回答2: I did some more research, so here's my understanding of this to extend what has

How do I set a column value to NULL in SQL Server Management Studio?

China☆狼群 提交于 2019-12-31 07:54:13
问题 How do I clear the value from a cell and make it NULL? 回答1: I think @Zack properly answered the question but just to cover all the bases: Update myTable set MyColumn = NULL This would set the entire column to null as the Question Title asks. To set a specific row on a specific column to null use: Update myTable set MyColumn = NULL where Field = Condition. This would set a specific cell to null as the inner question asks. 回答2: If you've opened a table and you want to clear an existing value to

Splitting of comma separated values [duplicate]

纵然是瞬间 提交于 2019-12-31 03:43:04
问题 This question already has answers here : T-SQL: Opposite to string concatenation - how to split string into multiple records [duplicate] (11 answers) Closed 5 years ago . I have some columns with comma-separated values. For example A as,ad,af,ag My manager wants the output looks like this: A as ad af ag All these should come under one row. I guess we need to use something line break. Hi can we use replace with char(13)+char(10) something. This one also works... Thanks, Shashra 回答1: You can

Disable “save” prompt in SQL Server Management Studio 2005

陌路散爱 提交于 2019-12-30 17:20:47
问题 I just want to close all my query windows without saving, but SSMS always prompts me and I can't find the turn-off switch. Any ideas? 回答1: There isn't an off switch - currently! Microsoft are reluctant to add one, but you can perhaps join the growing throng of people who are trying to persuade them: prompting-for-modified-windows-when-closing-ssms-should-be-optional 回答2: In SQL Server Management Studio 2016 you can unchecked the Prompt to save unsaved T-SQL query windows on close : The option