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. :)
C# Developer
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 393.4K pointsPosted Nov 11, 2006, 5:37 AM EST
spyder.snyper15 pointsPosted Nov 12, 2006, 1:42 PM EST
Jatno Koes2 pointsPosted Nov 12, 2006, 3:50 PM EST
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>
/// Summary description for CDALExp.
/// </summary>
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;
}
}
}
}