BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDataset and DataSetProducer problem with SQL stmnt

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet WebSnap
View previous topic :: View next topic  
Author Message
Alex
Guest





PostPosted: Thu Jun 22, 2006 7:09 pm    Post subject: TDataset and DataSetProducer problem with SQL stmnt Reply with quote



Hello

I have an SQL statement:
SELECT tblProducts.Name, tblProducts.Description,
tblProducts.SuggestedUsage, tblProducts.PartNumber,
tblProducts.CategoryID, tblProducts.SubCategoryID,
tblProducts.VendorID, tblProducts.VendorPrice,
tblProducts.VendorPartNumber, tblProducts.Precaution,
tblProductsDetail.Size, tblProductsDetail.Price,
tblProductsDetail.Type, tblProductsDetail.QtyOnHand,
tblProductsDetail.IngredientName, tblProductsDetail.IngredientAmount,
tblProductsDetail.AmountType, tblProductsDetail.SuperIngredient,
tblProductsItemDetail.ProductID, tblProductsItemDetail.Size,
tblProductsItemDetail.Price, tblProductsItemDetail.Type
FROM (tblProducts INNER JOIN tblProductsDetail ON tblProducts.ProductID
= tblProductsDetail.ProductID) INNER JOIN tblProductsItemDetail ON
tblProducts.ProductID = tblProductsItemDetail.ProductID;

When I insert this into the ADODataset with a connection and set
active=true

I get a messagebox "Unspecified error"

If I change the statement to a simpler one like "Select * from
tblProducts"
it works and the TDatasetProducer works also

I am guessing its a problem with ADO or something ..
any suggestions on this?
Back to top
Riki Wiki
Guest





PostPosted: Fri Jun 23, 2006 2:30 pm    Post subject: Re: TDataset and DataSetProducer problem with SQL stmnt Reply with quote



On 22 Jun 2006 07:09:59 -0700, Alex wrote:

Quote:
any suggestions on this?

Hoi Alex

You need to repost your message on the Borland news server to make
everybody see it and possibly answer your message.

How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet WebSnap All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.