ssms-2012

Microsoft SQL Server vs. SQL Server Management Studio

守給你的承諾、 提交于 2019-12-10 00:56:22
问题 What is the difference between Microsoft SQL Server and SQL Server Management Studio (SSMS) and how can I integrate SSMS in Visual Studio 2012 so I can use database diagrams? 回答1: Credit to marc_s: SQL Server = database engine; SQL Server Management Studio = GUI Administration Tool for working against the SQL Server engine 回答2: It seems like Microsoft is trying to make SSMS look like Visual Studio, but there is still no integration. Use the Entity Framework 6.0 within Visual Studio 2012 to

Get default value of stored procedure parameter

随声附和 提交于 2019-12-06 08:31:35
问题 I have created below stored procedure with default value: CREATE PROCEDURE [dbo].[Sample1] @OrderID INT = 10285 AS SELECT ProductName, OrderID FROM Products P, [Order Details] Od WHERE Od.ProductID = P.ProductID AND Od.OrderID = @OrderID Tried to get default value (10285) of parameters using sys.parameters . Select a.object_id, a.default_value from sys.parameters a inner join sys.types b on b.system_type_id = a.system_type_id where Object_id = object_id('[dbo].[Sample1]') But I got NULL as

DACPAC not including composite objects

白昼怎懂夜的黑 提交于 2019-12-04 16:16:33
I have a VS2012 database project which includes tables, stored procs, views etc. I then have a second database project which contains a database reference to the first project. I have ensured that the "Include composite objects" options is selected from the "Project Properties -> Debug -> Advanced" menu. When I build the second project and take the resulting DACPAC file and deploy it through SSMS2012 it doesn't create the firsts project's objects. Am I missing something? Why don't the composite objects get included in the DACPAC? SmudgerDan As Peter Schott said in the comments above, I needed

How to connect to SQL Server CE file using SSMS

懵懂的女人 提交于 2019-12-04 15:36:00
问题 I am using SSMS 2012 and trying to connect to the SDF created by Orchard. According to this answer, I should be able to select SQL Server Compact Edition as the Server type when connecting my object browser, but that isn't an option. Is there something I need to install? Did I miss part of the install originally (when setting up SSMS)? 回答1: SQL Server Compact is no longer supported in SSMS 2012, I have a list of available tools from Microsoft and others here: http://erikej.blogspot.dk/2009/04

Get default value of stored procedure parameter

感情迁移 提交于 2019-12-04 14:02:37
I have created below stored procedure with default value: CREATE PROCEDURE [dbo].[Sample1] @OrderID INT = 10285 AS SELECT ProductName, OrderID FROM Products P, [Order Details] Od WHERE Od.ProductID = P.ProductID AND Od.OrderID = @OrderID Tried to get default value (10285) of parameters using sys.parameters . Select a.object_id, a.default_value from sys.parameters a inner join sys.types b on b.system_type_id = a.system_type_id where Object_id = object_id('[dbo].[Sample1]') But I got NULL as default_value , while I was expecting 10285 as default_value . Is there any way to get default value? It

CTRL+R does not hide the Query Result window in SSMS

…衆ロ難τιáo~ 提交于 2019-12-03 04:41:09
问题 I just upgraded from SSMS 2005 to 2012. Previously, I could hit CTRL + R and the Query Results windows would disappear. After I upgraded to SSMS I ran a query and, out of habit, hit CTRL + R . Nothing happened. At the bottom of SSMS I noticed that the status bar was reporting "(Ctrl+R) was pressed. Waiting for the second key of chord..." After checking out the details of this keyboard shortcut in the MSDN documentation, I found out that CTRL + R was suppose to hide the resulting window as I

CTRL+R does not hide the Query Result window in SSMS

孤街浪徒 提交于 2019-12-02 17:49:35
I just upgraded from SSMS 2005 to 2012. Previously, I could hit CTRL + R and the Query Results windows would disappear. After I upgraded to SSMS I ran a query and, out of habit, hit CTRL + R . Nothing happened. At the bottom of SSMS I noticed that the status bar was reporting "(Ctrl+R) was pressed. Waiting for the second key of chord..." After checking out the details of this keyboard shortcut in the MSDN documentation , I found out that CTRL + R was suppose to hide the resulting window as I had suspected. However, my SSMS isn't behaving as documented. Is there a way that I can restore this

Unable to import/deploy database to SQL Azure: “The service objective (Business/Web) specified is invalid.”

烂漫一生 提交于 2019-12-01 20:29:12
问题 I'm trying to move my databases to a newer Azure subscription. I used to simply click "Deploy to Azure" on a local database from SSMS and have it deployed to a specified Azure server. Importing/Exporting a BACPAC file also works. However, I can't seem to do any of this on the new server. I keep getting the error: "The service objective 'Web' specified is invalid." Googling around, I found this thread explaining the need to update the CREATE DATABASE template to accommodate Azure Databases

Design in Query Editor disabled for Azure databases

坚强是说给别人听的谎言 提交于 2019-12-01 18:28:18
When I try to manage an Azure Database query in SQL Managements Studio 2012 I see that the "Design in Query Editor" option is disabled. It is enabled for other databases but not for Azure. Is there a way to enable it? Thanks Unfortunately, this is a by design issue. Not all SSMS functionality from on-premise SQL Server is supported when connected to Azure SQL database, "Design Query in Edit" greys out because it's not supported for azure sql database. For more information, please refer to this thread: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/22d29cb7-48d1-4cbd-af2e-30b66ebdc7d4

Unable to import/deploy database to SQL Azure: “The service objective (Business/Web) specified is invalid.”

大兔子大兔子 提交于 2019-12-01 18:26:40
I'm trying to move my databases to a newer Azure subscription. I used to simply click "Deploy to Azure" on a local database from SSMS and have it deployed to a specified Azure server. Importing/Exporting a BACPAC file also works. However, I can't seem to do any of this on the new server. I keep getting the error: "The service objective 'Web' specified is invalid." Googling around, I found this thread explaining the need to update the CREATE DATABASE template to accommodate Azure Databases (Azure upgrade, I'm guessing). However, the hotfix provided is specifically for SQL Server 2014 and I'm