.Net Basic

This blogs gives introduction to C#.NET programming for beginners. This blogs assumes that you have no programming experience whatsoever. It's a lot easier than you think, and can be a very rewarding hobby!after Refer this blog

19 June 2008

Fill Into DataSet

Using Oledb

DataSet DtaSet=new DataSet();

OleDbDataAdapter OAdp = new OleDbDataAdapter(StrSQL, StrCon);

//StrCon is Connection string

//StrSQL is Sql Quories

OAdp.Fill(DtaSet);

Using SqlClient

DataSet DtaSet=new DataSet();

SqlDataAdapter OAdp = new SqlDataAdapter(StrSQL, StrCon);

//StrCon is Connection string

//StrSQL is Sql Quories

SqlAdp.Fill(DtaSet);






0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home