ssms

Stop SQL Server from running until needed [closed]

流过昼夜 提交于 2019-12-05 04:11:38
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 that if that's the way to do it.) To start, stop, pause, resume, or restart the an instance of the SQL Server Database Engine: On the Start menu, point to All Programs, point to Microsoft SQL Server 2012 , point to Configuration Tools, and then click SQL Server Configuration Manager. If

Why is my new schema not showing in the table properites pane?

大憨熊 提交于 2019-12-05 03:29:47
I am using SQL Server 2008 Express and Sql Server Management Studio 2008. I am trying to associate a database table with a new schema. I have created a new Schema by navigating to Security->Schemas in object explorer. I right clicked on the folder and created a new schema called 'People' and set the owner as db_owner. This new Schema now appears in object explorer. I would now like to associate a table with this schema. I open the table in design view and click on the drop down list in the table Properties pane which contains the available schemas but my newly created schema is not visible. I

Query Execution time in Management Studio & profiler. What does it measure?

微笑、不失礼 提交于 2019-12-05 03:01:40
I have my production SQL Server in a remote data center(and the web servers are located in the same data center). During development we observed that one particular view takes a long time to execute (about 60-80 secs) in our local development SQL Server, and we were OK with it.It was promoted to production and when I run the same query on Production DB (which is in the data center)from my local Management Studio I see that the query takes about 7 minutes,17 secs to run (available the bottom right corner of the management studio).When I ran a profiler I see that the time taken to execute that

Want to script all objects which depend on a SQL Server table

老子叫甜甜 提交于 2019-12-05 02:48:39
问题 The 'View Dependecies' shows all the objects which depend on a table in SQL Server. Now how do I use SSMS to script all these objects in one command? Is there a free tool that does this? 回答1: First you can try this link Understanding SQL Dependencies Second, you have multiple options to check the Dependencies using sql_expression_dependencies table, to see the dependency of X on Y, run the following query. SELECT * FROM sys.sql_expression_dependencies WHERE referencing_id = OBJECT_ID('X') AND

SQL Server 2008 management studio intellisense auto refresh (not manually through menu or Keyboard shortcut)

↘锁芯ラ 提交于 2019-12-05 02:20:30
The intellisense feature in SQL server management studio was long overdue (it was difficult especially for those used to Visual studio intellisense) and great to see that it is added in SQL Server 2008, but I think it still lacks in one feature. if I make some changes to the schema or add or drop objects, I will have to refresh the intellisense manually (Edit --> intellisense --> refresh local cache). Is there any way to refresh this automatically (may be through some external add-ins or any other way)? No way to do it automatically that I know of. But the much-quicker way is just to press

Convert Column from Date to Datetime Sql Server

南楼画角 提交于 2019-12-05 02:18:46
I have a column named Lastmodified , with a data type of Date , but it should have been DateTime . Is there any way of converting the column? When I use the 'Design' feature of SQL Server Management Studio I get the following error: Saving changes is not permitted. The changes you have made require the following table to be dropped and re-created. Not really interested in dropping the table, I just want to know if it is possible to convert a column from Date to Datetime or do I have to delete the column and create a new one with the correct data type? It shouldn't need to drop the table and

SQL Server Management Studio: icon meaning

﹥>﹥吖頭↗ 提交于 2019-12-05 01:18:14
I'm just wondering what this icon means in SQL Server 2008 Management Studio (between the minus sign and the database icon with a green arrow). The DB engine is just working as expected. SQL Server Agent is running as well. Can someone help me? Screenshot I believe that the icon refers to an alert generated by Policy Based Management for SQL Server 来源: https://stackoverflow.com/questions/5896910/sql-server-management-studio-icon-meaning

How to get Enterprise Manager installed in SQL Server 2008 Express?

£可爱£侵袭症+ 提交于 2019-12-05 01:18:08
I've installed Microsoft SQL Server 2008 Express twice now, and all the services work and I can create databases from Visual Studio 2010, but I don't have the Enterprise Manager (I learned it is now called Management Studio ) available in the SQL Server 2008 program menu-- I do have other menu items like configuration manager, etc. but nothing for Management Studio / Enterprise Manager . Is there a checkbox I've missed during installation? I ran a search for all exes in the SQL Server root folder and nothing jumped out as belonging to the Enterprise Manager, but I'm not 100% sure what the

Error when installing SSDT (SQL Server Data Tools)

久未见 提交于 2019-12-05 01:06:26
I have a problem during the installation of SQL Server Data Tools for Visual Studio 2017 I get the following error (translated): The requested meta file operation is not supported (0x800707D3) Screenshot: See here Log file available here: https://www.dropbox.com/s/e34kry9ycj76j7n/SSDT-Setup-ENU_20171219090643.log?dl=0 Here's the relevant section from the linked log file: [13C4:3020][2017-12-19T10:07:22]i000: MainViewModel.OnPackageActionProgress: Percent completed: 0, Overall progress: 27 [13C4:3020][2017-12-19T10:07:22]i000: MainViewModel.OnPackageActionProgress: Percent completed: 0, Overall

System.OutOfMemoryException occurs frequently after Upgrading SQL Server 2016 to version 13.0.15700.28

主宰稳场 提交于 2019-12-05 00:32:14
I am running Windows 10 Pro 64 bit on a dev box that has multiple monitors, 16 gigs DDR4 RAM, 4 Ghz I7, GTX 970. I run SQL Management Studio with SQL Server 2016 Developer Edition along with VS 2015 Enterprise Update 3. Yesterday I upgraded Sql Management Studio 2016 to 13.0.15700.28 and it was like a poison pill for my machine. Now after an hour or two it will throw an out of memory except: An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown Now this is sometimes typical if you are doing very large return sets of over a few