November 2010 Entries

Directly querying the BizTalk database for suspended messages

I needed to write a quick job that would notify support folks whenever a BizTalk message was suspended. Yes, you could use WMI and/or MOM, but since we're not currently using anything along those lines this was the quickest way to go. Run this against the BizTalkMsgDb database: SELECT nvcName as ApplicationName, DATEADD(hh,-6,dtSuspendTime... as DateSuspended, -- Subtract the appropriate hours for your timezone nvcAdapter as Adapter, nvcURI as URI, nvcErrorDescription as ErrorDescription FROM ......

Free 2-day Azure bootcamp in Dallas

MSDN Events Present: Azure 2 Day Bootcamp Event ID: 1032468997 Best Western Dallas Hotel and Conference Center Ballroom A 8051 Lyndon B Johnson Frwy Event Overview This is a 2-day deep dive program to help prepare you to deliver solutions on the Windows Azure Platform. We have worked to bring the region’s best Azure experts together to teach you how to work in the cloud. Each day will be filled with training, discussion, reviewing real scenarios, and hands on labs. Snacks and drinks will be provided, ......

The new way to configure EDI trading partners in BizTalk 2010

I'm assuming you already know the basics of EDI and party configuration in BizTalk before reading this... In BizTalk 2009, you created a party, then right-clicked to set the EDI Properties of that party (both as sender and receiver). The home organization (i.e. you) did not require a partner for itself. In 2010, each organization, including yourself, is represented as a trading partner (or party). Configuring a trading partner agreement in 2010 is very similar to 2009; you just have your options ......

Switching between Activities (screens...) in Android

This tutorial will show how to quickly create an Activity, and switch to another Activity using a ListView or a page full of buttons. .Net folks can think of an Activity as a concept similar to a Form in a .Net Windows app. Each Activity you create is a new page in your app. An activity has essentially four states (blatantly stolen from the Android dev guide): If an activity in the foreground of the screen (at the top of the stack), it is active or running. If an activity has lost focus but is still ......

Creating a new Android Project in Eclipse

What do the various fields on the New Android Project window in Eclipse mean? Project name: The name of the folder where your project will be created. Build Target: You want to choose as low of a version as possible unless you absolutely need to use something in a later API. Application name: This is the human-readable title for your application — the name that will appear on the Android device. Package name: This is the package namespace (following the same rules as for packages in the Java programming ......

Installing Visual Basic 6.0 on Windows 7

Even though I'm running Windows 7, I still need to fire up Visual Basic 6 every once in a while to maintain my employer's ancient apps. The steps below were put together from a few posts on different sites; mostly for Vista, but so far everything has been running smoothly on 7 for me. Create a 0-byte file in the C:\Windows directory called msjava.dll. Don't just install via the Autorun executable; instead browse the Visual Studio 6 CD (or folder), right-click Setup.exe and select Run As Administrator. ......

Working with 5010 schemas in BizTalk (part 2)

Assuming that you've already got a HIPAA 4010 application running, and you've now downloaded and examined the 5010 schema, the next step is going to be determing what's changed from 4010 to 5010. For that, you're going to need something more than just eyeballing the two schemas side by side. Washington Publishing Company has a nice set of Change Description Guides that contain all of the information from the 5010 guides and all of the segments from the 4010A1 guides along with a change description ......

SQL Server error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created

I needed to downgrade SQL Server 2008 from Enterprise to Standard on a Server 2008 machine, and and kept getting this error when trying to uninstall: SQL Server Setup has encountered the following error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created It turns out the setup utility really doesn't like having ANY other windows open - I closed the Server Manager window and it worked ......

Optional parameters and named arguments in VS 2010

In Visual Studio 2010, you now have the ability to use optional parameters and named arguments. Optional parameters are declared with a default value in the method signature, and allow you to omit the arguments when invoking the method, while names arguments allow you to provide and argument using the name of the desired parameter, instead of depending on the position. This is the one I'm most interested in, since it's going to make for more readable code and less risk when modifying method signatures. ......