ssms

Schema changes not updating in Intellisense in SQL 2008 (SSMS)

对着背影说爱祢 提交于 2019-11-29 13:22:47
I've notice an issue - it feels like a bug but I suspect a 'feature' - in SSMS in SQL Server 2008. I have various tabs open, for example an alter table script in one table and a SProc that queries that table in another tab, and when I execute my Alter Table script the changes are not reflected in Intellisense in the other tab. I can create new queries and the changes are still not reflected in Intellisense. If I open a new SSMS instance, the changes are reflected, until I make further changes, of course. However, if you over-rule Intellisense and push ahead with your modified tables and code,

SQL Server Management Studio Object Explorer - How to increase Font Size?

♀尐吖头ヾ 提交于 2019-11-29 11:52:09
问题 In SQL Server Management Studio Object Explorer - How to increase Font Size? From the tool --> Options --> Fonts & Colors we can change fonts for many windows. There is a drop down 'Show Settings For' where we can changes font for text in many area's but I'm not sure how to change the font for the Object Explorer. I thought it would be the tools window drop down selection but that didn't effect the Object Explorer. Any help is appreciated. Thanks! 回答1: Using SSMS 2016, it will set use the

SQL Server Management Studio 2008 Intellisense

混江龙づ霸主 提交于 2019-11-29 10:53:13
问题 I just installed SQL Server Express 2008 because of intellisense feature. It worked at first but than it stopped working. Looking for the option to check and later consulting Google I have found that it looks like Microsoft disabled intellisense if you connect to SQL Server 2005 databases. Is this absolutely correct ? Is there any solution for this (some registry "switch") ? 回答1: If you'd like to see the feature added, vote for the request on Connect. Here is feedback from the team regarding

Is there a shortcut key to switch between split panes in visual studio/management studio?

て烟熏妆下的殇ゞ 提交于 2019-11-29 10:41:30
问题 When I have a file open in visual studio/sql server management studio and have it split in to two panes, I'd like to be able to switch between the panes without having to reach for the mouse. Does anyone know if a shortcut key exists for this? 回答1: In SSMS: right-click toolbars, customize. Under categories, select Window, then under Commands select "Next Split Pane". Drag to toolbar. Right-click and change name to "Next Split P&ane". You can now use alt-a to change split pane. 回答2: F6 is your

Find the time difference between two consecutive rows in the same table in sql

∥☆過路亽.° 提交于 2019-11-29 10:29:24
问题 I'm stuck. I've looked for an answer, but can't seem to find subtracting time in the same table from two different rows of the same table that fits. I'm having a difficult time with the following query. In the table below, I want to differentiate the TimeOut from one row to the TimeIn of the next row. Consider in the following table of finding the difference in minutes between the TimeOut in Row 1 (10:35am) and the TimeIn in Row 2 (10:38am). Table 1: TIMESHEET ROW EmpID TimeIn TimeOut -------

Permissions issue in SSMS: “The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystem_resource', … Error 229)”

余生颓废 提交于 2019-11-29 09:08:48
Here’s the simplest repro case possible. Create a brand new database. (I'm using SQL 2005.) Create a login, a SQL user, and a table in the new database (see sample code below). Launch SSMS and open Object Explorer, logging in as the newly-created user . Attempt to open the "Tables" folder in the Object Explorer. The Problem Fails with this error message . Message Text: TITLE: Microsoft SQL Server Management Studio Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc) For help, click: link ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL

How to open multiple .sql files in only one ssms instance

我们两清 提交于 2019-11-29 09:05:21
I'm DBA with a new server box running Windows Server 2008 Enterprise SP1 with SQL Server 2008 and SQL Server Management Studio. In my previous box when working in Visual Studio with database solution with lot of .sql files I used to double-click on the .sql files and they were opened in the same SSMS instance (if any already opened). However (even when having exactly the same installation in the new box) I'm now getting a new SSMS instance when double clicking in each sql file. Its really painful one .sql - one SSMS instance so I started my research about that. What I've tried till now: 1)

SQL Server Error - HRESULT E_FAIL has been returned from a call to a COM component

烂漫一生 提交于 2019-11-29 08:44:40
I have a huge 200MB .SQL file. When I try to open this in SQL server management studio 2008, I get the error -Error HRESULT E_FAIL has been returned from a call to a COM component. What could the reason be and how to fix it ? Is this caused due to big files ? It does not happen when I open a 2-3 KB file. please use sqlcmd -S .\MYSQLSERVER2008 -U MyUsername -P MyPassword -i C:\Database\script.sql http://technet.microsoft.com/en-us/library/ms180944.aspx 来源: https://stackoverflow.com/questions/19647922/sql-server-error-hresult-e-fail-has-been-returned-from-a-call-to-a-com-compone

Can't connect to SQL Server in different domain using SSMS and Windows 7 Credential Manager

☆樱花仙子☆ 提交于 2019-11-29 06:57:25
问题 I need to connect to a SQL Server 2008 instance in another Windows domain to manage it. We only use Windows Authentication. In Windows XP, I could use the "Manage Network Passwords" feature to store on my local machine my username and password for the remote machine. Doing so would cause SQL Server Management Studio to use those credentials, instead of my local credentials, when connecting to that server. This worked great, and prevented my having to enter a username or password every time I

How to determine the datatypes of the results of a SQL?

邮差的信 提交于 2019-11-29 06:31:31
We have a SQL query that pulls a large number of fields from many tables/views from a database. We need to put a spec together for integration with a 3rd party, what is the quickest way to compile the data types of the result set? Clarifications: There are 25+ tables/views involved, so functions at the table level will still be cumbersome. All work is currently being done in Microsoft SQL Server Management Studio. You can run the query with SET FMTONLY ON, but that might not help you to easily determine the data types returned, since you're working in management studio only. If it was me, I