Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Access to the remote server is denied because no login-mapping exists - SQL Server Error

AddThis Social Bookmark Button
Recently when I was working with security and changed some level of access and permission of some logins\users, I received an error while accessing data through linked servers with some logins which was working earlier. Error is reported as below. Msg 7416, Level 16, State 2, Line 1 Access to the remote server is denied because no login-mapping exists. After finding solution following, it worked. Here is a some change of linked server and below is a script to used for same. Just adding a logins to linked server which has
an issue to access it. Use master GO EXEC master.dbo.sp_addlinkedserver @server = N'LinkedServerName', @provider=N'SQLNCLI', @srvproduct = 'MS SQL Server', @provstr=N'SERVER=ServerName\InstanceName;User' EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'LinkedServerName', @locallogin = NULL , @useself = N'False', @rmtuser = N'myUser', @rmtpassword = N'*****' GO Here is the just script and change your user name in place of ‘myuser’ and appropriate server\instance name. Please share your comments if you received such errors and workaround for same. ...(Read whole news on source site)

Xamarin MVP

AddThis Social Bookmark Button
What can I say, I’m truly grateful and proud…   Keeping good company   Special thanks to Lino Tadros and Falafel Software for paying me to have way too much fun with Xamarin. For the complete article and hyperlinks, please visit my blog at

The Beauty (And The Beast) Of Code Generators

AddThis Social Bookmark Button
Lately, I’ve spent a lot of time using Yeoman for generating AngularJS and MEAN applications. I’ve had a love/hate relationship with code generators for a long time, but have never really been able to articulate exactly why, so I thought I’d take a minute to write it out. The Benefits The benefits are easy to explain. They ...

Entity Framework Pitfalls: Mapping Discriminator Columns

AddThis Social Bookmark Button
When you use a discriminator column, that is, a column that holds a value that tells Entity Framework what type the row refers to, or what restriction it shall use when querying the entity, you cannot map this column as a property in your entity.For example, imagine you want to use “soft deletes”, that is, use a database column to represent the “deleted” state of a record instead of actually physically deleting it from the table; you might have an IS_DELETED column of some integer type, that would hold either a 1 or a 0, depending on whether
the record is deleted (1) or not (0). In that case, you would build a mapping like this in OnModelCreating:

Keeping popups above the bottom app bar in Windows 8.1 store apps

AddThis Social Bookmark Button
Recently, I wrote about the KeepFromBottomBehavior that helped me to deal with popups that appeared on the bottom of the screen, but were covered by the app bar when using the full screen by applying ApplicationViewBoundsMode.UseCoreWindow. When I started porting parts of Travalyzer to Windows 8.1 as a companion app, I kind of ran into the same problem: popup appearing ‘under’ the bottom app bar. (This time I replaced the map by a simple blue area, to prevent you from needing to install the Bing Maps SDK to run the sample). So
I kind-of ported my KeepFromBottomBehavior to Windows 8.1, and got the following result. Which is exactly what I wanted. If the App bar is open, the popup up appears above the App bar, if it is closed, it appears on the very bottom of the screen: The code is actually a lot simpler than the KeepFromBottomBehavior for Windows Phone 8.1, using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace WpWinNl.Behaviors { public class KeepFromBottomBehavior : SafeBehavior { private double originalBottomMargin; private AppBar bottomAppBar; protected override void OnSetup() { ...(Read whole news on source site)

Hiring for VS Online and Team Foundation Server

AddThis Social Bookmark Button
Microsoft has an extensive recruiting effort.  But we recently decided to try something new to try to find more people who might want to help build VS Online and Team Foundation Server.  We added a Jobs page to  It has a little info on what we do and links to job postings on the Microsoft careers site and some information about who we are.  We've got quite a few positions open right now and are hoping to fill them as quickly as we can. This is a bit of an experiment.  If it works well, we will probably expand it
to include other parts of Visual Studio. Brian  
...(Read whole news on source site)

C# Program to swap two numbers without using temporary variable

AddThis Social Bookmark Button
Introduction This program in C# developed using .NET Framework and Visual Studio  will demonstrate how to swap numbers without using temporary variable. C# Program to swap two numbers without using temporary variable using System; namespace GinktageConsoleApp { internal class Program { private static void Main(string[] args) { int Input1, Input2; Console.Write("Input the First Number "); [...]...(Read whole news on source site)