Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        
            
                
                    
                        
                            
                                | Author | 
                                
                                 Topic  | 
                             
                            
                                    | 
                                         funkyspirit 
                                        Starting Member 
                                         
                                        
                                        9 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2011-10-07 : 09:26:56
                                            
  | 
                                             
                                            
                                            | Hi,I am working on a payment page which gets data from an sql 2005 database. I have a query that keeps returning an "Expected end of statement" error. I have tried a lot of different ways of writing it but the error remains. Here is the piece of code that generates the error:dim rs as new ADODB.recordsetset rs = db.Execute"SELECT * FROM Java_Forms WHERE AppletTransID ='" & CStr(transId)"'", DOLData, 1, 3The language I use is VBScriptDoes anyone have an idea?Thanks a lot. | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     webfred 
                                    Master Smack Fu Yak Hacker 
                                     
                                    
                                    8781 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2011-10-07 : 11:37:54
                                          
  | 
                                         
                                        
                                          Don't know but MAYBE...quote: Originally posted by funkyspirit Hi,I am working on a payment page which gets data from an sql 2005 database. I have a query that keeps returning an "Expected end of statement" error. I have tried a lot of different ways of writing it but the error remains. Here is the piece of code that generates the error:dim rs as new ADODB.recordsetset rs = db.Execute"SELECT * FROM Java_Forms WHERE AppletTransID ='" & CStr(transId)&"'", DOLData, 1, 3The language I use is VBScriptDoes anyone have an idea?Thanks a lot.
   No, you're never too old to Yak'n'Roll if you're too young to die.  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |