If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > multiple-step ole db operation generated errors

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-05, 17:48
eheidrich eheidrich is offline
Registered User
 
Join Date: Oct 2005
Posts: 2
multiple-step ole db operation generated errors

Well, the SQL is quite simple, I just use a pattern solution that the oledb seems to find problems solving the SQL. The database I am working with is SQL Server 2000 which is running on a Windows 2000 server local.

select top 1 * from user
where
(user_ID = :id or :All = 1) and
(dep_ID = :dep or :AllDep = 1) and
(card_num = :card or :AllCards = 1)

It might appear a little strange but this SQL fits perfectly to my code on many situations, and as the system also work with other database I wouldn´t like to change it. The same syntax works fine with postgreSQL and oracle.

I am using dbexpress technology. The SQL is in a SQLQuery which has a DataSetProvider connected to, which also have a ClientDataSet connected to. This last one is the one I use to open the query an pass the parameters.

If someone can give me any help I'll eternely greatfull.

Thanks!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On