Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle query in Visual Web Developer 2005

Status
Not open for further replies.

jcs1953

IS-IT--Management
Nov 28, 2007
53
US
This is part of a query that runs fine in Oracle.
SELECT TESTS.TEST_NAME "Test",RESULTS.RESULT_NUMERIC "Results" ,REQ_PANELS.RUN_DATE "Date"........

In Visual Web Developer it's
Dim ocmdSelect As New OracleCommand("SELECT TESTS.TEST_NAME "Test",RESULTS.RESULT_NUMERIC "Results,REQ_PANELS.RUN_DATE "Date" .....

And of course this doesn't work because of the ". I've tried ' and () and everything else I can think of. I even tried REQ_PANELS.RUN_DATE As Date but Date can't be used this way.

Any suggestions on how to solve this?
 
The whole command has to be wrapped in ":
ie: "Select .... "

If there are quotes that need to be inside of the Outer quotes then either use single quotes (') or 2 double quotes("")

Something like:
Dim ocmdSelect As New OracleCommand("SELECT TESTS.TEST_NAME ""Test"", ...
 
The double quotes worked great. Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top