ssms

How to edit MULTIPLE rows/data entries in SQL Server Management Studio [closed]

时间秒杀一切 提交于 2019-12-24 04:01:21
问题 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 4 years ago . I want to update/edit multiple rows in a database using SQL Server Management Studio. I know you can edit one entry using solutions provided here, here or here using Edit Top(200) function. But I want to edit >100 entries so this is not an adequate solution. I am using SSMS 2012. EDIT: As an simplified example

Prevent rows affected entry in file export from SSMS

淺唱寂寞╮ 提交于 2019-12-24 03:43:16
问题 How can I prevent entries like this: (123456 rows affected) in a text file export at the end of the file. Do not seem to find option. Thanks! 回答1: You could use: SET NOCOUNT ON; SET NOCOUNT Stops the message that shows the count of the number of rows affected by a Transact-SQL statement or stored procedure from being returned as part of the result set. Or by enabling the SET NOCOUNT option via SSMS: Image source: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b8c99360-780d-4bd7-a919

An exception occurred while executing a transact-sql statement or batch

柔情痞子 提交于 2019-12-24 00:26:52
问题 I keep getting the error message: an exception occurred while executing a transact-sql statement or batch when trying to do anything in SQL Server Management Studio 2016. This occurs when I try to create or edit a login, when I try to create a new database, basically when I do anything. I tried the solution given in SQL Server 2008 R2 Express permissions -- cannot create database or modify users but I can't edit the Startup Parameters specified in step 6. Can anyone explain what the issue is

How to search for a string/substring in SSMS results?

白昼怎懂夜的黑 提交于 2019-12-23 20:11:55
问题 This seems pretty straightforward, but for some reason I'm not finding anything about how to do it. I'm using SQL Server Management Studio 2012, and I have a set of results returned from a SELECT query, say, select a,b from x . How can I search in column b for a substring? In Access I would click on the column and type Ctrl+F, but in SSMS that seems to only be used for searching the SQL itself, not the results. How can I search in my results? I know I can modify my query to only return that

Track changes in Microsoft SQL Server database

戏子无情 提交于 2019-12-23 12:42:07
问题 I would like to know if there are any features in MS SQL Server that will give me the opportunity to track movement of data between tables? I am doing customer support on a database-driven application with hundreds of tables in one database. Data registered in the application goes through a series of stages, and when transitioning between these stages the data often moves from one table to another table. I would like to get a better understanding of the underlying data model of the

Where I can check user-define table type in SQL Server 2008 in SSMS? and how can I insert new column into it?

╄→尐↘猪︶ㄣ 提交于 2019-12-23 09:13:14
问题 I need to add some more columns into my current user-define table type in SQL Server 2008 But I didn't see any table type in particular database under Tables . Where exactly I need to check and how can I modify the design of existing user-define table type in SQL Server 2008 I'm using SQL SERVER 2008 and SSMS Where I can find that table in SSMS , so that I can go and modify table type. thanks for previous question answer Please can any one help to sql alter type table syntax add column ? how

How can I change the connection for current tab in Microsoft SQL Server Management Studio

六眼飞鱼酱① 提交于 2019-12-23 07:50:41
问题 I want to run a query in SQL Server Management Studio on several databases on different servers. I am already connected to these servers in the object explorer. Is there a quick way to change the connection of the current query tab to a different server without the need to login again (without using change connection) and without opening a new tab. 回答1: Right-click in the query window and select Connection > Change Connection : That will bring up the standard connection dialog from which you

SSMS 2012 Intellisense Behavior

佐手、 提交于 2019-12-23 07:03:33
问题 It seems like the behavior of intellisense has been changed in SSMS 2012 so that it does not behave the same as Visual Studio or SSMS 2008. Previously I would always hit SPACE, and that would insert the current highlighted word from intellisense. But in SSMS 2012 I have to hit TAB or hit DOWN ARROW then SPACE Here is what SSMS 2012 looks like as I'm typing a query If I hit space then this happens: In SSMS 2008 it looks differently And in visual studio In both of those simply hitting SPACE

SQL faster in ssms than in application

允我心安 提交于 2019-12-23 04:51:10
问题 One ERP system execute SQL statements very slowly. I get into activity profiler in SQL Server Management Studio and I saw that one SQL command takes 25 seconds. I run the same SQL command in Management Studio, and it takes only 3-4 seconds to get results (it's a normal select with where clause, without joins and other). What can this be caused by? 回答1: Welcome to S.O. I came across this issue quite recently myself. We found the cause was down to database settings in SSMS, being different to

Turn off auto committing in SQL Server Management Studio (SSMS)

纵饮孤独 提交于 2019-12-23 03:51:51
问题 I’m looking for an option to explicitly commit/rollback every query executed in SSMS without the need to start the transaction explicitly. By default SSMS auto commits leaving no option to rollback. 回答1: You can SET IMPLICIT_TRANSACTIONS ON in a query window. If you set this in the Query/Query Options menu it will be set just for the current query. If you set this in the Tools/Options/Query Execution/SQL Server/ANSI menu it will be the default for all new queries. 来源: https://stackoverflow