When pressing F1 hotkey in SQL Server 2008 R2 hang my Maganement Studio? - sql-server

Sometimes I miss the 1 or the F2 in my computer keyboard when using SQL Server Maganement Studio, that causes my SQL MS to hang and the I have to close it with the Task Manager, but many time I loss a lot from the queries I was working on, so I would like to fix this problem,
Maybe someone here has the same problem.
Microsoft Document Explorer
The Application Data folder for Microsoft Document Explorer could not be created

Right click on the SSMS program (in the start menu / desktop) and select "run as administrator". Do whatever you do to cause SSMS to hang, quit and re-run as normal user. This should remove that warning.

After many intents to solve this problem, I received this message:
External help is not available because Microsoft Document Explorer is
not installed. To view help, change your Help preferences to use the
Integrated Help Viewer or Install Microsoft Document Explorer
I tried to do it at Tools->Options->Help->General->
Show Help usaing: Integrated Help Viewer
Search Result per page: 20
Show Topic abstracts: checked
Reuse Topic window: checked
Highlight search termn: checked
I had to tried many times until SSMS wanted let me to do it.
Now the problem has been partially solved, when I press F1 the SSMS does not hang, but when I still try to change something in the help options, then chunks..

Related

SSMS 18.6 crashes on startup

Running SSMS 18.6 causes the program to launch, hang, and then crash. There is no error message given, the program simply terminates before any action is taken and nothing is connected.
I've uninstalled and deleted all files for SSMS, Visual Studio, and SQL Complete.
I tried the 18.6 and 18.5.1 versions of SSMS to no avail.
From https://dba.stackexchange.com/questions/237086/sql-server-management-studio-18-wont-open-only-splash-screen-pops-up/237087#237087 :
I have tried copying the Interop.8.0.dll file from privateassemblies into public. No effect. The line in the config file mentioned here is already commented out in the recent release of SSMS.
From Sql Server Management Studio closes immediately after startup :
I have tried renaming or deleting the package file listed here and removed the relevant registry key. This causes SSMS not to open at all and Windows to issue an alert sound. No other effect.
From https://social.msdn.microsoft.com/Forums/silverlight/en-US/9d0e2459-eb74-46e8-a983-05ae2ba18977/ssms-crashes-on-startup?forum=sqltools :
I tried to repair .NET framework. No effect.
I was only able to install and successfully connect on SSMS version 17.9.1
I can provide Event Viewer details if anyone is willing to help me troubleshoot. I have a .NET Runtime error and two application errors- one is event name CLR20r3 and the other is APPCRASH. Happy to provide more information if needed.
While I can't speak to the exact reason it happened, I found a solution. Whatever the issue was, I discovered it was user specific and limited to my machine. Other users were able to access SSMS as normal on my machine as was I on theirs.
I happened to remember that the AppData folder exists and is just hidden, so I used an administrator account to copy that from a working user and rewrite the files in both of mine that were not used in some background process. This allowed me to once again access SSMS both as my regular user and with my elevated administrator account.
I had this same issue (it happened all of a sudden perhaps due to a windows update). I also tried all the other solutions listed above, but the only thing that worked for me was to uninstall and then reinstall version 7.9.1 like the original poster recommended.
In my case I only have 1 user on the computer, so the other user accounts being able to access was not applicable.

How to enable local (i.e. offline) help in SSMS 2016?

Let's have simple
SELECT 'a'
Whenever I press F1 on SELECT keyword, standalone installed SSMS 2016 launches web browser to display online help.
I want F1 to open local help for SELECT keyword.
What I have done so far:
Menu Help > Add or Remove Help Content, added books SQL Shared Language reference, Books Online, Developer Reference so help page for SELECT (Transact-SQL) is now available in help index.
Migrated help repository from C: to some more convenient place.
What else needs to be done?
Maybe checking option "I want to use local help" in help settings? But it is not present any more in SSMS 2016.
I also examined the Registry and was hunting for proper registry key(s) listening to SSMS using Process Monitor tool, but the SSMS did not seem to read anything resembling online/offline option at the moment of pressing F1.
If you think that the above steps to enable local help should be enough, consider upvoting subsequent bug report at the Microsoft.
SSMS 2016 help is broken. See these connect items, which you can vote for:
https://connect.microsoft.com/SQLServer/feedback/details/2826366/f1-help-in-ssms-2016-always-opens-online-content-ignores-local-help-library
and
https://connect.microsoft.com/SQLServer/feedback/details/2828609/ssms-2016-help-viewer-1-1-pops-up-help-docs-never-found
UPDATE:
the issue came fixed in SSMS 2016.4.1. From download page:
Fixed an issue where the F1 Help always opened online content. Users can now select whether they prefer online or offline help via the "Set Help Preference" in the Help menu.
Microsoft Connect item #2826366

Azure SQL Data Warehouse ''NoCount' Error

