Jump to content

C# connect SQL

- - - - -

  • Please log in to reply
3 replies to this topic

#1
bodiroga

bodiroga

    Newbie

  • Members
  • Pip
  • 5 posts
Hey people, i am new in C# and have a few questions.How can i make connection in Visual studio 2008 to Oracle. What command can i use to execute some sql commands. For, example i whant to get some queru from table, with command --select * from .. ---- if you have any example preasle post and i with get throw it and learn it.....thanks :::)))

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
You'll need to download and install the Oracle Data Access Components (ODAC) for Visual Studio in order to connect to the Oracle database and perform SQL queries from your C# code. Here's the link to ODAC:
Oracle Data Access Components (ODAC) for Windows

Oracle has lots of good documentation on their site on how to use their components. The link I gave you should be a good starting place. You can also try Googling the term, "ODAC C# tutorial".
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3
bodiroga

bodiroga

    Newbie

  • Members
  • Pip
  • 5 posts
thanks man :)

#4
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
Microsoft also provides a built in Oracle Connector. (add a reference to System.Data.OracleClient from your GAC)

I also personally recommend downloading the above mentioned. Just remember that this will become a dependency for any deployment out of your development environment.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users