Click here to Skip to main content
15,905,612 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried this coding but not working

string sql = "select * from smp_try";

OracleCommand cmd = new OracleCommand(sql, conn);

cmd.CommandType = CommandType.Text;

OracleDataAdapter da = new OracleDataAdapter(cmd)

DataTable dt =new DataTable("smp_try");

da.Fill(dt);

dataGridView1.DataSource = dt;
Posted

1 solution

I think an easier option is to use the DataSet designer of Visual Studio to generate the DataSet and DataTables through the AddNewDataSource wizard. In this regard I think the following articles may be helpful
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/buildingnetapplications/BuildingNETApplications.htm[^]
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/hol08/dotnet/getstarted-c/getstarted_c_otn.htm[^]
http://msdn.microsoft.com/en-US/library/xexk8kx3(v=vs.80).aspx[^]
http://connectionstrings.com/[^]
 
Share this answer
 
Comments
kevin_ze 26-Apr-12 3:21am    
thanks tht link was useful to me
VJ Reddy 26-Apr-12 3:38am    
You're welcome.
Thank you for the response and accepting the solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900