I just got approved for the Azure SQL Data Warehouse Preview, and just finished "provisioning" my new server and database. I followed a link to a 'Getting Started' page from Microsoft (Get started: Connect ...), and read that the two best (only?) ways of querying the database were through sqlcmd and Visual Studio 2013.
I ignored this advice first, and fired up SSMS, connected to the database, and then tried to open a new query window. I immediately received the following error: 'Unable to apply connection settings. The detailed error message is: 'NoCount' is not a recognized option.' After clicking OK, the query window did open up, but many T-SQL statements did not work such as a simple:
CREATE TABLE dbo.tblTest (acct_id nvarchar(255) NOT NULL)
I would receive a 'Command(s) completed successfully.' message, however no table was created.
Ok, I fired up Visual Studio 2013, connect to my Azure SQL Data Warehouse, and open it up in SQL Server Object Explorer. I right-clicked the specific database, and selected 'New Query', enter the same T-SQL CREATE TABLE statement as above, then hit execute. Once I hit execute, I get the exact same error message as above. This time around I was able to open a new query window at least, but after attempting to execute the query I still get the 'NoCount' is not a recognized option error.
I'm completely new to data warehouses, and still very much a beginner with T-SQL and SQL Server as well. But, I haven't been able to find anything that would explain why I'm receiving these errors, and right now I'm basically at a standstill until I can understand what's going on. Any help is appreciated, thanks.
I've experienced this. Your connection isn't actually recognised as a SQL DW connection. I bet your query window is a .sql file, not a .dsql as it needs to be.
Go back into the Azure portal and use the link to connect using SSDT from there. You should get a connection in the SQL Server Explorer pane which looks different, and when you start a New Query based on it, you should get a .dsql window, not a .sql one.
Have you checked the version of SSDT that you are using? It sounds like you may be on a version prior to 12.0.50623, which doesn't take into account that SET NO COUNT is not supported by SQL Data Warehouse at the moment. Newer versions of SSDT have adjusted for this. We recommend updating SSDT here and then connecting using the SQL Server Object Explorer with the directions in our documentation.
I am running Visual Studio 2015 Enterprise, and what I had to do to get this error resolved was install SSDT October 2015 Preview in Visual Studio. The link I used is: https://msdn.microsoft.com/en-us/library/mt204009.aspx
Prior to installing this, I had the latest released version for VS2015...had to install the Preview to get it to work. Also, it solved the issue where I was not able to see ANY of the tables in the Azure Data Warehouse database - just a couple of views, which made querying difficult (could still get a list of available tables from sys.tables)
I hope this helps somebody!

sql server 2014 management studio not supporting windows 8?

im tring to insatll sql server 2014 management studio in windows 8 . but it shows error message that system does not support . How will i install it in my windows 8 or should i go for any other version of sql??
You must tell what edition of SSMS you are trying to install. As per Microsoft Hardware and Software requirement for SQL Server 2014 Enterprise and BI edition is not supported on Client OS(Windows 8) but it wont block the installation it will allow you to install. Have yu read the requiremnts ?
Can you please add error message and edition information in your question I would be able to help you better. I strongly suggest you to read How to use SQL Server on Windows 8
Edit:
Could not write value to /Softwre
Please add complete details about problem in Question. How do you suggest we can help you with little piece of information. Have a look at This Stackexchange thread and also at this support article
What you can do
1.Click Start, click Run, type control userpasswords, and then click OK.
2.Create a new computer administrator account.
3.Click Start, click Run, type regedit, and then click OK.
4.In Registry Editor, right-click HKEY_CURRENT_USER\Software, and then click Permissions.
5.Click Add, type Everyone, and then click OK.
6.Under Group or user names, click Everyone.
7.Under Permissions, click to select Full Control in the Allow column, and then click OK.
8.Locate the following subkeys:
HKEY_LOCAL_MACHINE\Software
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Setup
9.Unregister and then reregister the Microsoft Windows Installer service. To do this, follow these steps:a.Click Start, click Run, type msiexec /unregister, and then click OK.
b.Click Start, click Run, type msiexec /regserver, and then click OK.
This can also be caused if any malware or addon is running on your system which can block access to the registry. Please clean your system and make sure any unwanted software is removed. If possible format the OS and try installing again

Visual Studio 2012 Server Explorer DefaultView view error?

Can anyone tell me what the $#%& this is? I'm assuming its a local only issue since I can't find anything on the net pertaining to it in particular.
I've even gone through and deleted all the Data Connections in the Server Explorer and I still keep getting this dialogue over and over. It's a fresh install of VS 2012, any insight appreciated.
So basically we had some folder redirection sync issues backing up appdata and basically had to take off the permissions and kill the profile before signing back in.
In other words if you happen to run into this in my scenario of config'ing a new machine while still trying to work on the original and you're logging in as the same user and your appdata is syncing, your paths may not match. Problem solved, but took some figuring to realize the issue.
In my case, I had an icon on top right corner in VS prompting that authentication expired. I had to re-enter authentication to a Microsoft account in my case a Hotmail account.

Resources