| | |
Quotes in sql server query error.!
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
hello guys.!
I just have 1 problem right here. I have a variable declaration below:
When i execute the query, it returns error because the myVar value contains Quotes and sql server does not allow it because it is its a reserve character.
Pls help.!
Thank you for your time.
God bless on this mother earth.!
I just have 1 problem right here. I have a variable declaration below:
vb Syntax (Toggle Plain Text)
myVar ="Argie's" "Select * from [my Table] where [my Field] ='" & myVar & "';"
When i execute the query, it returns error because the myVar value contains Quotes and sql server does not allow it because it is its a reserve character.
Pls help.!
Thank you for your time.
God bless on this mother earth.!
Last edited by blocker; Jun 1st, 2009 at 2:03 am.
•
•
•
•
hello guys.!
I just have 1 problem right here. I have a variable declaration below:
vb Syntax (Toggle Plain Text)
myVar ="Argie's" "Select * from [my Table] where [my Field] ='" & myVar & "';"
When i execute the query, it returns error because the myVar value contains Quotes and sql server does not allow it because it is its a reserve character.
Pls help.!
Thank you for your time.
God bless on this mother earth.!
![]() |
Similar Threads
- Sql server connection using code in VB.NET (VB.NET)
- sql server unable to open connection (ASP.NET)
- SQL Server Developer, Manchester, UK (Software Development Job Offers)
- sql seerver 2005 installation error (MS SQL)
- Connecting Coldfusion to SQL Server (ColdFusion)
- check this sql server login error (ASP.NET)
- SQL Server DBA - " Hot " (Software Development Job Offers)
- SQL Server DBA (Software Development Job Offers)
- Connecting to a SQL Server Database using VB (VB.NET)
- SQL server error: 18452 - connection to SQL error (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Data reports Grand total issue
- Next Thread: Save hyperterminal data in database
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





