Disproportionate windows in SQL Server Management Studio - sql-server

Sorry for a noob question, but this is driving me nuts!
Some windows are of a disproportionate size in SQL SSMS and I need to reset them. I recently replaced my old development laptop with a new one and I did a fresh install of Windows 10, Visual Studio 2015 Enterprise, and SQL Server 2014 Enterprise. When I initially installed management studio, my laptop's screen resolution was set at 2880x1620 with "Change the size of text, apps, and other items" set to 200%. I've now docked my laptop and adjusted the built-in display to 1920x1080 and 100% and when I start management studio the dialog windows are huge! They're so big in fact that many of the text boxes overlap each other.
Is there any way to reset SMS to factory defaults?
The login window:
The new db window:

The problem you're running into occurs because SSMS has not been optimized for High-DPI displays. You can try the recently released SSMS November preview release that has initial support for High-DPI displays.

Related

SQL Server Management Studio intellisense ceases to work until its help banner disappears

When I open SQL Server 2012 Management Studio and start typing a query the intellisense does not work for some time until I wait for the following info banner to appear on the lower right corner of Windows 7 (or later).
Question: How can we disable the display of the following banner so it does not interfere in the appearance of intellisense - or are there any workarounds to resolve the issue?

SQL Server Compare Schema in Visual Studio 2017

I am attempting to compare schemas of two databases on the same server.
The two databases are named benchmarkdb and benchmarkdb_dev.
In Visual Studio 2017, I go to Tools > SQL Server > New Schema Compare...
From both drop down menus labeled "Select Source" and "Select Target" (as seen in the picture below), I want to select benchmarkdb as source and bencmarkdb_dev as target.
After clicking to select a source, the "Select Source Schema" pops up, and I clicked the "Select Connection..." button, which brought another popup. The newest popup (the one on the right in the picture below) shows both databases I am trying to compare.
However, after I choose one for either the source or the target, all pop ups close, but nothing populates the "Select Source..." or "Select Target..." drop down menus. In fact, it just goes back to looking like the first picture.
Is there a solution to this so I can compare the schemas between the databases?
Update:
I have tried this on VS 2012, 2015, and 2017. All are facing the same issue. VS software and system software are up to date. Below are some versions of software that I am using, if it is any help.
Windows 7 Enterprise SP1
VS 2012, 2015, and 2017
SQL Server 2014
.NET Framework v4.7.02053
OK, so I managed to fix it.
First off, you need to install SSDT from Microsoft pages. Just google it.
Make sure that you also have it listed in individual components when starting Installer (on Modify). Only SQL Server Database is required (I could choose from Integration Services and 3 more).
Next, you need to "Remove connection from history" in Schema Compare modal for connection selection.
I closed VS at this point, to make sure that the connection is not in history anymore.
Starting VS the next time, you should not have the problematic connection in history.
Recreate the connection (I checked "remember password") and voila. Schema compare works.
Not really sure, but in desperation I also installed "Redgate ReadyRoll Core", "Redgate SQL Prompt Core" and "Redgate SQL Search".
I don't think it matters, but if all else fails...
Edit: This worked on 2 machines and it doesn't seem to be connected to VS version.
I had the same issue, but I don't know if I had the same root cause.
My problems started after changing my database from SQL Server on a Window Server to SQL Server on a Linux Container. The schema compare would appear to accept my selection but the database field would never actually populate and I could not perform a comparison.
There were 2 things I had to do to solve the problem.
Update Visual Studio (using the standard updater within Visual Studio).
Update the SQL Server Development Tools (SSDT) add-on for Visual Studio to a preview version that supports SQL Server on Linux. That download is available here.
After both updates were in place I could select the database and execute Schema Comparisons between my project and SQL Server on Linux exactly as I had been doing for SQL Server on Windows.
If running a local database, check what version of SQL Management studio you are using
I had the same issue running Visual Studio Pro 2017 and SQL management studio v18.6 with SQL Server 2017 installed.
I tried all of the above solutions and no luck
Even going back to Visual Studio 2015 didn't work for me. What did work though was changing back to SQL Management Studio v17.9.1
No issues any more.
I may try to upgrade Visual Studio to 2017 again to see if that works now

BizTalk SQL Generate MetaData Failure

