ssms

SQL Server 2012 Management Studio for Windows XP [closed]

这一生的挚爱 提交于 2019-12-23 02:52:57
问题 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 already searched for it and tried to install the 2012 version on my Windows XP (got an error that I have to upgrade to min. Win Vista) but is there still a hack or something like that to install it? Thanks! 回答1: You can't. Read the minimum requirements. minimum requirements but you can do a virtual machine

Error opening SQL Server Management Studio 17.3

。_饼干妹妹 提交于 2019-12-23 01:27:10
问题 I recently installed SQL Server 2016, amd as we know SQL Server and SQL Server Management Studio now are separate downloads, so I download SQL Server Management Studio 17.3 and installed it on my PC. After installing, when opening it for first time, it worked perfectly, but after rebooting or reopening SSMS 17, I get this following error: Please help me to get rid of this problem. 来源: https://stackoverflow.com/questions/47193783/error-opening-sql-server-management-studio-17-3

Sql Server Case Statement gives me errors in user-defined function

跟風遠走 提交于 2019-12-22 13:53:17
问题 I want to use a case statement in my user-defined functions because I need to match on a number of terms. I could use a table for the matches but then I wouldn't be able to put it inside the Computed Column definition. This works with IF statements: CREATE FUNCTION MaraSizeNumber ( @ms varchar ) RETURNS varchar AS BEGIN IF ms = '16-18' RETURN '1' ELSE IF ms = '18-20' RETURN '2' ELSE IF ms = '20-22' RETURN '3' ELSE IF ms = '22+' RETURN '4' ELSE IF ms = '24+' RETURN '5' ELSE IF ms = '14-16'

Cannot add a stored procedure to database due to encryption message

☆樱花仙子☆ 提交于 2019-12-22 12:43:46
问题 I set up a local database (SQL Server 2017 Express). Everything works fine, but I'm getting errors when creating even a simple stored procedure in SSMS. For example, this CREATE PROCEDURE [dbo].[EMS_Operations_SyncAssetTableByID2] @Table_Name VARCHAR(255), @Ids_For_Update VARCHAR(255), @Is_Test BIT = 0 AS BEGIN DECLARE @DB_String varchar(55) ='Redesign' END Will not run, and I get the error message: Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'PROCEDURE'. Msg 156,

Cannot add a stored procedure to database due to encryption message

这一生的挚爱 提交于 2019-12-22 12:43:05
问题 I set up a local database (SQL Server 2017 Express). Everything works fine, but I'm getting errors when creating even a simple stored procedure in SSMS. For example, this CREATE PROCEDURE [dbo].[EMS_Operations_SyncAssetTableByID2] @Table_Name VARCHAR(255), @Ids_For_Update VARCHAR(255), @Is_Test BIT = 0 AS BEGIN DECLARE @DB_String varchar(55) ='Redesign' END Will not run, and I get the error message: Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'PROCEDURE'. Msg 156,

SQL Server 2008 R2 standard missing “Audits” folder in SSMS?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 10:16:39
问题 I will pre-cursor this with the fact that I am NOT a DBA! I am trying to set up auditing on an SQL Server 2008 R2 Standard edition, but the Audits folder is missing from the Security section. Is this a version issue associated with the "fine-grained auditing" that is only in the Enterprise and DataCenter editions? Any help is greatly appreciated! 回答1: According to Features Supported by the Editions of SQL Server 2008 R2 auditing is only available in 2008 / 2008 R2 Enterprise / Datacenter.

Script all views/functions/procedures in a Sql Server database in dependency order

三世轮回 提交于 2019-12-22 08:38:19
问题 Sql Server 2008 (and probably most other versions): Management Studio has a 'generate scripts' option that can in theory script a whole database with all objects (Right click, tasks, Generate Scripts). It works OK for most things but when you use it to script all views/stored procedures/functions in a database, it generates a script that does not take account of dependencies between the objects. e.g. If View A references Function B it won't necessarily put Function B in the script first. It

How do I find {min,max} repeats with regular expression patterns in Visual Studio or SSMS “Find and Replace”?

时光总嘲笑我的痴心妄想 提交于 2019-12-22 05:38:07
问题 I knew that we have something like this in the regular expression syntax world. *The syntax is {min,max}, where min is a positive integer number indicating the minimum number of matches, and max is an integer equal to or greater than min indicating the maximum number of matches. So {0,} is the same as * , and {1,} is the same as +* . http://www.regular-expressions.info/repeat.html But how can I use it in SQL Server Management Studio or Visual Studio's "Find and Replace" window. I only find

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

纵然是瞬间 提交于 2019-12-22 04:15:09
问题 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

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

蹲街弑〆低调 提交于 2019-12-22 03:52:33
问题 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