SSMS display issues

Recently I installed SQL Server Management Studio (SSMS) in a brand new laptop with a NVIDIA card.

Soon both myself and a colleague experienced some screen redraw issues.  Colors, toolbar buttons missing, nearly impossible to work with.

After installing and uninstalling several NVIDIA drivers, disabling 3d physics, changing compatibility modes for the SSMS.exe application and pulling whatever hair I have out trying to figure out a way to work with it, I found the solution for me…  maybe for you as well.

Options 2018-02-07 20.39.03 2018-02-07 20.50.03

Since then… no more funny colors or artifacts anywhere…

 

 

Visual Studio Quirks… Once a file filter always a file filter…

Thanks to Gui for this awesome fix…  Once you filter for file types in the global search.

To remove this annoying file type filter in visual studio, go to the registry editor

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\Find

And modify the Filter key to be an empty string.

Slow performance on VMs hosted in Hyper V

Very disappointed after purchasing a fairly powerfull DELL server to find out that any network access to them (TCP/etc) was very very slow!!!!

Well I luckily found this blog article http://www.scotiasystems.com/blog/it-hints-and-tips/slow-network-performance-on-new-hyper-v-server/

And there finding that I was also using Broadcom NetXtreme Gigabit network cards, I simply switched this setting.

virtual-machine-queues_thumb

and BAAM!  Incredible difference!

SSMS Could not load file or assembly msmgdsrv, Version=9.0.0.0

Hi everyone,

Today I an into an error using SSMS while clicking on the button check for an MDX query, the error message was:
Could not load file or assembly ‘msmgdsrv, Version=9.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91’ or one of its dependencies. The system cannot find the file specified. (MDXQueryGenerator)

After some investigations I found out that the path for the dll needs to be changed. To change the path open the file “%ProgramFiles%Microsoft SQL Server100ToolsBinnVSShellCommon7IDESsms.exe.config” with a text editor and find the line . Change the attribute of href to the actual dll, on my system it was C:Program FilesMicrosoft Analysis ServicesAS OLEDB10msmgdsrv.dll. Restart SSMS and then it works.

I hope this helps

Florian

Source: Microsoft.com

Windows Server slow copy after installing NLB service

Hi everyone,

After installing the Microsoft load balancing service (NLB) between two servers we experienced a very slow copy rate when copying files/folder.
The problem was that the cluster were configured as Unicast, changing the setting to Multicast fixed the issue.

To change the setting connect to your cluster using the Network Load Balancing Manager tool then right click on the node cluster and select Cluster Properties.
Navigate to the Cluster Parameters tab and switch the parameter to Multicast.

NLB unicast multicast

More information about Unicast vs Multicast available here.
Hope this help.

Florian

404 error on Chrome when getting jquery minified map

With a recent upgrade of Chrome we have been seeing the following happening each time we open the console:

GET https://ajax.aspnetcdn.com/ajax/jQuery/jquery.min.map 404 (Not Found)

 

As it turns out, Chrome is trying to get the debug map for the minified version of jQuery automatically if the following setting is enabled:

Capture

 

If you do not want to see these in your console just disable this option et voila….

 

Routing traffic through VPN or local connection…

At ClicData we are not necessarily network experts , that is why we have partners that know more about it than we do.  But we dive into it sometimes as we may need to know some topics more in depth than others either because “we just have to know” or because we need to get work done faster!

We use VPN the same many other companies do, mainly for security purposes and one thing about VPN is that when you are connected, your connection is routed either through the “office” VPN server or directly to the internet from your computer and home/hotel gateway or router.

VPN routing - which way to go?
VPN routing – which way to go?

Sometimes it is best to leave the default network settings as to decide which way is best but other times you may want to control it due to security issues or mechanisms set in place that only allow you to access a specific area if it looks like you are coming from the office.

How do you know which way traffic is going?  The easiest way is to go to google.com and type “what is my ip” and the first search result is your ip address as it is seen from the rest of the world.  If the IP address is from your office gateway or from your home gateway that is an indication of where regular http traffic is going.

To force a specific destination to go one way or another all you have to do is to get a command prompt (Windows) in “run as administrator” and type “route add {the destination ip address} {the home or office gateway depending on your need} and then IF ##”

The ## is a number that you need to identify before the above command by typing a command “route print”.  The results of the route print command will list at the top all the interfaces you have setup.  You need to look for your VPN interface and lookup the number beside it as shown below:

Route print results
Route print results

So in our case the number is 56 and the full command would then be route add 9.9.9.9 1.2.3.4  IF 56 if the gateway was 1.2.3.4 and the ip address I wanted to get to was 9.9.9.9.

But what if I want all my traffic to go through the VPN when I am connected to the VPN?

Well then, right click on the VPN connection properties and make sure the checkbox beside “Use default gateway on remote network” is checked.

Route all traffice via VPN default gateway
Route all traffice via VPN default gateway

Hope this helps someone…

Fiddle me this! Add a header to all requests regardless of calling application…

At ClicData we love Fiddler… For those that don’t know Fiddler is a windows application that allows you to see what’s going on between your browser and the server.  Think of it as the app that keeps an eye on everything that your computer sends and receives to the internet.

Fiddler is one of the few tools that does this  job very well and when debugging web services, web sites, security issues, and all types of http and https communication, it offers tremendous power and flexibility.

Nicolas already blogged about ways to debug WCF Services with it in this blog.  Today I would like to let you know about one feature that is quite cool.

When using secured web services like we do at ClicData sometimes we need to send “hidden” tokens in the header.  So testing the web service using a browser becomes quite difficult since we typically get Access Denied (401) or a validation error.

So with Fliddler you can just access Composer and type your URL and using GET/POST, etc… build your header:

2013-06-06 20-50-42

So for example, if we wanted to ensure that the web service returned JSON data as opposed to the default (in our case XML) we could add this “accept: application/json” to the Request Headers text area.

However, my issue was that I wanted to use Microsoft Excel to connect directly to the web service.  As it turns out we are currently working on supporting OData so you can connect to your data directly with Excel but our security was not letting Excel connect to it.

So after consulting this entry in Fiddler’s web site it was fairly easy to modify Fiddler to automatically add a header regardless of the application that calls it.  In our case we wanted to add oSession.oRequest[“AuthorizationKey”] = “xxxxxxx-xxxxx-xxxxxxxxx-xxxxxx”; to each request.

2013-06-06 20-49-16

Access Fiddler’s Rules –> Customize Rules menu

2013-06-06 20-49-43Write a little script to add a header to each request before sending 

If you are using Windows Azure, a similar technique is used in this blog post to access storage data using Excel.

SSAS CellPermission error on Excel or SSMS

Hi

Today I ran into some issue while connecting to a SSAS cube using Excel, some of the measure where showing #Value! instead of the actual value.
After some investigation I found the message “#Error CellPermission (1, 1) The member ‘[CubeName]’ was not found in the cube when the string, [Measures].[MeasureName], was parsed.

When I browsed the cube using SSMS and the same user’s role I could see the message as well so I checked the security role and found the issue.

In your policy all Measure are accessible to this role so I edited the role (double click on it) then go to the “Cell Data” page

Role

Enable the read and the read-contingent permissions for the role and select the Measures (in this case all of the Measures)

Cube Role

I hope this helps.

Florian