I'm currently trying to setup adapter metadata for an SQL adapter in BizTalk through the add generated items (add adapter metadata) wizard but the wizard keeps failing/disappearing.
I can get as far as the Select the type of statement selection.
I choose stored procedure, hit next then the wizard just disappears.
I've checked event viewer but I can't see any related events, I can't see any hidden popups etc. so I'm at a loss.
I am using BizTalk Server 2013 R2 (Standard), with Microsoft SQL 2014 Standard.
I'm using Visual Studio 2013 Update 5 for development with the BizTalk Dev kit.
My dev machine is currently running Windows 10 Pro.
Has anyone seen this before or know how to fix this? I did have a bit of a Google but I couldn't see anything unfortunately.
After much playing around, I finally found the fix.
I'd uninstalled Visual Studio, BizTalk, and anything to do with SQL Server.
Then I'd installed again in the below order:-
Visual Studio 2013
Update 5
Checked for updates
SQL Server 2014
Checked for updates
BizTalk 2013 R2
Checked for updates
That looks to have done it for me.

not refreshing window in sql server 2012

I've a problem with SQL Server 2012. I'm running SQL server studio management 2012 and then, after connection to local database I'm trying to add a new query. After click button new query I'm getting wrong window. It's window without upper control panel. What's more main window it's not refreshing. I dunno why. It's refreshing after maximizng window, but not dynamically. I have no idea what's wrong. I've windows 7 64 bit and my version of SQL Studio management is:
Microsoft SQL Server Management Studio 11.0.3128.0
Microsoft Internet Explorer 9.10.9200.16521
Microsoft .NET Framework 4.0.30319.296
Operating System 6.1.7601
I've noticed LOTS of graphical / UI bugs with the 2012 SSMS. Same version (11.0.3128.0).
Guessing you got this resolved by now, but perhaps you just dragged the query window out of the main SSMS window? I never really use this ability since it treats the "popup" windows as modal and always-on-top, which is annoying.
Frequently, when I resize windows, I get vertical black bars. When I stretch the window, it normally clears it up, but sometimes I have to min/maximize it to get it back to normal. Probably a different bug, but Here's a screenshot

Missing Diagram folder in Database Explorer at Visual Studio 2012

I was in a middle of designing a website when suddenly Database Diagram folder just disappeared from the Database Explorer. I have no idea what happened and what to do right now, as I desperately need it to continue my work - adding tables to database manually are not an option for me.
I've been seeking for the solution for a whole day, and I even re-installed the Visual Studio and local IIS server, but it wasn't helpfull at all.
Is there any way to bring the feature back or at least is there any free tool that would work on Windows 8 x64 and has diagram-based database designer for MSSQL 2008?
EDIT
It seems that Microsoft removed the diagramming for purpose. Which is pretty logical in a business logic - why would somebody buy Server Management Studio if they have basic tool (diagramming) built in Visual Studio?
1) Database Diagram is a feature of SQL Server, not Visual Studio. I am not sure what VS uses to display that folder but you might want to verify with your DBA or check the configuration of the database to see if someone has not just disabled the ability to use diagrams. Have you tried refreshing your connection to the database server as well?
2) How is adding tables to a database manually not an option? If you get yourself dependent on doing things one way and only that one way you are setting yourself up for disaster in future projects, as you are in your current one. There are other ways from within VS to create a table, it just may not be a graphical picture that diagrams offers.
3) Have you looked at the database through SSMS to see if the diagrams folder shows up there?
Hello this has been my solution that worked for me and enabled me to use database diagram ide in visual studio 2012!!
First i installed SQL Server Management Studio. I then noticed that i still did not have SQLEXPRESS Service or SQL Agent Browser in my computer services either.. This was why i assume i couldn't login to any of the SSMS which was annoying. I then downloaded SQL Server Express R2 which then ran me though another setup which was fine. I did also choose to put a sql server password for SQL Server Express.
Once installed I double checked to make sure the services where running by right clicking MY COMPUTER / MANAGE / SERVICES -- scroll down till you see "SQL Server (SQLEXPRESS)" and make sure that the service has started and also "SQL Server Agent (SQLEXPRESS)" (this one was turned off when i checked) .. i was then able to login to SSMS without a problem.
I then created a new database, right clicked diagram like we always do in VS and created a diagram with two tables, created their relationships blah blah..
i then created a new website in vs 2012, i clicked "Connect To Database" in the SERVER EXPLORER"
I choose my server name, used windows authenication and selected the database i just created in SSMS.
Then to my suprise i now have database diagram designing in Visual Studio 2012.. Finally!
Thankyou microsoft for removing such a cool feature which now gives us developers a few things to do.
Hope this helps.

Resources