101 teja 5000
102 raviteja 2000
102 Ravi xyz
103 ravi 6000
Interested in mastering .NET? Learn more about ".NET Training" in this blog post.
C/S Architecture
Managed connections work with the help of the TDS (Tabular data String) Protocol.
Unmanaged connections work with the help of OLEDB(object linking and Embedding Databases ) provides.
Group 1:-
common namespace
Group 2:-
Unmanaged Name Spaces 4.System. Data. OLEDB (Supports all type of databases)
Group 3:-
Managed Namespaces
Group 4:-
ODBC Namespace
Group 5:-
LINQ Related Name Spaces
EX 1:- With oracle over Unmanaged connection
A procedure to find provider names automatically.
“one. UDL” and close it File name extension universal data Linker
Using System. Data. Oledb;
Code for Button 1 _click
{
Oledb connection con = new oledb connection
(“User id = Scott ; password = tiger; provider = msdaora.1”);
Con. open ();
Message Box .show (“Connections is ok”);
String q = “Create Table c 194 (Eno number, E name varchar 2 (10), Sql number)”;
Oledb command cmd = new oledb command (q, con);
Try {
cmd. Execute Non query ()
Message Box. Show (“Table is created ”);
}
Catch (oledb Exception oe)
{
Message Box. Show (oe. Message e );
}
Insert into c 194 value (101, ‘Teja’, 5000)
String s = “Insert in to c 194 values (“ + text box1.Text + “, ‘ “ + text box2. Text + “, ‘ “ + text box 3.text +”)”;
Message Box .show (s); Oledb _connection con = new loedb connection (“provider = ms da or a.1 ; user id = scott; password = tiger “);
Con. Open (); Oledb command cmd = new oledb command (s, con);
cmd. Execute Non query (); Message Box. Show (“Record is added”);
}
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.