Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 1st, 2004, 08:42 PM
rchiu2hk rchiu2hk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Hong Kong
Posts: 41 rchiu2hk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 4 sec
Reputation Power: 6
Send a message via AIM to rchiu2hk Send a message via Yahoo to rchiu2hk
Connection.begintrans

Dear all,

I am using VB to connect to Oracle Database
I have three questions:
(1) Sql Statement is :
select [field1], [field2] from table1 where [field1]='ABC' order by [field1]

The backet cannot work. It is big problem for me as the SQL statement is generated by the program and it need "" symbol for oracle. Any solutions:

Sql="select " & "[" & text1 & "] , [ " & text2 & " ] from table1.

(2)

set cm.activeconnection=cn ' cn is anther connection
cm.commandtype= adcmdtype
cm.commandtext=CSQL ' csql is sql statement

.....

cm(0)="VarType" ' it prompt the error
cm(1)=....

the error is "set parameter info has not been executed"

(3) connectionname.begintrans

prompt the error.
I think whether the connection has been created or the connection string parameter problem???
What is your view? Please help/.
__________________
Real, Nice and Beautiful are my hungry for knowledges.

Reply With Quote
  #2  
Old January 1st, 2004, 09:06 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
Plz add the inverted comma in the end of the sql statment:Sql="select " & "[" & text1 & "] , [ " & text2 & " ] from table1"...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Connection.begintrans


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway