 | RemAdoExecute Method |
Paperwork .Net Kütüphanesi
Verilen SQL sorgusunu çalıştırır.(Reposity üzerinde)
Namespace:
Paperwork.Connect
Assembly:
Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntaxpublic a_GenericResult Execute(
string sql,
string pluginName = "",
int Timeout = 300
)
Parameters
- sql
- Type: SystemString
Çalıştırılacak SQL sorgusu. - pluginName (Optional)
- Type: SystemString
Dışarıdaki herhangi bir veri tabanına erişmek için tanımlanır. - Timeout (Optional)
- Type: SystemInt32
Bağlantının süresi belirtilir.
Return Value
Type:
a_GenericResulta_GenericResult nesnesi içinde , ErrorCode=0 ise işlem başarılıdır. Aksi taktirde Result ve Message alanları kontrol ediniz.
Examples
Bu örnek Execute metodunun nasıl çağıralacağını gösterir.
static void sqlExecute()
{
string sql = "UPDATE T_SOZLESME SET EXPIRED = 'T' WHERE EXPIRE_DATE < GETDATE()";
a_GenericResult retval = p.rAdo.Execute(sql);
Console.WriteLine(retval.Result);
Console.ReadLine();
}
See Also