32 lines
831 B
C#
32 lines
831 B
C#
using Sdaleo;
|
|
using Sdaleo.Systems.Advantage;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace _app
|
|
{
|
|
class Program
|
|
{
|
|
|
|
static void Main(string[] args)
|
|
{
|
|
AdvantageCredential cred = new AdvantageCredential(@"\\medisoft_server\medidata\EMBARK RECOVERY LLC\mwddf.add", "user", "password", AdvantageCredential.ServerType.REMOTE_LOCAL);
|
|
|
|
DB db = DB.Create(cred);
|
|
DBRetVal retVal = db.FillDataTable("Select Top 10 FROM MWPAT");
|
|
if (!retVal.IsValid)
|
|
{
|
|
Console.WriteLine(retVal.ErrorMsg);
|
|
return;
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("Fetched successfully");
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|