ssms

Complete Regex syntax for Sql Server Management Studio

独自空忆成欢 提交于 2019-12-22 03:42:08
问题 Is there a complete description of the regular expression syntax used in Sql Server Management Studio? There must be a way to do negative lookaheads, for example, but the find/replace dialog doesn't list one. 回答1: SSMS versions 2005-2012 are really just modified/customized Visual Studio Shell (2005-2010) environments, so this Visual Studio (2005-2010) Regular Expression reference applies: http://msdn.microsoft.com/en-us/library/2k3te2cs(v=vs.80).aspx Visual Studio 2012 and later have switched

Complete Regex syntax for Sql Server Management Studio

▼魔方 西西 提交于 2019-12-22 03:42:06
问题 Is there a complete description of the regular expression syntax used in Sql Server Management Studio? There must be a way to do negative lookaheads, for example, but the find/replace dialog doesn't list one. 回答1: SSMS versions 2005-2012 are really just modified/customized Visual Studio Shell (2005-2010) environments, so this Visual Studio (2005-2010) Regular Expression reference applies: http://msdn.microsoft.com/en-us/library/2k3te2cs(v=vs.80).aspx Visual Studio 2012 and later have switched

SSIS script task fail version 15.0 script?

♀尐吖头ヾ 提交于 2019-12-21 23:14:03
问题 I have a 2012 SSIS project that runs on SQL Server 2016. I have SSDT 2015 on both my dev machine and server. Everything works fine except for script tasks - I made a change to an existing script task and rebuilt and redeployed the project and I receive the following error: Script task uses version 15.0 script that is not supported in this release of integration services. To run the package, create a new script. I've tried the following: upgrading the project to 2016 creating a new script

Stored procedure parameter default value

两盒软妹~` 提交于 2019-12-21 18:28:13
问题 I'm trying to create a stored procedure with default parameters, in my query I would do it like this: DECLARE @mydate DATETIME DECLARE @MT DATETIME DECLARE @MY DATETIME SELECT @mydate = GETDATE() SELECT @MT = DATEPART(MONTH,@mydate) SELECT @MY = DATEPART(YEAR,@mydate) SELECT * FROM .... In my stored proc I've tried it as follows but when I execute the stored proc it prompts me for parameter values: USE .. GO .. ALTER PROCEDURE ... (@mydate DATETIME ,@MT DATETIME ,@MY DATETIME) AS BEGIN ...

Can't attach ASP.NET database to SQL Server Management Studio

此生再无相见时 提交于 2019-12-21 13:01:12
问题 I have an ASP.NET MVC3 project that has a database. I want to attach that database to SQL Server Management Studio. In SQL Server Management Studio, I right click Databases , then click Attach , then click Add and it shows the folder/file selection dialog. The problem is it won't let me explore any folder inside my user account folder ( c:\users\Bob ). I can see the Bob folder but there is no + to expand, and shows no child items (even though I know there are files in my windows user folder).

sql server 2012: cannot alter the login sa

瘦欲@ 提交于 2019-12-21 11:05:15
问题 I'm trying to create a database on my local machine using SSMS version 11.0.2100.60. I've run the application as administrator, logged in using Windows authentication, and I've added MYDOMAIN\my-username to the Logins. However if I try to create a db with this login I get the message CREATE DATABASE permission denied in database 'master'. (Microsoft SQL Server, Error: 262) If I try to add the privelage dbcreator to my user, I get the following error. User does not have permission to perform

How to view data in table variables during debugging session in MS SQL Management Studio 2012?

心不动则不痛 提交于 2019-12-21 07:14:03
问题 I would like to debug a complex T-SQL script using SSMS 2012. I can run the script in debug mode and place breakpoints, as well as step through my script, but I can't see the values stored in my table variables. In the Locals window I see all these variables, but their value is shown as (table) : There is no way to view the content of the variable through the context menu or by clicking on the variable. I tried to use the Immediate Window to run a query on the table variable, but this seems

SQL Server Management Studio: See Object Explorer Details for objects in this folder

旧时模样 提交于 2019-12-21 07:07:40
问题 I am working with a database hosted at GoDaddy using Microsoft SQL Server Management Studio (version 10, for SQL Server 2008). I am getting this message: See Object Explorer Details for objects in this folder probably because they have more than 2500 databases there. I can still access everything from the Object Explorer Details, but it's a pain when you have to do it everyday. Does anyone know any way to get the database I am working on to appear in the Object Explorer on the left? 回答1: It

Could not write value to key \SOFTWARE is displayed for SSMS Install in a Windows 7 machine with an Administrator account

坚强是说给别人听的谎言 提交于 2019-12-21 05:38:51
问题 I have the following error when installing SQL Server 2014: Could not write value to key \SOFTWARE. Verify that you have sufficient access to that key, or contact your support personnel. It happens when it tries to install the SSMS and my machine has Windows 7 running. I have done the following things in order to make it work: • Run the set up as an admin • Reinstall the machine I found this on a Microsoft link and doesn’t work either • Click Start, click Run, type control userpasswords, and

MSSQL Server Management Studio (SSMS) 2005 New Query Template

余生颓废 提交于 2019-12-21 04:58:15
问题 How do I change a default "New Query" template in SSMS 2005? 回答1: Posted this question as a reference, I did some googling, and found a simple way of doing it. All you need to do is to edit SQLFile.sql located here: <%= your SQL install dir %>\90\Tools\Binn\VSShell\Common7\IDE\SqlWorkbenchProjectItems\SQL\SQLFile.sql Also, Ctrl+Alt+T will show you all the other templates in SSMS; and check out Free SQL Server tools while you're at it. 来源: https://stackoverflow.com/questions/593047/mssql