View Single Post
  #2 (permalink)  
Old January 13th, 2005, 02:44 PM
BrianWren BrianWren is offline
Friend of Wrox
Points: 5,269, Level: 30
Points: 5,269, Level: 30 Points: 5,269, Level: 30 Points: 5,269, Level: 30
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 1 Time in 1 Post
Default

I believe that your SQL should not have a terminating “;”.

That character is used to signify the end of a line/command/etc., but .CommandText will know where the line ends, and so the ‘;’ is unnecessary. (Anything unnecessary usually causes an error...)

[BTW: This question should probably be in Beginning VB.NET... Just a thought.]
Reply With Quote