How to get oledb connection?
Answers were Sorted based on User's Feedback
using OLEDB connection we can connect the MS-ACCESS,Sql
Server,Oracle.
here i given the coding for connect the oledb connection
OleDbConnection con = new OleDbConnection();
con.ConnectionString="Provider=Microsoft.Jet.OleDb.4.0;Data
Source=databasenamewithpath;";
con.Open();
then u can use the dataset or datareader
OleDbCommand cmd = new OleDbCommand(sql,con);
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
OleDbDataReader reader;
reader = cmd.ExecuteReader();
OleDbDataAdapter oda = new OleDbDataAdapter(sql,con);
DataSet ds = new DataSet();
oda.Fill(ds,"tablename");
i hope that these are enough.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / guest
oledb provid universal connection strintg .using oledb we
can conntect to any data base.
| Is This Answer Correct ? | 2 Yes | 2 No |
What is sqlconnection and sqlcommand?
What is the provider and namespaces being used to access oracle database?
Which property is used to check whether a DataReader is closed or opened?
i want 2 pass values(enterd in textbox)to table in sql server without using stored procedure in c#.plz tell me code with an example.
How can we check that some changes have been made to dataset since it was loaded?
What are all the different authentication techniques used to connect to MS SQL Server?
Which provider is used to connect ms access, oracle, etc…?
Name which operations can you not perform on an ado.net dataset?
What are the different ado.net namespaces are available in .net?
Which is the feature of ado.net?
What is a data control clerk?
What are the namespaces used in ado.net for data access?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)