To run this sample application, perform the following steps:
The solution file for this sample is named RequesterConsoleApplication.sln. The solution file is in the CSHARPRequesterConsoleApplication folder inside the Samples folder.
Open the Visual Studio Solution Explorer and open the Class1.cs file.
Locate the variable named sConnectionString and set the Data Source value to the name of your Microsoft Dynamics GP SQL Server. Set the Initial Catalog value to TWO.
Choose “Build RequesterConsoleApplication” in the Build menu.
From the Start menu, choose All Programs >> Accessories >> Command Prompt. In the console window, open the directory where you built the RequesterConsoleApplication.exe.
Type RequesterConsoleApplication.exe and press Enter. When the application completes, the console window displays XML data for Aaron Fitz Electric.