<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>BizTalk Musings</title><link>http://blogs.msdn.com/b/biztalkmusings/</link><description>A blog to record Microsoft BizTalk related topics.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Collecting EventLogs with Powershell</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2012/12/04/collecting-eventlogs-with-powershell.aspx</link><pubDate>Tue, 04 Dec 2012 08:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10374362</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10374362</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2012/12/04/collecting-eventlogs-with-powershell.aspx#comments</comments><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I often have to go onsite and go through a customers' eventlogs looking for errors. While the eventvwr does provide for nice filtering it doesn't allow me to sort. I like to use Excel for sorting and making a nice table format. In order to do this however I need to be able to format the eventlogs output in a nice delimited format. Powershell provides the ability (ConvertTo-CSV &amp;amp; Export_CSV)&amp;nbsp;to pipe data out to a&amp;nbsp;CSV file however it 'keeps' the carriage returns and line feeds so that ultimately my delimited csv is a mess when I import it into Excel.&lt;/p&gt;
&lt;p&gt;I created the following Powershell script to help me collect&amp;nbsp;&lt;em&gt;x&lt;/em&gt; &lt;em&gt;number of days&lt;/em&gt; worth of data and have it exported nicely to delimited format.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;#&lt;/p&gt;
&lt;p&gt;Required data&lt;/p&gt;
&lt;p&gt;$logPath : which folder to write the collected data to, may also be in the format "\\fileshare"&lt;/p&gt;
&lt;p&gt;$computers : semi-colon delimited list of computers to retreive logs for&lt;/p&gt;
&lt;p&gt;$days : how many days worth of logs to collect&lt;/p&gt;
&lt;p&gt;#&amp;gt;&lt;/p&gt;
&lt;p&gt;$logPath = "C:\Temp" # "\\fileshare" &lt;br /&gt;$log = "Application;System" &lt;br /&gt;$computers = "CNTSQL" &lt;br /&gt;$days = 5 &lt;br /&gt; &lt;br /&gt;$date = get-date -format M.d.yyyy &lt;br /&gt;$now = get-date &lt;br /&gt;$subtractDays = New-Object System.TimeSpan $days,0,0,0,0 &lt;br /&gt;$then = $Now.Subtract($subtractDays) &lt;br /&gt;# Error,Information,FailureAudit,SuccessAudit,Warning &lt;br /&gt;[string] $logName = "" &lt;br /&gt;[string] $eventID = "" &lt;br /&gt;[string] $MachineName = "" &lt;br /&gt;[string] $entryTime = "" &lt;br /&gt;[string] $message = "" &lt;br /&gt;[string] $source = "" &lt;br /&gt;[string] $timeGenerated = "" &lt;br /&gt;[string] $fullentry = "" &lt;br /&gt; &lt;br /&gt;Function ExecutePerComputer &lt;br /&gt;{ param ([string] $computers) &lt;br /&gt; # a list of servers for the eventlog collection in semi-colon delimited list &lt;br /&gt; #$compArray &lt;br /&gt; $compArray = $computers.Split(";") &lt;br /&gt; [string] $c = "" &lt;br /&gt; foreach ($c in $compArray) &lt;br /&gt; { &lt;br /&gt; # call GetLog with the servername and the logs to get &lt;br /&gt; Write-Host $c &lt;br /&gt; GetLog $c $log &lt;br /&gt; } &lt;br /&gt;} &lt;br /&gt;Function GetLog &lt;br /&gt;{ param ([string] $server, [string] $logs) &lt;br /&gt; # a list of the logs to return &lt;br /&gt; #$logArray &lt;br /&gt; $logArray = $logs.Split(";") &lt;br /&gt; [string] $l = "" &lt;br /&gt; foreach ($l in $logArray) &lt;br /&gt; { &lt;br /&gt; $systemErrors = Get-EventLog -Computername $server -LogName $l -After $then -Before $now -EntryType Error | select LogName,EventID,MachineName,EntryType,Message,Source,TimeGenerated &lt;br /&gt; #Write-Host $l &lt;br /&gt; foreach ($obj in $systemErrors) &lt;br /&gt; { &lt;br /&gt; $logName = $l &lt;br /&gt; $eventID = $obj.EventID.ToString() &lt;br /&gt; $MachineName = $obj.MachineName &lt;br /&gt; $entryTime = $obj.EntryType &lt;br /&gt; $message = $obj.Message.Replace("`r`n", ",").Replace("`n", ",").Replace("`r", ",") &lt;br /&gt; $source = $obj.Source &lt;br /&gt; $timeGenerated = $obj.TimeGenerated.ToString() &lt;br /&gt; &lt;br /&gt; $fullentry = $logName + ";" + $eventID + ";" + $MachineName + ";" + $entryTime + ";" + $message + ";" + $source + ";" + $timeGenerated &lt;br /&gt; &lt;br /&gt; WriteToCSV "$logPath\$computers-$log-$date.csv" $fullentry &lt;br /&gt; } &lt;br /&gt; } &lt;br /&gt;} &lt;br /&gt;Function WriteToCSV &lt;br /&gt;{ param ([string] $filePath, [string] $content) &lt;br /&gt; &lt;br /&gt; $content | Out-File -FilePath $filePath -Append &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;$File = "LogName;EventID;MachineName;EntryType;Message;Source;TimeGenerated" &lt;br /&gt;WriteToCSV "$logPath\$computers-$log-$date.csv" $File &lt;br /&gt;ExecutePerComputer $computers&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Excelsior!&lt;/p&gt;
&lt;p&gt;Norman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10374362" width="1" height="1"&gt;</description></item><item><title>Powershell &amp; Extended Events</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2012/11/21/powershell-amp-extended-events.aspx</link><pubDate>Wed, 21 Nov 2012 10:58:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10370534</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10370534</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2012/11/21/powershell-amp-extended-events.aspx#comments</comments><description>&lt;p&gt;I have been doing a lot of work with SQL Server lately. Over on &lt;a href="http://www.sqlskills.com"&gt;www.sqlskills.com&lt;/a&gt; Jonathan Kehayias has written a series of very good blog posts regarding working with Extended Events. I could not however find very much information around Powershell and Extended Events. After some searching on MSDN and TechNet I was able to piece together how to make a stand alone script to create an extended event session. This link was invaluable: &lt;a href="http://technet.microsoft.com/en-us/library/ff877887.aspx"&gt;http://technet.microsoft.com/en-us/library/ff877887.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#$Instance = "SQLALL\NOGISQL2012" &lt;br /&gt;$InstServiceName = "NOGISQL2012" &lt;br /&gt;#$NodeName = "SQLALL"&lt;/p&gt;
&lt;p&gt;Function CreateXEventSession()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # PATH&amp;nbsp; SQLSERVER:\XEvent\SQLALL\NOGISQL2012&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set-Location SQLSERVER:\XEvent&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $h = hostname&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd $h&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $store = dir | where {$_.DisplayName -ieq $InstServiceName}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $session = new-object Microsoft.SqlServer.Management.XEvent.Session -argumentlist $store, "TestSession"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $event = $session.AddEvent("sqlserver.sql_statement_completed")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $event.AddAction("sqlserver.sql_text")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $session.AddTarget("package0.ring_buffer")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $session.Create()&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;write-host "--&amp;lt;&amp;gt;------&amp;nbsp; start&amp;nbsp; ------&amp;lt;&amp;gt;--" &lt;br /&gt;Import-Module -Name SQLPS &lt;br /&gt;CreateXEventSession &lt;br /&gt;write-host "--&amp;lt;&amp;gt;------&amp;nbsp; end&amp;nbsp; ------&amp;lt;&amp;gt;--" &lt;br /&gt;# todo --&amp;gt; start the session&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;good luck and have fun,&lt;/p&gt;
&lt;p&gt;Norman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10370534" width="1" height="1"&gt;</description></item><item><title>Windows 7 search returns nothing (again)</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2011/11/22/windows-7-search-returns-nothing-again.aspx</link><pubDate>Tue, 22 Nov 2011 09:01:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10239471</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10239471</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2011/11/22/windows-7-search-returns-nothing-again.aspx#comments</comments><description>&lt;p&gt;I have been stumped by this a few times and it drives me crazy. The new windows OS's are supposed to have the speediest search capability so far and yet when I search for files that I know exist, they cannot be found.&lt;/p&gt;
&lt;p&gt;The other day I was trying to clean up my harddrive and I wanted to find all the files with extension BLG. Once found I wanted to delete them all. The search tool could find no files of that type at all. I was using the *.blg wildcard.&lt;/p&gt;
&lt;p&gt;Solution:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;select the folder in the windows explorer&lt;/li&gt;
&lt;li&gt;hit the ALT key which should bring up the TOOLS menu&lt;/li&gt;
&lt;li&gt;select Tools &amp;gt; Folder Options&lt;/li&gt;
&lt;li&gt;a pop-up window appears with 3 tabs&lt;/li&gt;
&lt;li&gt;select the SEARCH tab&lt;/li&gt;
&lt;li&gt;selec the option "Always search file names and contents (this might take several minutes)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Your searches will now be slower but yes you will be able to find what your are looking for. I can't quite figure out what the point of having a search solution that is fast but can't anything!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;gr,&lt;/p&gt;
&lt;p&gt;Norman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10239471" width="1" height="1"&gt;</description></item><item><title>Windows Azure - DSInit fails - solution</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2011/11/09/windows-azure-dsinit-fails-solution.aspx</link><pubDate>Wed, 09 Nov 2011 10:03:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10235312</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10235312</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2011/11/09/windows-azure-dsinit-fails-solution.aspx#comments</comments><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I hit an interesting undocumented hidden feature when using DSInit to set up the storage emulator database for my VS2010 projects.The documentation assumes that you have installed SQLExpress and indeed if you have the setup of the emulator will work fine. What however if you have your own SQL Server instance running? What if that instance is a named instance and not a default instance?&amp;nbsp; As I found the creation will fail.&lt;/p&gt;
&lt;p&gt;The command line that should work is: &amp;gt; DSInit /sqlinstance:myinstance /user:domain\user /forcecreate&lt;/p&gt;
&lt;p&gt;when: myinstance is in the format of &amp;lt;server&amp;gt;\&amp;lt;instance&amp;gt; the creation will fail.&lt;/p&gt;
&lt;p&gt;the solution is to use only the &amp;lt;instance&amp;gt; name thus instead of &lt;strong&gt;&amp;gt; DSInit /sqlinstance:&amp;lt;server&amp;gt;\&amp;lt;instance&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/strong&gt; USE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt; &amp;gt; DSInit /sqlinstance:&amp;lt;instance&amp;gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Don't forget to run the command prompt as administrator and you can use &lt;strong&gt;/user:domain\user /forcecreate&lt;/strong&gt;&amp;nbsp;as required.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Tutorial: Creating a Windows Azure Hello World Application Using ASP.NET MVC 3: &lt;a href="http://www.microsoft.com/windowsazure/learn/tutorials/getting-started-web-tutorial/"&gt;http://www.microsoft.com/windowsazure/learn/tutorials/getting-started-web-tutorial/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Tutorial: Deploying a Windows Azure Sample Application: &lt;a href="http://www.microsoft.com/windowsazure/learn/tutorials/deploy-tutorial/"&gt;http://www.microsoft.com/windowsazure/learn/tutorials/deploy-tutorial/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10235312" width="1" height="1"&gt;</description></item><item><title>What startup stored procedures are we running?</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2011/07/17/what-startup-stored-procedures-are-we-running.aspx</link><pubDate>Sun, 17 Jul 2011 19:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10187321</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10187321</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2011/07/17/what-startup-stored-procedures-are-we-running.aspx#comments</comments><description>&lt;p&gt;For some environments certain actions must be taken when SQL Server starts up. For some customers temporary tables or other types of transient objects&amp;nbsp;must be present in the Tempdb. Developers or DBAs will then create "start up stored procedures" to ensure that when SQL Server starts up these procedures will execute.&lt;/p&gt;
&lt;p&gt;What happens if the original developers/DBAs leave and there is no documentation? How can we find out which objects are being executed at startup?&amp;nbsp;I recently had this question so I thought I would post the answer here as it is interesting.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;SELECT &lt;span style="color: #ff00ff;"&gt;&lt;span style="color: #ff00ff;"&gt;ObjectProperty&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff00ff;"&gt;&lt;span style="color: #ff00ff;"&gt;object_id&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;span style="color: #ff0000;"&gt;'ExecIsStartup'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;),*&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;span style="color: #0000ff;"&gt;&lt;span style="color: #0000ff;"&gt;FROM &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&lt;span style="color: #008000;"&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #008000;"&gt;&lt;span style="color: #008000;"&gt;objects&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;span style="color: #0000ff;"&gt;&lt;span style="color: #0000ff;"&gt;WHERE&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&lt;span style="color: #0000ff;"&gt;TYPE&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;IN&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;span style="color: #ff0000;"&gt;'X'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;span style="color: #ff0000;"&gt;'P'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;span style="color: #ff0000;"&gt;'PC'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif; font-size: small;"&gt;AND &lt;span style="color: #ff00ff;"&gt;&lt;span style="color: #ff00ff;"&gt;ObjectProperty&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff00ff;"&gt;&lt;span style="color: #ff00ff;"&gt;object_id&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;span style="color: #ff0000;"&gt;'ExecIsStartup'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080;"&gt;&lt;span style="color: #808080;"&gt;) = 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Norman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10187321" width="1" height="1"&gt;</description></item><item><title>SQL Server: Move a Table from the Primary Partition to a Secondary Partition</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2011/06/13/sql-server-move-a-table-from-the-primary-partition-to-a-secondary-partition.aspx</link><pubDate>Mon, 13 Jun 2011 20:55:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10174061</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10174061</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2011/06/13/sql-server-move-a-table-from-the-primary-partition-to-a-secondary-partition.aspx#comments</comments><description>&lt;p&gt;&lt;br /&gt;&lt;br /&gt;I get often&amp;nbsp;asked by customers how they can best move data from their primary partition to a secondary partion. Often databases are created with a simple MDF &amp;amp; LDF set up and the data is on the Primary Default partition. One of the easiest ways to accomplish this task is to use the Create Index while using the With Move To option. I have included the script here: &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;/* -- clean up &lt;br /&gt;EXEC msdb.dbo.sp_delete_database_backuphistory @database_name = N'TestMoveTableToPartition' &lt;br /&gt;GO &lt;br /&gt;USE [master] &lt;br /&gt;GO &lt;br /&gt;ALTER DATABASE [TestMoveTableToPartition] SET SINGLE_USER WITH ROLLBACK IMMEDIATE &lt;br /&gt;GO &lt;br /&gt;USE [master] &lt;br /&gt;GO &lt;br /&gt;DROP DATABASE [TestMoveTableToPartition] &lt;br /&gt;GO &lt;br /&gt;*/ &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;CREATE &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;DATABASE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; [TestMoveTableToPartition] &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;PRIMARY&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;br /&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;NAME &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;N'TestMoveTableToPartition'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;FILENAME&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;N'C:\DATA\SQL\TestMoveTableToPartition.mdf'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; SIZE &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 3072KB &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; FILEGROWTH &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 1024KB &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;)&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff00ff; font-size: x-small;"&gt;&lt;span style="color: #ff00ff; font-size: x-small;"&gt;LOG&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;br /&gt;( &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;NAME &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;N'TestMoveTableToPartition_log'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;FILENAME&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;N'C:\DATA\SQL\TestMoveTableToPartition_log.ldf'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; SIZE &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 1024KB &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; FILEGROWTH &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 10&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt; &lt;span style="color: #808080; font-size: x-small;"&gt;%)&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;GO &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;use &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;TestMoveTableToPartition&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;go &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;br /&gt;-- create a table on Primary (as default) &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;drop &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;table&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; Table01&lt;/span&gt; &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;go &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;create &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;table&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; Table01&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;col1 &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; col2 &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; col3 &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;binary&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;6000&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt; &lt;span style="color: #808080; font-size: x-small;"&gt;))&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;go &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;br /&gt;-- fill the table with some sample data &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;declare &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@i &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;int&lt;span style="color: #0000ff; font-size: x-small;"&gt; &lt;br /&gt;set &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@i&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;0&lt;/span&gt; &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;while &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@i &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 10000&lt;/span&gt; &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;begin &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;insert &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;into&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; Table01&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;col1&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; col2&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;values &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff00ff; font-size: x-small;"&gt;&lt;span style="color: #ff00ff; font-size: x-small;"&gt;rand&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;()*&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1000&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #ff00ff; font-size: x-small;"&gt;&lt;span style="color: #ff00ff; font-size: x-small;"&gt;rand&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;()*&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1000&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt; &lt;span style="color: #808080; font-size: x-small;"&gt;)&lt;/span&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;set &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@i&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@i&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1&lt;/span&gt; &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;end &lt;br /&gt;go &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;br /&gt;-- create a clustered index (needed for the move) &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;create &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;clustered&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;index&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; IX_Col1 &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;on&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; Table01&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;col1&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt; &lt;span style="color: #808080; font-size: x-small;"&gt;)&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;span style="color: #008000; font-size: x-small;"&gt;&lt;br /&gt;-- check the datafiles (mdf) to see how big it is, my test was 80 Mb &lt;br /&gt;-- Now add a new Partition and a File (ndf) to it &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;USE &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;[master]&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;GO &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;ALTER &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;DATABASE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; [TestMoveTableToPartition] &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ADD&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; FILEGROUP [TMTTP02]&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;GO &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;USE &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;[master]&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;GO &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;ALTER &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;DATABASE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; [TestMoveTableToPartition] &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;ADD &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;FILE &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; NAME &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;N'TestMoveTableToPartitionNew'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;FILENAME&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;&lt;span style="color: #ff0000; font-size: x-small;"&gt;N'C:\DATA\SQL\TestMoveTableToPartitionNew.ndf'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; SIZE &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 3072KB &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; FILEGROWTH &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 1024KB &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;TO &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;FILEGROUP [TMTTP02]&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;GO &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;USE &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;[TestMoveTableToPartition]&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;GO &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;CREATE &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;CLUSTERED&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;INDEX&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; [IX_Col1] &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; [dbo]&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;[Table01] &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;br /&gt;( &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;[col1] &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ASC&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt; &lt;br /&gt;) &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;WITH &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;DROP_EXISTING&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ONLINE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;OFF&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;&lt;span style="color: #808080; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; [TMTTP02]&lt;/span&gt; &lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;span style="color: #0000ff; font-size: x-small;"&gt;&lt;br /&gt;GO &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10174061" width="1" height="1"&gt;</description></item><item><title>SSRS CLR deployment fails - VS 2010 &amp; SQL Server 2008 R2</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2011/05/01/ssrs-clr-deployment-fails-vs-2010-amp-sql-server-2008-r2.aspx</link><pubDate>Sun, 01 May 2011 19:22:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10159855</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10159855</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2011/05/01/ssrs-clr-deployment-fails-vs-2010-amp-sql-server-2008-r2.aspx#comments</comments><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;You can deploy a CLR project to SQL Server 2008 R2 with Visual Studio 2010 however do not forget to set the target .Net version to 3.5. The default for VS 2010 is .Net 4.0 and this will cause a deploy error, (fails to deploy). I lost a some time fiddling with this before I was able to get it to work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;gr,&lt;/p&gt;
&lt;p&gt;Norman&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10159855" width="1" height="1"&gt;</description></item><item><title>Back online!</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2011/05/01/back-online.aspx</link><pubDate>Sun, 01 May 2011 19:14:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10159852</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=10159852</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2011/05/01/back-online.aspx#comments</comments><description>&lt;p&gt;I am back online after a bit of a hiatus. Microsoft made some changes to the logon process and accounts in general. I was unable to sign in to my account for some time now. &lt;/p&gt;
&lt;p&gt;According to Microsoft:&lt;br /&gt;On January 27th, we have deployed Profile Integration to the MSDN &amp;amp; TechNet Blogs (&lt;a href="http://blogs.msdn.com/b/help/archive/2011/01/21/integration-of-msdn-blog-user-account-with-msdn-forums-profile.aspx"&gt;http://blogs.msdn.com/b/help/archive/2011/01/21/integration-of-msdn-blog-user-account-with-msdn-forums-profile.aspx&lt;/a&gt; ).&amp;nbsp; This is part of the larger STO Profile integration, which consolidate our users profile suites down to a single instance which will be used across all STO community platforms.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards, &lt;br /&gt;Norman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10159852" width="1" height="1"&gt;</description></item><item><title>Writing to the EventLog from an Orchestration</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2010/03/23/writing-to-the-eventlog-from-an-orchestration.aspx</link><pubDate>Tue, 23 Mar 2010 17:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9983761</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9983761</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2010/03/23/writing-to-the-eventlog-from-an-orchestration.aspx#comments</comments><description>&lt;P&gt;Please be very careful with how you do this. This can be a disaster in a production environment (Imagine writing millions of messages to an eventlog)! I once saw an environment that was writing customer information in the EventLog (there is a very bad idea as anyone with rights to read the log can get access to that information).&lt;/P&gt;
&lt;P&gt;Writing Message Content&lt;BR&gt;Trace and debug messages are also useful for writing out the contents of messages and orchestration variables. This is useful for inspecting intermediate messages produced by multiple transforms and for determining the values of other transient values.&lt;/P&gt;
&lt;P&gt;The first step is to add the appropriate variable declarations to the orchestration:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;stringMessage of type string&lt;/LI&gt;
&lt;LI&gt;xmlMessage of type System.Xml.XmlDocument&lt;/LI&gt;
&lt;LI&gt;myMessage is the orchestration message whose contents are to be output&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;After these variables have been declared, add the following code to an Expression shape in your orchestration:&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;xmlMessage = myMessage;&lt;BR&gt;stringMessage = xmlMessage.OuterXml;&lt;BR&gt;System.Diagnostics.EventLog.WriteEntry("MyBizTalkLogEntry", stringMessage);&lt;/P&gt;&lt;BR&gt;
&lt;P&gt;The is handy perhaps for you&amp;nbsp;Dev environment but very dangerous for production.&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;For more debugging tips please refer to: &lt;A href="http://technet.microsoft.com/en-us/library/cc825581(BTS.10).aspx" mce_href="http://technet.microsoft.com/en-us/library/cc825581(BTS.10).aspx"&gt;http://technet.microsoft.com/en-us/library/cc825581(BTS.10).aspx&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9983761" width="1" height="1"&gt;</description></item><item><title>Running BizTalk Documentor on a 64bit machine</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2010/03/23/running-biztalk-documentor-on-a-64bit-machine.aspx</link><pubDate>Tue, 23 Mar 2010 10:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9983510</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9983510</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2010/03/23/running-biztalk-documentor-on-a-64bit-machine.aspx#comments</comments><description>&lt;P&gt;The&lt;STRONG&gt; BizTalk Documentor&lt;/STRONG&gt; is a great tool for auto-generating documentation for your environment. &lt;/P&gt;
&lt;P&gt;The tool can be downloaded here: &lt;A href="http://biztalkdocumenter.codeplex.com/"&gt;http://biztalkdocumenter.codeplex.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you have a 64bit environment then it will most likely not work for you. You can get around this by running with 32bit Coreflags on. You will need to have either the Win 2k? SDK installed or Visual Studio. Then you open a command prompt and execute the following: &lt;STRONG&gt;coreflags.exe Microsoft.Services.Tools.BiztalkDocumenter.exe /force /32Bit +&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy documentoring!&amp;nbsp;&amp;nbsp;&amp;nbsp; ;-p&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9983510" width="1" height="1"&gt;</description></item><item><title>SQL Profiler irritating "feature" - "You don't have permission to open this file" Trace</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2010/02/17/sql-profiler-irritating-feature-you-don-t-have-permission-to-open-this-file-trace.aspx</link><pubDate>Wed, 17 Feb 2010 15:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9965112</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9965112</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2010/02/17/sql-profiler-irritating-feature-you-don-t-have-permission-to-open-this-file-trace.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Ok, this is a very irritating feature that took a bit of searching before I figured out what was going on. I have a Windows 7 machine with SQL Server 2008 Dev installed. I set up a trace via the SQL Profiler so that I could detect Blocking transactions. I started the trace (not in the gui but as a script within the query analyzer) and did a repro. Once I caught my data I saved it and stopped the trace. I was able to import into a temp table via &lt;/P&gt;&lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;SELECT&lt;/FONT&gt; &lt;FONT color=#808080 size=2&gt;*&lt;/FONT&gt; &lt;FONT color=#0000ff size=2&gt;INTO dbo&lt;/FONT&gt; &lt;FONT color=#808080 size=2&gt;.MyTraceTable&lt;/FONT&gt; &lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;FROM&lt;/FONT&gt; &lt;FONT color=#008000 size=2&gt;fn_trace_gettable(&lt;/FONT&gt; &lt;FONT color=#ff0000 size=2&gt;'c:\temp\MyTrace.trc'&lt;/FONT&gt; &lt;FONT color=#808080 size=2&gt;,&lt;/FONT&gt; &lt;FONT color=#0000ff size=2&gt;default&lt;/FONT&gt; &lt;FONT color=#808080 size=2&gt;);&lt;/FONT&gt; &lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;GO&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;There after I tried to load the trace into the profiler (I had taken the Deadlock Graph) and wanted to see the image that was created. Instead of loading I received a rather annoying error message: "you don't have permission to open this file"! WTH! I am an administrator on my laptop and that account is a sysadmin in SQL and yet I am not allowed to open my own file that I created! This was a bit of a headscratcher. &lt;BR&gt;To make a long story short the simple solution is to run the SQL Profiler "as administrator". &lt;BR&gt;One of these days I really need to sit down and try to figure out how the UAC works&amp;nbsp;otherwise there will never be a truce in my on-going war with it. &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;regards, Norman &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9965112" width="1" height="1"&gt;</description></item><item><title>BizTalk 2006 R2 Service Pack 1 fixes grouped by category</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2010/02/11/biztalk-2006-r2-service-pack-1-fixes-grouped-by-category.aspx</link><pubDate>Thu, 11 Feb 2010 11:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9961868</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9961868</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2010/02/11/biztalk-2006-r2-service-pack-1-fixes-grouped-by-category.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;There has been a Service Pack released for BizTalk 2006 R2 and it can be downloaded here: &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1768f7a3-d843-4f5b-aba7-b3d72892c16f&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=1768f7a3-d843-4f5b-aba7-b3d72892c16f&amp;amp;displaylang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For a listing of fixes grouped by category please follow this link: &lt;A href="http://blogs.msdn.com/biztalkcrt/archive/2010/01/29/Categorized-list-of-fixes-included-in-biztalk-2006-r2-sp1.aspx"&gt;http://blogs.msdn.com/biztalkcrt/archive/2010/01/29/Categorized-list-of-fixes-included-in-biztalk-2006-r2-sp1.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;regards,&lt;/P&gt;
&lt;P&gt;Norman&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9961868" width="1" height="1"&gt;</description></item><item><title>DTA Purge &amp; Archive Job when Global Tracking is disabled</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2010/02/01/dta-purge-archive-job-when-global-tracking-is-disabled.aspx</link><pubDate>Mon, 01 Feb 2010 11:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9956262</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9956262</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2010/02/01/dta-purge-archive-job-when-global-tracking-is-disabled.aspx#comments</comments><description>&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Hi all,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3 face=Calibri&gt;I have seen some confusion around the Job: DTA Purge &amp;amp; Archive, especially in regard to when the Global Tracking is disabled.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;There are two important&amp;nbsp;points to note:&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;1. Turning off Global Tracking by setting adm_Group table, column&amp;nbsp;GlobalTrackingOption to 0 in the BizTalkMgmtDb does not always fully disable Global Tracking. See SOX061023700004.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;2. Even when Global Tracking is successfully disabled the DTA database can continue to grow for two reasons:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i) Every time the BizTalk Backup job runs it inserts a row in the MarkLog table of every database backed up (that will include DTA).&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii) Every time you terminate a suspended instance a row will be written to ServiceInstances table in DTA&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Point i. you cannot do anything about, although the Terminator tool has a task to clear this down.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Point ii. is a bug that is not going to be fixed. (Applies to 2009, R2, 2006, 2004). It is unfortunately not documented (yet).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3 face=Calibri&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;If you enable the DTA Purge &amp;amp; Archive job then both &amp;nbsp;Dtasp_BackupAndPurgeTrackingDatabase and Dtasp_PurgeTrackingDatabase will cause the &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;dta_ServiceInstances table to get cleared down (FYI along with dta_CallChain, dta_DebugTrace, dta_MessageInOutEvents, dta_ServiceInstanceExceptions, Tracking_Fragments1/Part1/Spool1 (not 2), dta_MessageFieldValues, and various Rules tables).&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;That is why it is worth enabling the job (even if it only runs once a week).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;regards,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Norman&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="COLOR: black; mso-ansi-language: EN-GB" lang=EN-GB&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9956262" width="1" height="1"&gt;</description></item><item><title>Windows 7 Godmode</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2010/01/06/windows-7-godmode.aspx</link><pubDate>Wed, 06 Jan 2010 08:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9944429</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9944429</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2010/01/06/windows-7-godmode.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Just like 3D shooters such as Doom, Windows 7 also has a Godmode! To activate Godmode simply make a new folder and give it this name: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Now you have created a folder that gives you quick access to all types of configuration settings.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gr,&lt;/P&gt;
&lt;P&gt;Norman&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9944429" width="1" height="1"&gt;</description></item><item><title>Visual Studio Missing Properties Code Snippets</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2010/01/01/visual-studio-missing-properties-code-snippets.aspx</link><pubDate>Fri, 01 Jan 2010 09:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9942781</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9942781</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2010/01/01/visual-studio-missing-properties-code-snippets.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;CodeSnippets within Visual Studio are very handy to speed up the coding process and reduce the amount of typing that you have to do. In particular if you have to create classes with a lot of properties it can save a lot time if you can automate it. Unfortunately the standard property only creates Get/Sets but doesn't automate placing the variable names. If you add this following snippet to your folder: "C:\Users\&amp;lt;YourUserName&amp;gt;\Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets\propc.snippet" you can access via&amp;nbsp;Ctrl-K-X your new snippet!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR&gt;&amp;lt;CodeSnippets&amp;nbsp; xmlns="&lt;A href="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet" mce_href="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"&gt;http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet&lt;/A&gt;"&amp;gt;&lt;BR&gt;&amp;lt;CodeSnippet Format="1.0.0"&amp;gt;&lt;BR&gt;&amp;lt;Header&amp;gt;&lt;BR&gt;&amp;lt;Title&amp;gt;propc&amp;lt;/Title&amp;gt;&lt;BR&gt;&amp;lt;Shortcut&amp;gt;propc&amp;lt;/Shortcut&amp;gt;&lt;BR&gt;&amp;lt;Description&amp;gt;Code snippet for property and backing field&amp;lt;/Description&amp;gt;&lt;BR&gt;&amp;lt;Author&amp;gt;Microsoft Corporation&amp;lt;/Author&amp;gt;&lt;BR&gt;&amp;lt;SnippetTypes&amp;gt;&lt;BR&gt;&amp;lt;SnippetType&amp;gt;Expansion&amp;lt;/SnippetType&amp;gt;&lt;BR&gt;&amp;lt;/SnippetTypes&amp;gt;&lt;BR&gt;&amp;lt;/Header&amp;gt;&lt;BR&gt;&amp;lt;Snippet&amp;gt;&lt;BR&gt;&amp;lt;Declarations&amp;gt;&lt;BR&gt;&amp;lt;Literal&amp;gt;&lt;BR&gt;&amp;lt;ID&amp;gt;type&amp;lt;/ID&amp;gt;&lt;BR&gt;&amp;lt;ToolTip&amp;gt;Property type&amp;lt;/ToolTip&amp;gt;&lt;BR&gt;&amp;lt;Default&amp;gt;int&amp;lt;/Default&amp;gt;&lt;BR&gt;&amp;lt;/Literal&amp;gt;&lt;BR&gt;&amp;lt;Literal&amp;gt;&lt;BR&gt;&amp;lt;ID&amp;gt;property&amp;lt;/ID&amp;gt;&lt;BR&gt;&amp;lt;ToolTip&amp;gt;Property name&amp;lt;/ToolTip&amp;gt;&lt;BR&gt;&amp;lt;Default&amp;gt;MyProperty&amp;lt;/Default&amp;gt;&lt;BR&gt;&amp;lt;/Literal&amp;gt;&lt;BR&gt;&amp;lt;Literal&amp;gt;&lt;BR&gt;&amp;lt;ID&amp;gt;field&amp;lt;/ID&amp;gt;&lt;BR&gt;&amp;lt;ToolTip&amp;gt;The variable backing this property&amp;lt;/ToolTip&amp;gt;&lt;BR&gt;&amp;lt;Default&amp;gt;myVar&amp;lt;/Default&amp;gt;&lt;BR&gt;&amp;lt;/Literal&amp;gt;&lt;BR&gt;&amp;lt;/Declarations&amp;gt;&lt;BR&gt;&amp;lt;Code Language="csharp"&amp;gt;&amp;lt;![CDATA[private $type$ $field$;&lt;BR&gt;public $type$ $property$&lt;BR&gt;{&lt;BR&gt;get { return $field$;}&lt;BR&gt;set { $field$ = value;}&lt;BR&gt;}&lt;BR&gt;$end$]]&amp;gt;&lt;BR&gt;&amp;lt;/Code&amp;gt;&lt;BR&gt;&amp;lt;/Snippet&amp;gt;&lt;BR&gt;&amp;lt;/CodeSnippet&amp;gt;&lt;BR&gt;&amp;lt;/CodeSnippets&amp;gt;&lt;/P&gt;
&lt;P&gt;Happy Coding! &lt;BR&gt;Norman&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9942781" width="1" height="1"&gt;</description></item><item><title>Debugging a vbs script (cscript)</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/11/16/debugging-a-vbs-script-cscript.aspx</link><pubDate>Mon, 16 Nov 2009 20:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9923155</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9923155</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/11/16/debugging-a-vbs-script-cscript.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;You can use the Visual Studio Debugger to debug a .vbs (vbscript) file executed with cScript.exe by using the //X flag at the command line. &lt;/P&gt;
&lt;P&gt;To debug MyTest.vbs cscript.exe MyTest.vbs //X The //X will set a breakpoint and invoke the "select a debugger" dialog where you can choose Visual Studio and step into your vbs code. Afterward it's just a question of stepping through the code (F10, F11). You can also set break points within the script and evaluate variables.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9923155" width="1" height="1"&gt;</description></item><item><title>Microsoft Virtual Labs</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/11/03/microsoft-virtual-labs.aspx</link><pubDate>Tue, 03 Nov 2009 07:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9916617</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9916617</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/11/03/microsoft-virtual-labs.aspx#comments</comments><description>A relatively unknown service that Microsoft provides is that of virtual labs. If you use this link: 
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;A href="http://msevents.microsoft.com/CUI/SearchDisplay.aspx?culture=en-US&amp;amp;evtTypHero=4#culture=en-US;sortKey=;sortOrder=;pageEvent=false;hdnInitialCount=;kwdAny=bizTalk;eventType=4;searchcontrol=yes;s=1"&gt;&lt;FONT color=#0000ff size=3 face=Calibri&gt;http://msevents.microsoft.com/CUI/SearchDisplay.aspx?culture=en-US&amp;amp;evtTypHero=4#culture=en-US;sortKey=;sortOrder=;pageEvent=false;hdnInitialCount=;kwdAny=bizTalk;eventType=4;searchcontrol=yes;s=1&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3 face=Calibri&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;you will find 65 labs that you can sign up for and do free of charge. This labs are great because through your browser you can run a BizTalk server&amp;nbsp;environment exactly as if you had a remote connection to the server. There are step-for-step manuals and all the source code is there as well. If you are curious about testing out some of this technology I high recommend giving them a try.&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&lt;/FONT&gt;&lt;/o:p&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;regards,&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;Norman&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9916617" width="1" height="1"&gt;</description></item><item><title>Convert Xml to Html using a Pipeline Xsl Transformation</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/10/18/convert-xml-to-html-using-a-pipeline-xsl-transformation.aspx</link><pubDate>Sun, 18 Oct 2009 13:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9908796</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9908796</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/10/18/convert-xml-to-html-using-a-pipeline-xsl-transformation.aspx#comments</comments><description>&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Hi all,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;The SDK that you can install with BizTalk has some very nice simple code examples that illustrate how you could tackle a specific problem. Please note however that these are not Enterprise tested solutions and are designed for Demo purposes only. &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;In this example I had been asked to do a demo using a pipeline. This sample was originally designed to use SMTP however considering that Windows Server 2008 doesn’t have this built-in support anymore (whereas Windows Server 2003 does) I changed it to be a simple File to File type of transport. This is much more practical when trying to show a demo.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;&lt;STRONG&gt;Goal of the Demo:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Pick up an Xml file that we want to convert to Html.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Using a Custom Assembly locate a Xsl transformation file.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Convert the Xml to Html using the Transformation and Custom Code&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;4.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Send the Html file out&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Within the SDK there is a nice little project for us to use. Under the following directory (depending upon where you installed it): “C:\Program Files\Microsoft BizTalk Server 2009\SDK\Samples\Pipelines” you can find the folder “XslTransformComponent” and within that there are 2 projects. The first project is a BizTalk project called “SendHtmlMessage” and this is where our pipeline is designed. This is the project that you will deploy to your BizTalk 2009 server. The second project “XslTransfom’ is interesting because it contains the custom code to dynamically find and use a transformation “Xsl” file and apply over incoming xml.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT size=3 face=Calibri&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;First Steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;When I did this for the first time I copied the whole folder to my C:\projects\pipelines directory so that the original code would stay clean and I would have&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;backup if things went wrong. Now within the XslTransformComponent folder there should be 2 project folders (SendHtmlMessage &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;and XslTransformComponent) as well as XslTransformComponent.sln file, .bat files (ignore these as I had only problems within them on Win2K8) and a DocInstance.xml file (which will be used later for testing). Since the .bat file deployment didn’t work for me I had to do a number of things manually. Afterward I was happy for this because by doing it by hand I got a good feeling for how the pieces worked together.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The first manual operation I needed to do was create a strong name file for the BizTalk project. The command line (make sure you use the visual studio command prompt and not the one found with windows) I used was: “&amp;gt;sn –k SendHtmlMessage.snk”. Remember you can’t deploy a BizTalk project unless the assembly has been signed with a strongname. I also like to give my project a name so that I can find it easily in the BizTalk management console. A project can be given a name within the property pages under “Deploy” within Visual Studio. I called my project aptly enough SendHtmlMessage.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;;p&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Once the strongname is there it shouldn’t be a problem compiling your project. Note that we don’t need a strong name for the XslTransformComponent project nor did I install it to the GAC. &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Project SendHtmlMessage should already have the 3 following files (and now the strongname file):&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Confirmation.xsd&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;SendHtmlMessage.snk&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Xml2HtmlSendPipeline.btp&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l1 level2 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;A send pipeline contains 3 phases: i. Preassemble, ii. Assemble and iii. Encode&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l1 level2 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;b.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Phase i. Preassemble: leave empty&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l1 level2 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;c.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Phase ii. Assemble: the standard Xml Assembler&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l1 level2 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;d.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Phase iii. Encode: XslTransform&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Project XslTransform should already have the (besides the AssemblyInfo class) only the class: XslTransformer.cs. This is where our custom code for transforming is found.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Next Steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Once the BizTalk project compiles we can deploy it. Once it is deploy open and refresh the BizTalk Management Console to see if the Application SendHtmlMessage is present. If it is not present recheck that the project deployed from Visual Studio (also check the property pages to make sure the correct SqlServer and Management database is being targeted).&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Just a few more Steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Configure the FileAdapter ports.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Create a Receive Port and Location&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l2 level2 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Port Name: recprtTransform&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;i.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Port Type: one way receive&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l2 level2 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;b.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Receive Location Name: reclocTransform&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;i.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Type: File&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;ii.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Configure the receive folder: C:\Projects\Pipelines\XslTransformComponent\TEST\IN\&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;iii.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;File mask is *.Xml&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;iv.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Receive Handler: BizTalkServerApplcation&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;v.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Receive Pipeline: PassThruReceive&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Create a Send Port&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l2 level2 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Port Name: sndprtTransform&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;i.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Port Type: one way receive&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;ii.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Configure the receive folder: C:\Projects\Pipelines\XslTransformComponent\TEST\OUT&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;iii.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;File Name is: New_*.Html&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -1.5in; MARGIN: 0in 0in 0pt 1.5in; mso-list: l2 level3 lfo3; mso-text-indent-alt: -9.0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;iv.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Send Pipeline: Xml2HtmlSendPipeline&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;&lt;STRONG&gt;Last Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Now we must copy the XslTransform Dll from the “C:\Projects\Pipelines\XslTransformComponent\XslTransform\bin\Release” folder to the “C:\Program Files\Microsoft BizTalk Server 2009\Pipeline Components” folder. &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;The Transform.xsl file must be copied from the “C:\Projects\Pipelines\XslTransformComponent\SendHtmlMessage” folder to the same “C:\Program Files\Microsoft BizTalk Server 2009\Pipeline Components” folder.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;&lt;STRONG&gt;Once this is done we can test our work!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Start the BizTalk SendHtmlMessage application.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Find the DocInstance.xml file and copy it (ctrl-c / ctrl-v) to the C:\Projects\Pipelines\XslTransformComponent\TEST\IN\ and if everything worked there should be a Html result in the ..\TEST\OUT folder. &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Look at the results, how cool is that?&lt;/FONT&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9908796" width="1" height="1"&gt;</description></item><item><title>A simple BizTalk Server 2009 WCF SqlServer adapter Stored Procedure example</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/10/05/a-simple-biztalk-server-2009-wcf-sqlserver-adapter-example.aspx</link><pubDate>Mon, 05 Oct 2009 12:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9903134</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9903134</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/10/05/a-simple-biztalk-server-2009-wcf-sqlserver-adapter-example.aspx#comments</comments><description>&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;Hi all,&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;Continuing my delving into BizTalk 2009, ESB and WCF I have done a simple tutorial on how to insert a record into a SQL Server 2008 database using the new WCF Adapters. The new WCF Adapters are highly configurable and manageable and as such we recommend using them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;One important Gotcha:&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt; I had already&amp;nbsp;installed&amp;nbsp;the new ESB 2.0 guidance on my Windows Virtual PC. This meant that the GlobalBankESB database had already been created including a stored procedure that I wanted to call in my tutorial. This stored procedure was already being called from another tutorial project and as such there were already artifacts generated for it. In particular this was &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;important: &lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;there was a record created in the BizTalkMgmntDb, table bt_DocumentSpec for the already generated artifacts related to the stored procedure and other project. When I used the same stored procedure to generate artifacts and use it in a different project I had a problem where the project wouldn't work. The following is the error that I received: &lt;BR&gt;&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;Event ID: 5719&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;Description:&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;There was a failure executing the receive pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLReceive" Source: "XML disassembler" Receive Location: "C:\Projects\OrdersIn\*.xml" Reason: The disassembler cannot retrieve the document specification by using this type: "&amp;lt;MyDocName&amp;gt;". Either the schema is not deployed correctly, or more than one schema is deployed for the same message type.&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;How to get around this problem? First I had to undeploy from BizTalk&amp;nbsp;the test project that I had made so that the double records within the bt_DocumentSpec table would be corrected. The next step was to create a copy of the stored procedure I wanted to use and rename it to something unique. Then I could regenerate the artifacts and redeploy and it worked. I looks as if you want to reuse this type of artifact within a BizTalk group you will have to generate your artifacts and then if you wish to reuse them you will have to share your project within your other projects to get access.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;Simple BizTalk Server 2009 WCF SqlServer Adapter Example&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;Phase #1.&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt; The database, I had&amp;nbsp;used the GlobalBankESB and storedprocedure "InsertProduct". I then had to make a copy of this procedure and named it InsertProduct2 (read section &lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;Gotcha&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt; above). Here is the table and stored procedure:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;SET ANSI_NULLS ON&lt;BR&gt;GOSET QUOTED_IDENTIFIER ON&lt;BR&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;CREATE TABLE [dbo].[Product](&lt;BR&gt;&amp;nbsp;[Id] [int] IDENTITY(1,1) NOT NULL,&lt;BR&gt;&amp;nbsp;[Name] [nvarchar](100) NOT NULL,&lt;BR&gt;&amp;nbsp;[Description] [nvarchar](max) NOT NULL,&lt;BR&gt;&amp;nbsp;[Price] [money] NOT NULL,&lt;BR&gt;&amp;nbsp;[Quantity] [int] NOT NULL,&lt;BR&gt;&amp;nbsp;CONSTRAINT [PK_Product] PRIMARY KEY CLUSTERED &lt;BR&gt;(&lt;BR&gt;&amp;nbsp;[Id] ASC&lt;BR&gt;)WITH (PAD_INDEX&amp;nbsp; = OFF, STATISTICS_NORECOMPUTE&amp;nbsp; = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS&amp;nbsp; = ON, ALLOW_PAGE_LOCKS&amp;nbsp; = ON) ON [PRIMARY]&lt;BR&gt;) ON [PRIMARY] &lt;BR&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;CREATE PROCEDURE [dbo].[InsertProduct]&lt;BR&gt;&amp;nbsp;@Name nvarchar(100),&lt;BR&gt;&amp;nbsp;@Description nvarchar(MAX),&lt;BR&gt;&amp;nbsp;@Price money,&lt;BR&gt;&amp;nbsp;@Quantity int&lt;BR&gt;AS&lt;BR&gt;BEGIN&lt;BR&gt;&amp;nbsp;INSERT INTO [dbo].[Product]&amp;nbsp;([Name],[Description],[Price],[Quantity])&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES&amp;nbsp;(@Name,@Description,@Price,@Quantity) &lt;BR&gt;END&lt;BR&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-size: 11.0pt"&gt;Phase #2&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;. Visual Studio, Create a VS studio project to generate the artifacts we need to call the stored procedure from BizTalk.&lt;BR&gt;My goal here is to pick up an external message, convert it into an internal message and have BizTalk write a record to the database using the new WCF SQL functionality. I ended up with the following items in my project: &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL type=1&gt;
&lt;LI style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l3 level1 lfo1; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;a XSD that defines the external message. This I created myself: ProductExt.xsd&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l3 level1 lfo1; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;a XSD that defines the internal message in such a manner that we can use it write to the database (generated items)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l3 level1 lfo1; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;a transform map that allows me to convert from the external to my internal. This I created myself: ProductExt_To_ProductInt.btm&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l3 level1 lfo1; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;an Orchestration so that I can control what's going on and more easily debug in the event of a problem&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l3 level1 lfo1; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;a WCF binding file (a generated and a&amp;nbsp;critical&amp;nbsp;item)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l3 level1 lfo1; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;don't forget that all BizTalk projects need a strong name, example: sn.exe -k NoGiWCFSQL.snk&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;STRONG&gt;Step 1. Create the project and add&amp;nbsp;ProductExt.xsd.&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE style="BORDER-BOTTOM: black 1pt outset; BORDER-LEFT: black 1pt outset; BORDER-TOP: black 1pt outset; BORDER-RIGHT: black 1pt outset; mso-cellspacing: 1.5pt; mso-border-alt: outset black .75pt; mso-yfti-tbllook: 1184" class=MsoNormalTable border=1 cellPadding=0 class="MsoNormalTable"&gt;
&lt;TBODY&gt;
&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes"&gt;
&lt;TD style="BORDER-BOTTOM: black 1pt inset; BORDER-LEFT: black 1pt inset; PADDING-BOTTOM: 0.75pt; BACKGROUND-COLOR: transparent; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt; BORDER-TOP: black 1pt inset; BORDER-RIGHT: black 1pt inset; PADDING-TOP: 0.75pt; mso-border-alt: inset black .75pt"&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&amp;lt;?xml version="1.0" encoding="utf-16" ?&amp;gt;&lt;BR&gt;&amp;lt;?xml:namespace prefix = xs /&amp;gt;&lt;BR&gt;&amp;lt;xs:schema xmlns="http://NoGiBTSSQL.ProductExt" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://NoGiBTSSQL.ProductExt" xmlns:b="http://schemas.microsoft.com/BizTalk/2003"&amp;gt;&lt;BR&gt;&amp;lt;xs:element name="Product"&amp;gt;&lt;BR&gt;&amp;lt;xs:complexType&amp;gt;&amp;lt;xs:sequence&amp;gt;&amp;lt;xs:element name="Name" type="xs:string"&amp;gt;&lt;BR&gt;&amp;lt;xs:element name="Description" type="xs:string"&amp;gt;&lt;BR&gt;&amp;lt;xs:element name="Cost" type="xs:decimal"&amp;gt;&amp;lt;xs:element name="Code" type="xs:string"&amp;gt;&lt;BR&gt;&amp;lt;xs:element name="Quantity" type="xs:int"&amp;gt;&amp;lt;/xs:sequence&amp;gt;&lt;BR&gt;&amp;lt;/xs:complexType&amp;gt;&lt;BR&gt;&amp;lt;/xs:element&amp;gt;&lt;BR&gt;&amp;lt;/xs:schema&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;STRONG&gt;Step 2. Generate Artifacts&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Right click the project and select Add &amp;gt; Add Generated Items.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;A browser window will open, select ConsumeAdapterService&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Select ConsumeAdapterService&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;IMG src="http://blogs.msdn.com/photos/nogipics/images/9903168/original.aspx" width=569 height=285 mce_src="http://blogs.msdn.com/photos/nogipics/images/9903168/original.aspx"&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3&gt;This will reveal the &lt;STRONG&gt;Consume Adapter Service &lt;/STRONG&gt;window:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;Select a binding:&lt;/B&gt; sqlBinding&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;Configure a URI:&lt;/B&gt; mssql://&amp;lt;yourServer&amp;gt;/&amp;lt;yourInstance&amp;gt;/&amp;lt;yourDB&amp;gt;? (this connection URI is quite different that the usual connection strings that we expect with a SQLServer database)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;Connect:&lt;/B&gt; If your connection status is not Connected recheck your URI&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;Select a category:&lt;/B&gt; I selected ‘Procedures’ as I want to call a stored procedure.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Available categories and operations: notice that there are 2 records here in this list, InsertProduct and InsertProduct2. This is the Gotcha that I spoke about. I originally tried to generate artifacts for the InsertProduct record (InsertProduct was not even present at the time) and that was successful. When I deployed my project however the processing failed. After quite some time debugging and searching I discovered that I had generated the same artifacts and deployed as were already done in an ESB tutorial. In the bt_DocumentSpec table there were double records present for the InsertProduct object. I am not sure if this is a bug or an undocumented hidden feature. To overcome this quickly I duplicated the InsertProduct stored procedure and appended it with 2. A better solution perhaps would be to reuse the already present artifacts but I thought this was interesting enough to write about it so that others can avoid it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Click Ok&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3&gt;&lt;IMG src="http://blogs.msdn.com/photos/nogipics/images/9903167/original.aspx" width=541 height=522 mce_src="http://blogs.msdn.com/photos/nogipics/images/9903167/original.aspx"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/o:p&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;&lt;?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /&gt;&lt;v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;v:shape style="Z-INDEX: 1; POSITION: absolute; MARGIN-TOP: 0px; WIDTH: 304.25pt; HEIGHT: 272.4pt; VISIBILITY: visible; MARGIN-LEFT: 0px; mso-wrap-style: square; mso-wrap-distance-left: 9pt; mso-wrap-distance-top: 0; mso-wrap-distance-right: 9pt; mso-wrap-distance-bottom: 0; mso-position-horizontal: left; mso-position-horizontal-relative: text; mso-position-vertical: top; mso-position-vertical-relative: text" id=Picture_x0020_0 alt="original.aspx" type="#_x0000_t75" o:spid="_x0000_s1026"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;v:imagedata mce_src="file:///C:\Users\gillisn\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg" o:title="original" src="file:///C:\Users\gillisn\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg"&gt;&lt;/v:imagedata&gt;&lt;?xml:namespace prefix = w ns = "urn:schemas-microsoft-com:office:word" /&gt;&lt;w:wrap type="square"&gt;&lt;/w:wrap&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/v:shape&gt;&lt;BR style="mso-special-character: line-break" clear=all&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Visual Studio will now add a number of Artifacts to your project (depending upon what you have chosen to generate). In my case I had the following:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo2" class=MsoNoSpacing&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;DataSetSchema.xsd&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo2" class=MsoNoSpacing&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Procedure.xsd&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l2 level2 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Defines a Request Insert object&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; mso-list: l2 level2 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;b.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;Defines a Response object&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo2" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;A binding file: &lt;B style="mso-bidi-font-weight: normal"&gt;WcfSendPort_SqlAdapterBinding_Custom.bindinginfo.xml&lt;/B&gt; containing the information that I needed to create a Request / Response call for within my orchestration&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;&lt;IMG src="http://blogs.msdn.com/photos/nogipics/images/9903170/original.aspx" mce_src="http://blogs.msdn.com/photos/nogipics/images/9903170/original.aspx"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;Step 3.&lt;/B&gt; &lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;Create an Orchestration and transform map to insert the records.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;The external message is picked up and then transformed to my internal representation defined by the Procedure.xsd Request object. The advantage of an Orchestration from a development point of view is that you can debug much more easily and add &lt;SPAN style="mso-no-proof: yes"&gt;System.Diagnostics.EventLog.WriteEntry(“&amp;lt;myEntry&amp;gt;”) types of items to help you. After the record has been inserted a response comes back and this file gets placed in an ‘archive’. Note that the 3 ports are defined as logic ports&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;PortProductExt (always receiving)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;PortReqRespInsertWCFSQL (request/response)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo3" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;PortSendProductArchive (always sending)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Also note that &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l4 level1 lfo4" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;msgProductExt defined by my ProductExt.xsd&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l4 level1 lfo4" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;msgProductReq defined by the Procedure.xsd &amp;gt; request object&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l4 level1 lfo4" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3 face=Calibri&gt;msgProductResp defined by the Procedure.xsd &amp;gt; response object&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&lt;IMG style="WIDTH: 578px; HEIGHT: 423px" src="http://blogs.msdn.com/photos/nogipics/images/9903169/original.aspx" width=732 height=500 mce_src="http://blogs.msdn.com/photos/nogipics/images/9903169/original.aspx"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;SPAN style="mso-no-proof: yes"&gt;&lt;v:shape style="WIDTH: 406.5pt; HEIGHT: 259.5pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_1 alt="original.aspx" type="#_x0000_t75" o:spid="_x0000_i1025"&gt;&lt;v:imagedata mce_src="file:///C:\Users\gillisn\AppData\Local\Temp\msohtmlclip1\01\clip_image003.jpg" o:title="original" src="file:///C:\Users\gillisn\AppData\Local\Temp\msohtmlclip1\01\clip_image003.jpg"&gt;&lt;FONT size=3 face=Calibri&gt;&lt;/FONT&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;&lt;STRONG&gt;Step 4. Compile and deploy.&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;Notice now that there is an orchestration in the project and that it requires a Receive port, Request/Response port and a send port.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNoSpacing&gt;&lt;FONT size=3 face=Calibri&gt;The first step is to bind the ports as follows:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo5" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Receive Port (and location) for &lt;B style="mso-bidi-font-weight: normal"&gt;ProductExt&lt;/B&gt;: C:\projects\ProductIn, File adapter, *.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo5" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Send Port for &lt;B style="mso-bidi-font-weight: normal"&gt;PortSendProductArchive&lt;/B&gt;: C:\projects\Archive, Archive_%MessageID%.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo5" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;Send / Receive Port for the PortReqRespInsertWCFSQL&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;: this is a nice trick and reveals the power of the WCF Adapters. Right click on the BizTalk project that you have deployed and select Import &amp;gt; Bindings. Browse to the xml (binding) file that was added to the project. In my case that was: &lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;WcfSendPort_SqlAdapterBinding_Custom.bindinginfo.xml &lt;/B&gt;and select it. This will configure the WCF port for you, awesome. &lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo5" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;4.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Ensure that all the ports have been bound properly&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo5" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=3 face=Calibri&gt;5.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Start the BizTalk application and test it by dropping an instance of the ProductExt into the C:\projects\ProductIn folder.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG style="WIDTH: 501px; HEIGHT: 399px" src="http://blogs.msdn.com/photos/nogipics/images/9903199/original.aspx" width=591 height=477 mce_src="http://blogs.msdn.com/photos/nogipics/images/9903199/original.aspx"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: WCF-Custom is selected as the type.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.msdn.com/photos/nogipics/images/9903201/original.aspx" mce_src="http://blogs.msdn.com/photos/nogipics/images/9903201/original.aspx"&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Note: the binding is sqlBinding and within the SOAP Action header there is a reference to my InsertProduct2 operation.&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3 face=Calibri&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt 0.25in" class=MsoNoSpacing&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;FONT size=3 face=Calibri&gt;A record should have been created in the Database product table and an archive of the response message in the Archive folder!&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9903134" width="1" height="1"&gt;</description></item><item><title>Error attempting to install SqlServer 2008 on Windows 7.</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/10/04/error-attempting-to-install-sqlserver-2008-on-windows-7.aspx</link><pubDate>Sun, 04 Oct 2009 19:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9902943</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9902943</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/10/04/error-attempting-to-install-sqlserver-2008-on-windows-7.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I was attempting to install SqlServer 2008 on my Windows 7 laptop (just for the heck of it) and ran into an odd problem. Each time the setup ran everything would pass except that "requires reboot" would show as having failed. I rebooted several times however to no affect. After doing a bit of poking around I found that a registry key was holding me back.&lt;/P&gt;
&lt;P&gt;This key: &lt;STRONG&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;had the following value: &lt;STRONG&gt;\??\C:\Windows\system32\spool\PRTPROCS\W32X86\1_HPZPPLHN.DLL&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I deleted this&amp;nbsp;value and ran setup again. SqlServer 2008 then installed perfectly on my Win7 machine. &lt;/P&gt;
&lt;P&gt;*Important: it is recommended to install SP1 with SqlServer 2008.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9902943" width="1" height="1"&gt;</description></item><item><title>Microsoft PFE BizTalk offerings</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/28/microsoft-pfe-biztalk-offerings.aspx</link><pubDate>Mon, 28 Sep 2009 11:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9900178</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9900178</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/28/microsoft-pfe-biztalk-offerings.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Within the Microsoft PFE BizTalk group we have a number of offerings/engagement that we can provide as&amp;nbsp;a service.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;BizTalk 2009 ESB 2.0 Development Workshop (coming soon)&lt;/LI&gt;
&lt;LI&gt;BizTalk 2004/2006&amp;nbsp;HealthCheck&lt;/LI&gt;
&lt;LI&gt;BizTalk 2006&amp;nbsp;Administration&amp;nbsp;Workshop&lt;/LI&gt;
&lt;LI&gt;BizTalk 2006 Development Workshop&lt;/LI&gt;
&lt;LI&gt;BizTalk 2006 Disaster/Recovery Workshop&lt;/LI&gt;
&lt;LI&gt;BizTalk 2004 &amp;gt; 2006 &amp;gt; 2009 Migration Workshop&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Please send me an email if you have any questions regarding these services: &lt;A href="mailto:gillisn@microsoft.com" mce_href="mailto:gillisn@microsoft.com"&gt;gillisn@microsoft.com&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9900178" width="1" height="1"&gt;</description></item><item><title>Visual Studio 2008 - unable to create project - Part II</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/24/visual-studio-2008-unable-to-create-project-part-ii.aspx</link><pubDate>Thu, 24 Sep 2009 14:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9898897</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9898897</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/24/visual-studio-2008-unable-to-create-project-part-ii.aspx#comments</comments><description>&lt;P&gt;The saga of my Windows Server 2008 / BizTalk 2009 /&amp;nbsp;ESB development virtual machine continues.....&lt;/P&gt;
&lt;P&gt;I had an issue that I was unable to create any Itineraries in a normal C# project. The ESB 2.0 guidance has a set of great tools/software for doing this. I was able to solve this problem by running the Visual Studio 2008 Service Pack 1 again. I did a number of tutorials that comes with our PFE ESB workshops and it worked great. Microsoft offers workshops in BizTalk Administration and Development (the ESB being part of that).&lt;/P&gt;
&lt;P&gt;Today when I tried to create a BizTalk 2009 project I received a nasty (tiny) little message: &lt;EM&gt;Creating project ‘project name’… project creation failed.&lt;/EM&gt;&amp;nbsp;If you encounter this, there will be no pop-up or anything. There is just a message in the lower left hand corner of the VS IDE. Of course the fact that the project didn't get created should also be a good indicator that something is wrong.&amp;nbsp;&amp;nbsp; ;p&lt;/P&gt;
&lt;P&gt;I checked the Event Logs and unfortunately there was no information. A quick search of the net using &lt;A href="http://www.bing.com/" mce_href="http://www.bing.com"&gt;www.bing.com&lt;/A&gt; lead me to: &lt;A href="http://blogs.msdn.com/biztalkcrt/archive/2009/08/21/visual-studio-2008-fails-to-create-open-biztalk-projects.aspx" mce_href="http://blogs.msdn.com/biztalkcrt/archive/2009/08/21/visual-studio-2008-fails-to-create-open-biztalk-projects.aspx"&gt;http://blogs.msdn.com/biztalkcrt/archive/2009/08/21/visual-studio-2008-fails-to-create-open-biztalk-projects.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Basically it seems a registry setting is getting messed up/not correct: &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{FAE04EC0-301F-11d3-BF4B-00C04F79EFBC}]&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;"PossibleProjectExtensions"="&lt;STRONG&gt;csproj&lt;/STRONG&gt;"&amp;nbsp;&amp;nbsp; - Original VS install reg value. &lt;BR&gt;"PossibleProjectExtensions"="&lt;STRONG&gt;csproj;btproj&lt;/STRONG&gt;" - Post Biztalk installation reg value 
&lt;P mce_keep="true"&gt;The following is the entry for the 64 bit version of VS: &lt;BR&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\Projects\{FAE04EC0-301F-11d3-BF4B-00C04F79EFBC}&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;gr,&lt;BR&gt;Norman&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9898897" width="1" height="1"&gt;</description></item><item><title>Creating Certificates</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/23/creating-certificates.aspx</link><pubDate>Wed, 23 Sep 2009 11:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9898355</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9898355</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/23/creating-certificates.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Certificates are part of the Windows&amp;nbsp;environment and provide for better messaging security. I decided to write a blog about how to create a self-signing certificate because I do this only infrequently and it's a good memory exercise to write something down.&amp;nbsp; ;p&lt;/P&gt;
&lt;P&gt;To quickly review why certificates are a good thing:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;you can send and receive data that is trusted&lt;/LI&gt;
&lt;LI&gt;the data that you process is secure&lt;/LI&gt;
&lt;LI&gt;ensure that only authorized parties receive your messages/data&lt;/LI&gt;
&lt;LI&gt;ensure that you receive messages/data only from authorized parties&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;The first thing you are going to need is a&amp;nbsp;Microsoft SDK. The Visual Studio 2008 SDK can be found here: &lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=59ec6ec3-4273-48a3-ba25-dc925a45584d&amp;amp;DisplayLang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=59ec6ec3-4273-48a3-ba25-dc925a45584d&amp;amp;DisplayLang=en"&gt;&lt;FONT size=3 face=Calibri&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=59ec6ec3-4273-48a3-ba25-dc925a45584d&amp;amp;DisplayLang=en&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Once installed you will have to locate the MakeCert.exe application. In my case I found it under: C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin folder. If you start up this application in a command prompt you can do&amp;gt;MakeCert /? to see which switches are available. There is a complete description to be found here: &lt;A href="http://msdn.microsoft.com/en-us/library/aa386968(vs.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa386968(vs.85).aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Typically* you will need to do something similiar to the following: &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;STEP #1&lt;/STRONG&gt;, "&lt;STRONG&gt;makecert -r -pe -n CN=NOGICERT -b 01/01/2009 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss My -sr currentuser&lt;/STRONG&gt;". This will install the certificate to the current user account personal store and will have a personal key with it. You will need to create a password here and don't lose it.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;STEP #2&lt;/STRONG&gt;. export the private key. I ended up saving it to C:\projects\NoGi.com.pfx. don't forget your password!&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;STEP #3&lt;/STRONG&gt;. you can export the public key as well (this you would give to customers and clients). This was C:\projects\NoGi.com.pfx for me.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;STEP #4&lt;/STRONG&gt;. in the MMC go to the Local Computer Other People store and import the .cer file (the public file that you just exported). When I was setting up a Dev box for&amp;nbsp;doing ESB 2.0 I had to do some&amp;nbsp;a problem with developing itineraries. When&amp;nbsp;you try to make an itinerary it demands that there be a certificate. I ended up importing my NoGi.com.cer also into the Current User &amp;gt; Trusted Root Certificates. Once I did this Visual Studio was happy again and I could compile my projects. This kind of information is vital and I wish Microsoft did a better job of documenting it. This issue was a real show stopper and I found it to be quite frustrating sifting through blogs to figure out how to create a selfsigning certificate and export etc. etc. &lt;BR&gt;*Remember I set this up for a Dev box to give me self signing functionality, your setup may be different.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Where you need to install this self-signing certificate is dependant upon what you wish to use it for. BizTalk for example uses 2 Windows certificate stores: &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1) Other People certificate store (Local Computer Folder), the public keys are stored here. &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Personal certificate store (Current User Folder), private keys are stored here. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Other People Certificate Store.&amp;nbsp;&lt;BR&gt;&lt;/STRONG&gt;Public key certificates are "public" and as their name implies are accessible to anyone with access to the computer on which they are stored. BizTalk for example will retrieve public key certificates from this store to encrypt messages and verify the digital signature of incoming messages. All users can read and use any certificates saved in this store. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Personal Certificate Store. &lt;/STRONG&gt;&lt;BR&gt;BizTalk (for example) uses the private key certificates saved in this store to decrypt incoming messages and sign outgoing messages. Windows accounts that are allowed to log on interactively will have a personal certificate store that only they can access. BizTalk server uses the personal store for the service account of each host instance in order to access the private key certificates belonging to that service account. Therefore every host instance that requires the certificate for decryption or signing of outbound messages must that that certificate saved in its' Personal Certificate store.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Certificates can be viewed via the MMC snap-ins &amp;gt; Certificate Console:&lt;/P&gt;
&lt;P mce_keep="true"&gt;
&lt;TABLE style="WIDTH: 544pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=725&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 80pt; mso-width-source: userset; mso-width-alt: 3913" width=107&gt;
&lt;COL style="WIDTH: 95pt; mso-width-source: userset; mso-width-alt: 4608" width=126&gt;
&lt;COL style="WIDTH: 369pt; mso-width-source: userset; mso-width-alt: 17993" width=492&gt;
&lt;TBODY&gt;
&lt;TR style="HEIGHT: 27pt" height=36&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: black 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 27pt; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: #dddddd 1pt solid" class=xl64 height=36 width=107 class="xl64"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana&gt;Certificate purpose&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 95pt; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: #dddddd 1pt solid" class=xl65 vAlign=removed width=126 class="xl65"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana&gt;Certificate type&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 369pt; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid" class=xl66 vAlign=removed width=492 class="xl66"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana&gt;Certificate store&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="HEIGHT: 52.5pt; mso-yfti-irow: 1" height=70&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: black 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 80pt; HEIGHT: 52.5pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl67 height=70 vAlign=removed width=107 class="xl67"&gt;&lt;FONT face=Verdana&gt;Signing&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 95pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl63 vAlign=removed width=126 class="xl63"&gt;&lt;FONT face=Verdana&gt;Own private key&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 369pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: black 0.5pt solid" class=xl68 vAlign=removed width=492 class="xl68"&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Personal store&lt;/STRONG&gt;&lt;FONT class=font5&gt; for each service account of a host instance that has a send pipeline with a MIME/SMIME Encoder pipeline component configured to sign messages (&lt;/FONT&gt;&lt;FONT class=font6&gt;&lt;STRONG&gt;Add Signing Cert To Message&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT class=font5&gt; property set to &lt;/FONT&gt;&lt;FONT class=font6&gt;&lt;STRONG&gt;True&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT class=font5&gt;).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="HEIGHT: 39.75pt; mso-yfti-irow: 2" height=53&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: black 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 80pt; HEIGHT: 39.75pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl67 height=53 vAlign=removed width=107 class="xl67"&gt;&lt;FONT face=Verdana&gt;Verifying signature&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 95pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl63 vAlign=removed width=126 class="xl63"&gt;&lt;FONT face=Verdana&gt;Partner's public key&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 369pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: black 0.5pt solid" class=xl68 vAlign=removed width=492 class="xl68"&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Other People store&lt;/STRONG&gt;&lt;FONT class=font5&gt; on each computer that has a host instance that has a receive pipeline with a MIME/SMIME Decoder pipeline component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="HEIGHT: 27pt; mso-yfti-irow: 3" height=36&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: black 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 80pt; HEIGHT: 27pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl67 height=36 vAlign=removed width=107 class="xl67"&gt;&lt;FONT face=Verdana&gt;Decrypting&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 95pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl63 vAlign=removed width=126 class="xl63"&gt;&lt;FONT face=Verdana&gt;Own private key&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 369pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: black 0.5pt solid" class=xl68 vAlign=removed width=492 class="xl68"&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Personal store&lt;/STRONG&gt;&lt;FONT class=font5&gt; for each service account of a host instance that has a receive pipeline with a MIME/SMIME Decoder pipeline component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="HEIGHT: 52.5pt; mso-yfti-irow: 4" height=70&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: black 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 80pt; HEIGHT: 52.5pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl67 height=70 vAlign=removed width=107 class="xl67"&gt;&lt;FONT face=Verdana&gt;Encrypting&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 95pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl63 vAlign=removed width=126 class="xl63"&gt;&lt;FONT face=Verdana&gt;Partner's public key&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: #dddddd 1pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 369pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: black 0.5pt solid" class=xl68 vAlign=removed width=492 class="xl68"&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Other People store&lt;/STRONG&gt;&lt;FONT class=font5&gt; on each computer that has a host instance that has a send pipeline with a MIME/SMIME Encoder pipeline component configured to encrypt messages (&lt;/FONT&gt;&lt;FONT class=font6&gt;&lt;STRONG&gt;Enable encryption&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT class=font5&gt; property set to &lt;/FONT&gt;&lt;FONT class=font6&gt;&lt;STRONG&gt;True)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT class=font5&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="HEIGHT: 26.25pt; mso-yfti-irow: 5; mso-yfti-lastrow: yes" height=35&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; BACKGROUND-COLOR: white; WIDTH: 80pt; HEIGHT: 26.25pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl69 height=35 vAlign=removed width=107 class="xl69"&gt;&lt;FONT face=Verdana&gt;Party resolution&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 95pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #dddddd 1pt solid" class=xl70 vAlign=removed width=126 class="xl70"&gt;&lt;FONT face=Verdana&gt;Partner's public key&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: white; WIDTH: 369pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: black 0.5pt solid" class=xl71 vAlign=removed width=492 class="xl71"&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Other People store&lt;/STRONG&gt;&lt;FONT class=font5&gt; on the administration computer from which you are configuring party resolution.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9898355" width="1" height="1"&gt;</description></item><item><title>Visual Studio 2008 - unable to create project - unable to create itinerary</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/22/visual-studio-2008-unable-to-create-project-unable-to-create-itinerary.aspx</link><pubDate>Tue, 22 Sep 2009 23:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9898174</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9898174</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/22/visual-studio-2008-unable-to-create-project-unable-to-create-itinerary.aspx#comments</comments><description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;While continuing to try to build my Windows Virtual PC machine I encountered a particularly annoying (bug?) issue. I am making a stand alone box with Windows Server 2008, Visual Studio 2008, SQL Server 2008, BizTalk 2009 and including specifically the new ESB 2.0 guidance. I had finally gotten everything installed and configured and I attempted to make my first project from the tutorials and start learning. I opened a project and attempted to add a new item, an itinerary. When the item appeared the name immediately defaulted to the extension .cs (class) and once it was shown in the IDE it displayed the SQL connection screen and some other wierd stuff that I won't go into detail. It was all quite odd. I did some searching on Bing with only lacklustre results when I came across a vague article where someone had trouble creating VS projects. The suggestion was to run the VS 2008 SP1 again to fix that issue. I lost the url for that article (sorry about that). I did however decide to take that advice and run the service pack again and low and behold, it worked! Tomorrow I will be back at the ESB tutorials again!&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Norman&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9898174" width="1" height="1"&gt;</description></item><item><title>"Please wait while the installer finishes determining your disk space requirements"</title><link>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/22/please-wait-while-the-installer-finishes-determining-your-disk-space-requirements.aspx</link><pubDate>Tue, 22 Sep 2009 20:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9898101</guid><dc:creator>Norman Gillis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/biztalkmusings/rsscomments.aspx?WeblogPostID=9898101</wfw:commentRss><comments>http://blogs.msdn.com/b/biztalkmusings/archive/2009/09/22/please-wait-while-the-installer-finishes-determining-your-disk-space-requirements.aspx#comments</comments><description>&lt;P&gt;While attempting to build an ESB 2.0 dev machine I ran into this&amp;nbsp;issue repeatedly. The installer would sit and wait, I would sit and wait but nothing happened. Finally I started closing it and opening the MSI again (whilst doing runas Administrator). This solved the problem for me however I have seen another possible solution as follows:&lt;/P&gt;
&lt;P&gt;Go to command line in elevated security mode, and type:&lt;/P&gt;
&lt;P&gt;msiexec.exe -package MyPackage.msi -qr&lt;/P&gt;
&lt;P&gt;This will basically run the installation package in quiet mode with reduced UI, and apparently circumvent the bug. &lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9898101" width="1" height="1"&gt;</description></item></channel></rss>