C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Pl.Solve This Query


Posted Date: 16 Oct 2008      Total Responses: 2

Posted By: sheetal jagdale       Member Level: Silver     Points: 1


Hello all ,

Pl check if the foll query is correct or not ,

mySql = "SELECT description, details, listPrice, map, imageUrl, imageUrl2, imageUrl3, imageUrl4, sku, formQuantity, hasPersonalization, freeShipping, isDonation, searchKeywords, user1, user2, user3,categories.categoryDesc as categoryDesc FROM (products join categories_products on categories_products.idProduct=products.idProduct) join categories on
categories_products.idCategory = categories.idCategory WHERE idProduct=" &pidProduct& " AND active=-1 AND idStore=" &pIdStore &"

This is very urgent as i am trying this from last 2 hrs & get stuck again & again

I am getting the error as
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant


Thanxs in advanced
Sheetal J




Responses

Author: Roopesh Babu Valluru    16 Oct 2008Member Level: GoldRating:     Points: 1
I didnot get y u used (...)..except that everything looks fine for me... .. i am not sure but try to remove that and run the application ... hope it will work...

All The Best...


Author: RDRaja    25 Oct 2008Member Level: SilverRating:     Points: 5
Try this Query
---------------
mySql = "SELECT description, details, listPrice, map, imageUrl, imageUrl2, imageUrl3, imageUrl4, sku, formQuantity, hasPersonalization, freeShipping, isDonation, searchKeywords, user1, user2, user3,categories.categoryDesc as categoryDesc FROM (products join categories_products on categories_products.idProduct=products.idProduct) join categories on
categories_products.idCategory = categories.idCategory WHERE idProduct=" &pidProduct& " AND active=-1 AND idStore=" &pIdStore

Remove the &" Characters

By
RdRaja



Post Reply
You must Sign In to post a response.
Next : identity
Previous : stored procedures
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

accuconference

Contact Us    Privacy Policy    Terms Of Use