473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

vb.Net 2005, how to connect to database

hi buddy!
am working in vb.Net 2005 version . how to connect to data base(oracle) and do DML operation in the table
Apr 17 '07 #1
3 3405
hi buddy!
am working in vb.Net 2005 version . how to connect to data base(oracle) and do DML operation in the table


first to go ODBC connection means choose data source inthat select DSN from that select DS files then choose ODBC for ORACLE say finishe
then
imports system.data
imports system.data.odbc
in form_load
dim cn as new odbcconnection("dsn=name given by u;uid=scott;pwd=tiger")
dim adp as new odbcdataadapter("select * from emp")
dim ds as new dataset
adp.fill(ds)
datagrid1.datasource = ds.tables(0)
end sub
Apr 19 '07 #2
first to go ODBC connection means choose data source inthat select DSN from that select DS files then choose ODBC for ORACLE say finishe
then
imports system.data
imports system.data.odbc
in form_load
dim cn as new odbcconnection("dsn=name given by u;uid=scott;pwd=tiger")
dim adp as new odbcdataadapter("select * from emp")
dim ds as new dataset
adp.fill(ds)
datagrid1.datasource = ds.tables(0)
end sub

thank u for u r reply

plz help in detail how to connect the database. do i need to configure in the ODBC connection. if am trying to connect the oracle in the add connection dialogue box it shows error saying that ORA-12154: TNS :could not resolve service name. plz send me answer how to rectify this error.
Apr 19 '07 #3
thank u for u r reply

plz help in detail how to connect the database. do i need to configure in the ODBC connection. if am trying to connect the oracle in the add connection dialogue box it shows error saying that ORA-12154: TNS :could not resolve service name. plz send me answer how to rectify this error.
i did not get ur question clearly
i tink problem while installing
again install
n see
Apr 24 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: BravesCharm | last post by:
I am trying to connect to SQL Server 2005 Express with Visual C# 2005 Express using this code: static void Main(string args) { SqlConnection conn = new SqlConnection(@"Data...
4
by: rcamarda | last post by:
I wish to use something other than sql's SA account user to connect to my data warehouse, so I created a user in our active directory user. Ill use dw as the new user as example. after I created...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
9
by: =?Utf-8?B?RnJpdHo=?= | last post by:
Hi all, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: ======= The...
8
by: BD | last post by:
I am developing C# win form app to work with remote database on SQL Server 2005. Problem scenario is as follows: 1. a form is open that has downloaded dataset to local cache 2. computer is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.