Hello mates,
I'm not that old in C# .NET, I want to talk to some of the professionals who are currently developing their applicaitons in C#. If there's any, kindly post in this thread. :)
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jatno KoesPosted Nov 12, 2006, 8:50 PM
I have write a DAL for MsSql Server as below, could anybody help me how to write code DAL for
ms Access file. Thanks.
using System;
namespace Expedisi.DAL
{
///
/// Summary description for CDALExp.
///
public class CDALExp
{
private string strConnectionString="Initial Catalog=Expedisi;Data Source=LAPTOP;user id=sa;Password=sa;";
public CDALExp()
{
//
// TODO: Add constructor logic here
//
}
public System.Data.DataSet ExecuteSQL(string strSQLSyntax)
{
try
{
System.Data.SqlClient.SqlDataAdapter sda = new System.Data.SqlClient.SqlDataAdapter(strSQLSyntax, strConnectionString);
System.Data.DataSet dsset = new System.Data.DataSet("Dataku");
sda.Fill(dsset);
return dsset;
}
catch (System.Exception ex)
{
throw ex;
}
}
}
}
spyder.snyperPosted Nov 12, 2006, 6:42 PM
Mahesh ChandPosted Nov 11, 2006, 10:37 AM