Running the sample application
To run this sample application, perform the following steps:
Start Visual Studio and open the solution file for the sample application.
The solution file for this sample is named RequesterConsoleApplication.sln. The solution file is in the CSHARPRequesterConsoleApplication folder inside the Samples folder.
Open the source file.
Open the Visual Studio Solution Explorer and open the Class1.cs file.
Update the connection string.
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.
Build the RequesterConsoleApplication.exe.
Choose "Build RequesterConsoleApplication" in the Build menu.
Open a console window.
From the Start menu, choose All Programs >> Accessories >> Command Prompt. In the console window, open the directory where you built the RequesterConsoleApplication.exe.
Run the RequesterConsoleApplication.
Type RequesterConsoleApplication.exe and press Enter. When the application completes, the console window displays XML data for Aaron Fitz Electric.