FUNCTION FOR READING DATA IN C# VB.NET
==========================================================================
using System.Data.SqlClient;// NAME SPACE FOR SQL CONNECTION
using System.Collections;
namespace WindowsApplication1
{
class Myclass
{
SqlConnection con = new SqlConnection("server=.;trusted_connection=true;database=RVDTEST");// CONNECTION STRING
public DataTable call(string call)// FUNCTION FOR READING DATA
{
SqlDataAdapter da = new SqlDataAdapter(call, con);
DataTable dt = new DataTable();
da.Fill(dt);
return dt;
}
}
}
No comments:
Post a Comment