Quantcast
Channel: VBForums - Database Development
Viewing all articles
Browse latest Browse all 2918

[RESOLVED] Visual Basic App That Inserts Data Into a Oracle Database

$
0
0
Hello. I've been struggling with an issue for 2 days now. I have a server running Microsoft Server 2008. It has an Oracle 11g database on it. I also have an additional computer that has SQL Developer 4.0 that I use to connect to the database and execute insert statements to insert into the database. What I want to do is use Visual Studio 2010 to create a very basic form/app that takes my input in 7 text fields, and pushes the data to the appropriate fields in the Oracle database on my server. I can create the form no problem. The issue is how I can actually connect the app to the database. After doing a ton of online research, I've noticed there's some sort of Oracle Connection that you need to create or something. When I attempted to follow other's examples, Visual Studio 2010 gives me a ton of errors. I'm able to successfully connect to the database using Visual Studio 2010 through the Add Data Source>Oracle feature. When I do this, it shows me my table and columns, but when I try to save this as a data set in Visual Studio 2010, it gives me an error. I think the issue is needing to somehow create this connection to my database through a function or procedure. I want to have 2 buttons on my form: 1 for connecting to the database and the other to insert the data from the text fields into the database. My server name is "SERVER1" and my database name for this example is "DATABASE". Can someone please help me figure out how I actually make the connection and insert this data appropriately in the database? Thank you in advance.

Viewing all articles
Browse latest Browse all 2918

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>