<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7673837</id><updated>2025-01-02T06:58:26.693+00:00</updated><category term="TSQL"/><category term="SQL Server"/><category term="SQL Server 2008"/><category term="VS.net"/><category term="C#"/><category term="LINQ"/><category term="WCF"/><category term="Asp.Net"/><category term="Asp.Net MVC"/><category term="SQL Server 2012"/><category term=".Net 3.0"/><category term="Asp.Net 2.0"/><category term="SQL Server 2014"/><category term=".Net 4.0"/><category term="Asp.Net 4.0"/><category term="KnockoutJS"/><category term="Flash"/><category term="HTML"/><category term="SSDT"/><category term="SSIS"/><category term="Serialization"/><category term="Testing"/><category term="jQuery"/><category term="ADO.Net"/><category term="Analysis Services"/><category term="Android"/><category term="Entity Framework"/><category term="Extreme Programming"/><category term="Hexadecimal"/><category term="IE"/><category term="JavaScript"/><category term="Json"/><category term="MSMQ"/><category term="Message Queue"/><category term="ORCAS"/><category term="Parallel Programming"/><category term="Receipts"/><category term="Refactoring"/><category term="SSAS"/><category term="Storage"/><category term="TDD"/><category term="TFS"/><category term="Visual Studio 2013"/><category term="Visual Studio 2015"/><category term="Visual Studio 2017"/><category term="Web Development"/><category term="XML Serialization"/><category term="iis 7"/><title type='text'>eXtreme Programming</title><subtitle type='html'>XP for the programmer</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>129</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7673837.post-4070663698034123072</id><published>2018-05-10T15:38:00.000+01:00</published><updated>2018-05-10T15:39:59.760+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>T-SQL Error: An aggregate may not appear in the set list of an update statement</title><summary type="text">A reporting project contains a table with the product summary, the table has a lot of KPIs and specifically the &quot;Last Sale Date&quot; of a product.
According to the company rules, a product is sold when it is paid.
The following T-SQL code (shown here very simplified) can be used to update that column:
UPDATE Product
SET LastSalesDate = MAX(Orders.PaymentDate)
FROM Product
    INNER JOIN Orders ON (</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/4070663698034123072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/4070663698034123072?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4070663698034123072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4070663698034123072'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2018/05/t-sql-error-aggregate-may-not-appear-in.html' title='T-SQL Error: An aggregate may not appear in the set list of an update statement'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-4021910713328844103</id><published>2018-04-27T14:39:00.000+01:00</published><updated>2018-04-27T15:25:57.914+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>How to start SQL Agent job from Another server</title><summary type="text">A common scenario, when managing a server farm, is to have to sync the SQL Agent jobs in several servers.


You may want to start a job on a second server (SQL02) when a job completes on a primary server (SQL01).

The SQL02 may be a reporting or staging sever, and the SQL01 may be the transnational server.

Sql Server has a T-SQL statement -&amp;nbsp;sp_start_job -&amp;nbsp;to start a job on the server </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/4021910713328844103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/4021910713328844103?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4021910713328844103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4021910713328844103'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2018/04/how-to-start-sql-agent-job-from-another.html' title='How to start SQL Agent job from Another server'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY_2f58gCt5izoX-SF2OTMNlyadxZk7exSeGH8GnV8L2BKEwQDAjDjViHh0b0q-AFkvbsmtWZd0-5hgEcMadmPpcA4W3QQyNVBLHBAjHzESaF9pCwsNs2GRKn-t0MzJ9WpPBsYBw/s72-c/SSMS_Add_Liked_Server.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-8674341204942166548</id><published>2018-01-05T12:08:00.000+00:00</published><updated>2018-01-05T12:10:21.380+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2017"/><title type='text'>High CPU usage in Visual Studio 2017</title><summary type="text">Visual studio 2017 has a High CPU usage after using it for some time.

The issue is very annoying, since the work computer starts to get very slow and unresponsive.

I fixed my problem by performing the following steps:


Close all the visual studio open instances
Delete all the .suo files from the visual studio solutions folders
Remove all the .vs hidden directories from the visual studio </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/8674341204942166548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/8674341204942166548?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/8674341204942166548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/8674341204942166548'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2018/01/high-cpu-usage-in-visual-studio-2017.html' title='High CPU usage in Visual Studio 2017'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-8705040505037112483</id><published>2017-06-19T15:13:00.001+01:00</published><updated>2017-06-19T15:17:07.127+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>T-SQL: How to raise an error on a user defined function (udf)</title><summary type="text">A common programming task is to create a user-defined function.
The function can perform some tasks and raise an error if some validation fails.

Let us try to raise an error


CREATE FUNCTION dbo.Division(@op1 INT, @op2 INT)
RETURNS INT
AS
BEGIN
    IF (@op2 = 0)
    BEGIN
    RAISERROR (&#39;Division by zero.&#39;, 16, 1);
    END

    RETURN CAST(@op1 AS DECIMAL(18, 8)) /@op2
END



But this approach </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/8705040505037112483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/8705040505037112483?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/8705040505037112483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/8705040505037112483'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2017/06/t-sql-how-to-raise-error-on-function.html' title='T-SQL: How to raise an error on a user defined function (udf)'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-6506131339307943338</id><published>2017-02-20T13:26:00.000+00:00</published><updated>2017-02-20T13:41:11.448+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>How to backup all the user databases</title><summary type="text">The database administrator must backup periodically the databases on the Sql Servers.

The process is tedious and must be automated with a script to avoid forgetting any database.


The simple script can be scheduled on the Sql Server agent.


DECLARE @backupName VARCHAR(255) -- database backup name  
DECLARE @databaseName VARCHAR(255) -- database name  
DECLARE @path VARCHAR(256) -- Folder for </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/6506131339307943338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/6506131339307943338?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/6506131339307943338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/6506131339307943338'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2017/02/how-to-backup-all-user-databases.html' title='How to backup all the user databases'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-6677066381999020866</id><published>2016-06-02T10:47:00.002+01:00</published><updated>2016-06-03T07:33:08.187+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How to convert a string to a byte array in C#</title><summary type="text">C# allow to easily convert a string to a byte array using the Encoding.ASCII.GetBytes function.

A sample usage is


string sample = &quot;This is a simple string&quot;;
byte[] content = Encoding.ASCII.GetBytes(sample);


Note that this method only works if the string is with the ASCII format.

The framework supports other encodings (UTF8, Unicode, UTF32, ...) but a more generic method is needed.

The </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/6677066381999020866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/6677066381999020866?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/6677066381999020866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/6677066381999020866'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2016/06/how-to-conver-string-to-byte-array-in-c.html' title='How to convert a string to a byte array in C#'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-7266056654709149562</id><published>2016-06-01T14:23:00.001+01:00</published><updated>2016-06-01T14:23:56.995+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2014"/><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>T-SQL: How to split a path name in the path and file name</title><summary type="text">A common task in T-SQL is how to split a path name in the path and file name.

The following code will do the task:


DECLARE @file VARCHAR(200) = &#39;c:\temp\data\log.txt&#39;

SELECT REVERSE(LEFT(REVERSE(@file), CHARINDEX(&#39;\&#39;, REVERSE(@file), 1) - 1)) AS [FileName]

SELECT LEFT(@file, LEN(@file) - CHARINDEX(&#39;\&#39;, REVERSE(@file), 1) + 1) AS [Path]

</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/7266056654709149562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/7266056654709149562?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7266056654709149562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7266056654709149562'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2016/06/t-sql-how-to-split-path-name-in-path.html' title='T-SQL: How to split a path name in the path and file name'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-4179096399976004412</id><published>2016-04-07T18:12:00.001+01:00</published><updated>2016-04-07T18:12:44.745+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>Error when creating a Database diagram: Database owner is invalid</title><summary type="text">After restoring a database, I got an error when creating a Database diagram. Like the following image:



The error informs that the database owner is invalid.

The solution is to change to database owner using the sp_changedbowner.

To change the database owner for the sa user:


EXEC sp_changedbowner &#39;sa&#39;
</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/4179096399976004412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/4179096399976004412?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4179096399976004412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4179096399976004412'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2016/04/error-when-creating-database-diagram.html' title='Error when creating a Database diagram: Database owner is invalid'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc5oonbv8I4slfyfyY_zATZifsS7KLvwDAPyBteuDQlaW22BH34jxUhu4T6H0BsI4MnVhaHilz9ak_DXOHbSdihf_E2UWQNsrgtttvhIU7ZxgUPZN6Vqv3DuVWht6slkdt4u5Xtw/s72-c/DatabaseDiagramInvalidDBOwner.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-3010386301430996223</id><published>2016-04-04T14:22:00.001+01:00</published><updated>2016-04-04T14:25:35.791+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>The mistery of the slow stored procedure in the web App and fast in SSMS</title><summary type="text">Sql Server has a lot of mysteries and hidden &quot;features&quot;.

In the troubleshooting of a web application page response time, I got a timeout executing a Stored Procedure. The query took more than 30 seconds executing on the SQL Server profiler.


I captured the query and executed it in SQL Server Management Studio (SSMS), to start analyzing the query execution plan.

For my surprise it was </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/3010386301430996223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/3010386301430996223?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/3010386301430996223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/3010386301430996223'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2016/04/the-mistery-of-slow-stored-procedure-in.html' title='The mistery of the slow stored procedure in the web App and fast in SSMS'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI5OZdM2CBs2cnmbG-8RcuQOuuJpfqXZNOa7cTDL1bAy3CnLWMGgMFrIqSTK_SZWk-5yz8pH_sL_xJD8JD-gwHfVl19sIKkt8s9aXooH8zSy8G_RwtAmqZbyxWOq1odVvpXYuHJg/s72-c/SSMS+ARITHABORT.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-7802275352259642585</id><published>2016-02-26T15:10:00.004+00:00</published><updated>2016-02-26T15:20:22.606+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2014"/><category scheme="http://www.blogger.com/atom/ns#" term="TSQL"/><title type='text'>T-SQL: Converting rows to columns</title><summary type="text">A common task of a database developer is to convert rows to columns from a query result set.

T-SQL has the PIVOT that facilitates the process.

A simple example:

DECLARE @myValues TABLE (Quantity INT, Category VARCHAR(100))

INSERT INTO @myValues (Quantity, Category)
VALUES 
 (10, &#39;Fruits&#39;),
 (200, &#39;Vegetables&#39;),
 (40, &#39;Meats&#39;)


SELECT *
FROM @myValues

SELECT [Fruits], [Vegetables], [Meats]
</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/7802275352259642585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/7802275352259642585?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7802275352259642585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7802275352259642585'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2016/02/t-sql-converting-rows-to-columns.html' title='T-SQL: Converting rows to columns'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-6929824755430329796</id><published>2015-11-17T13:08:00.002+00:00</published><updated>2015-11-17T14:12:11.382+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2015"/><title type='text'>How to fix visual studio 2015 error &quot;The package did not load correctly&quot;</title><summary type="text">When a visual studio extension is installed, a error can occur that gives the following error:

The &#39;zebre&#39; package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file &#39;C:\Users\[user name]\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml&#39;.

Restarting Visual </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/6929824755430329796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/6929824755430329796?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/6929824755430329796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/6929824755430329796'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2015/11/how-to-fix-visual-studio-2015-error.html' title='How to fix visual studio 2015 error &quot;The package did not load correctly&quot;'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-7324774017782746695</id><published>2015-10-02T17:18:00.001+01:00</published><updated>2015-10-02T17:26:51.778+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Dapper: Powerful micro object mapper for .Net</title><summary type="text">Introduction
Dapper.Net or Dapper is a simple and powerful micro object mapper for .Net, that eases the development of a Data Access Layer (DAL).

Dapper is in production used by Stack Overflow, helpdesk and other companies.

Performance is the major focus in Dapper. It is very fast and the execution time is near equal to a hand coded DAL using the 
SqlDataReader.

Dapper uses the POCO (Plain Old</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/7324774017782746695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/7324774017782746695?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7324774017782746695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7324774017782746695'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2015/10/dapper-powerful-micro-object-mapper-for.html' title='Dapper: Powerful micro object mapper for .Net'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxjINYKWWNLnmV2TuvUQVVRBN0KBSiXTgH7Uc4trQrdXl-ikBHcATtQZ7SoG_U3_StUPG14jsQ9xw4DcIHiTjhSv3Gn92JaN8B8WJhkSQzlIu8avsWkwJbV2KPhM6GsbVnm9cTHA/s72-c/dapper.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-7276195030771148968</id><published>2015-05-12T11:16:00.001+01:00</published><updated>2017-01-05T18:09:46.395+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Testing"/><title type='text'>Time testing: How to prevent time syncing</title><summary type="text">A common task when performing tests on data sets that vary over time is to advance the windows time.

The server or the workstation can however be part of a domain and the time is synced with it.

In this situation after the date/time is changed for the tests, the sync process will update them to the Domain Controllers value.

This will reset the date/time and the test environment is lost.


A </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/7276195030771148968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/7276195030771148968?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7276195030771148968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/7276195030771148968'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2015/05/time-testing-how-to-prevent-time-syncing.html' title='Time testing: How to prevent time syncing'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUJIAgZAIL27uLybrqwxC3HwY9o_9Ujk4dusWB_KfWHSMQXKBrvw-EKyzrrsuOOM2sX-esPXH2BP3sOw6ZBMoqohcySMa9NvS0wT0YUohJ6qgkmxzQWmj6lvrP1IhAr_Gc4VLGtw/s72-c/RegeditTime.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-1569532238691417292</id><published>2015-03-03T10:39:00.000+00:00</published><updated>2015-03-03T10:43:19.151+00:00</updated><title type='text'>Fix: Property PopulationStatus is not available for FullTextCatalog</title><summary type="text">After restoring a database with full text search active, on Sql Server 2014, on a staging server I got the following error when opening the Full Text Catalog:

Property PopulationStatus is not available for FullTextCatalog &#39;[SearchDB]&#39;. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)

The error is not self </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/1569532238691417292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/1569532238691417292?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1569532238691417292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1569532238691417292'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2015/03/fix-property-populationstatus-is-not.html' title='Fix: Property PopulationStatus is not available for FullTextCatalog'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-24825489326708076</id><published>2014-11-28T11:07:00.001+00:00</published><updated>2014-11-28T14:18:33.861+00:00</updated><title type='text'>Management Studio: The type initializer for ‘PropertyMetadataProvider’ threw an exception </title><summary type="text">Sql Server Management Studio, gave me the following error after I rebooted my computer:

The type initializer for ‘PropertyMetadataProvider’ threw an exception 





I installed the windows updates and started relating the problem to the updates.


After some research I found a interesting artice in Sql Blog about the problem that states that the DLL versions of the cumulative update 4 for SQL </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/24825489326708076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/24825489326708076?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/24825489326708076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/24825489326708076'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/11/management-studio-type-initializer-for.html' title='Management Studio: The type initializer for ‘PropertyMetadataProvider’ threw an exception '/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDJRxHu_HKwNDQhCJX2aZeqQK6MF3MkthFTW7T20bA6K8n_ylDoM69L7yJd-rkKqqRBhFFsJ1rR7YhIaNHKET88Wa5BNubRyAnvxWBGFLNWEQ2VeWZHL8kd5oHKiffEBd5YI6ipQ/s72-c/sql_cu_up4_ssms_error.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-1390640789863388181</id><published>2014-07-08T16:26:00.006+01:00</published><updated>2014-07-08T16:26:51.884+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2014"/><title type='text'>SQL Server Table Value Constructor</title><summary type="text">The latest versions of Sql Server (SQL Server 2008 or above) implement the Table Value Constructor. 

Definition
The Table Value Constructor defines a set of row value expressions to be added to a table.
It allows us to create tables of values and/or expressions.
The Table Value Constructor allows us to  simplify the T-SQL syntax.

Syntax
The Table Value Constructor is defined as:


VALUES (&amp;lt;</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/1390640789863388181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/1390640789863388181?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1390640789863388181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1390640789863388181'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/07/sql-server-table-value-constructor.html' title='SQL Server Table Value Constructor'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-500394983100909337</id><published>2014-07-01T10:21:00.001+01:00</published><updated>2014-07-01T10:27:47.052+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Analysis Services"/><category scheme="http://www.blogger.com/atom/ns#" term="SSAS"/><title type='text'>SSAS: OLAP PivotTable Extensions</title><summary type="text">Excel Pivot tables are a reporting tool that makes it easy to extract information from data sets without the use of formulas.

Excel Pivot tables are great for browsing Analysis Services cubes, since they allow to easily move, pivot and analyze data using drag and drop to see the same data in a number of different ways

OLAP PivotTable Extensions add advanced features to the pivot tables.

OLAP </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/500394983100909337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/500394983100909337?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/500394983100909337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/500394983100909337'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/07/ssas-olap-pivottable-extensions.html' title='SSAS: OLAP PivotTable Extensions'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUeU0YqpbTdgba7fYf22NmOb_X2k6zAlG6kxDgSh74D2KHThY3Syq5Y19cY_VUEZkaWWGRMA4ITEcSXQLm1z22jYgNKw1VYqKddj0A4mzs7XHovaD_dFIk9quOqMdxfd8lOcSaqg/s72-c/AvgTaxFormula.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-8595564563986208882</id><published>2014-06-30T16:07:00.000+01:00</published><updated>2014-06-30T16:08:20.853+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2013"/><title type='text'>Turn off Visual Studio 2013 Preview of files</title><summary type="text">Visual studio 2013 previews the file content when it is selected.
The feature can be very annoying and luckily it can be disabled. 

To disable the feature, in the visual studio menu, select Tools -&amp;gt; Options -&amp;gt; Environment -&amp;gt; Tabs





Uncheck all the Preview tab checkboxes.

</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/8595564563986208882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/8595564563986208882?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/8595564563986208882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/8595564563986208882'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/06/turn-off-visual-studio-2013-preview-of.html' title='Turn off Visual Studio 2013 Preview of files'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz0nKhCvyfmDHR0Pfazh86WzKiPW5fjMPuGS_JCEViou2scBT3bqcim3uWq_md0PooVh1aTMkqKJIp43v1mkv7SB2i3Eiu8HZECjzD4G6Lo97ElxUzVZ2XP_Yd-cSZkezmDNy4zA/s72-c/vs+2013+preview+tab+env.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-1406800334107200631</id><published>2014-06-06T11:43:00.001+01:00</published><updated>2014-06-06T11:43:47.160+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SSDT"/><title type='text'>Fix SSDT error&quot; Could not load type Microsoft.SqlServer.TransactSql.ScriptDom.OnOffStatisticsOption&quot;</title><summary type="text">The SQL Server Data Tools for SQL Server 2014 (SSDT) are now available for Visual Studio 2012 and 2013.

The SQL Server Data Tools - Business Intelligence for Visual Studio 2013 (SSDT-BI) are also available.

I installed both and after a while the schema compare started failing with the error:


Error 6 Could not load type &#39;Microsoft.SqlServer.TransactSql.ScriptDom.OnOffStatisticsOption&#39; from </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/1406800334107200631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/1406800334107200631?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1406800334107200631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1406800334107200631'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/06/fix-ssdt-error-could-not-load-type.html' title='Fix SSDT error&quot; Could not load type Microsoft.SqlServer.TransactSql.ScriptDom.OnOffStatisticsOption&quot;'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvKQ0aE_esDIXxQWQYlHSqcZWh9ooJ81MDYFEfkU1Z6jS1C7jFLct3bSA31S9wEMNDtji1DmqADMCOM5x1vG7hHtqj0EPOugwXH_79PzFz9W_TB7UOJHjkTiL9O-jb4VTpvr69QA/s72-c/SSDT+2013+PAF.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-4954817275704377660</id><published>2014-06-02T17:01:00.002+01:00</published><updated>2014-06-02T17:05:37.829+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Undocumented  sp_MSforeachdb:  Iterate through each database</title><summary type="text">The stored procedure sp_MSforeachdb is used to iterate through each database that exists in SQL Server, including the system databases.

The stored procedure is undocumented and can be removed at any time, so use it carefully.

It is used to run a command over a set of databases in a server.

The stored procedure receives a parameter with the command to execute. The ? is used as a placeholder to </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/4954817275704377660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/4954817275704377660?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4954817275704377660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4954817275704377660'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/06/undocumented-spmsforeachdb-iterate.html' title='Undocumented  sp_MSforeachdb:  Iterate through each database'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-4554257928471509553</id><published>2014-05-27T17:23:00.001+01:00</published><updated>2014-05-27T17:23:37.104+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><title type='text'>Entity Frameword 6 Error: Unable to update the EntitySet &#39;X&#39; because it has a DefiningQuery and no  element exists in the  element to support the current operation.</title><summary type="text">I was inserting an object in entity framework 6 using the usual code: 

context.X.Add(x);
context.SaveChanges();

The entity framework returned the error:

Unable to update the EntitySet &#39;X&#39;because it has a DefiningQuery and no  element exists in the  element to support the current operation.


The solution to fix this error was to create a primary key in the table and update the entity model.</summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/4554257928471509553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/4554257928471509553?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4554257928471509553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/4554257928471509553'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/05/entity-frameword-6-error-unable-to.html' title='Entity Frameword 6 Error: Unable to update the EntitySet &#39;X&#39; because it has a DefiningQuery and no &lt;InsertFunction&gt; element exists in the &lt;ModificationFunctionMapping&gt; element to support the current operation.'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-2356463378953506864</id><published>2014-05-19T09:32:00.002+01:00</published><updated>2014-10-28T15:45:18.172+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2014"/><title type='text'>Poor Mans T-SQL formatter</title><summary type="text">A database developer must have a set of SQL coding Standards to avoid each statement being written differently.

Steven Bates has witten the SQL Server 2005 coding Standards in a series of blog posts at the MSDN blogs.

The rules are implemented by a SQL Server Management Studio add-in that is named Poor Mans T-SQL formatter.
The Poor Mans T-SQL formatter is a open-source T-SQL formatter that is </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/2356463378953506864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/2356463378953506864?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/2356463378953506864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/2356463378953506864'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/05/poor-mans-t-sql-formatter.html' title='Poor Mans T-SQL formatter'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-905437613912993799</id><published>2014-02-06T15:47:00.000+00:00</published><updated>2014-06-12T12:03:03.702+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VS.net"/><title type='text'>Visual Studio 2013 connection to TFS very slow</title><summary type="text">Visual Studio 2013 connects to Team Foundation Server (TFS) with the TFS client.
In some situations, out of our control, the connection to TFS is verty slow. The source control operations take ages to complete.


The problem appears to be network related, since at the same time one computer is very slow executing a source control operation and the others are working at a normal pace.


The TFS </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/905437613912993799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/905437613912993799?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/905437613912993799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/905437613912993799'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/02/visual-studio-2013-connection-to-tfs.html' title='Visual Studio 2013 connection to TFS very slow'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-1828681740278872248</id><published>2014-02-03T18:06:00.000+00:00</published><updated>2014-02-16T00:50:04.768+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Faster Android emulator on Intel Architecture</title><summary type="text">The Eclipse is the main stable development environment for Android.
The performance of the Android emulator is really bad, but Intel has a solution for computers on a Intel Architecture.

The recent computers with an Intel processor have the Intel Virtualization Technology enabled, that allows the acceleration of the the Android Emulator.
In win Windows and Apple Mac OS there is the Intel </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/1828681740278872248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/1828681740278872248?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1828681740278872248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/1828681740278872248'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2014/02/faster-android-emulator-on-intel.html' title='Faster Android emulator on Intel Architecture'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-tkEI87fkxFE/UuwfPCxl8ZI/AAAAAAAAEZ4/4ZuFXLCSq1w/s72-c/sdk+manager+haxm.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7673837.post-231245589793667951</id><published>2013-07-18T10:49:00.001+01:00</published><updated>2013-07-18T10:57:10.225+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>WCF and the Try-Catch-Abort Pattern</title><summary type="text">Proxy Classes are used to talk to Windows Communication Foundation (WCF) Services.
A communication channel is open to the WCF Service that must be closed after the calls to the service.
The proper way to close the communication channel is very important.

The WCF proxy is usually generated using Visual Studio or the svcutil tool.
The generated proxy inherits from a base class </summary><link rel='replies' type='application/atom+xml' href='http://xprog.blogspot.com/feeds/231245589793667951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7673837/231245589793667951?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/231245589793667951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7673837/posts/default/231245589793667951'/><link rel='alternate' type='text/html' href='http://xprog.blogspot.com/2013/07/wcf-and-try-catch-abort-pattern.html' title='WCF and the Try-Catch-Abort Pattern'/><author><name>Rui</name><uri>http://www.blogger.com/profile/08292557643507451155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>