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 

[Microsoft][ODBC SQL Server Driver]Optional feature not impl

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Mike
Guest





PostPosted: Mon Aug 09, 2004 2:20 pm    Post subject: [Microsoft][ODBC SQL Server Driver]Optional feature not impl Reply with quote



Hi,
Is there anybody who can hel in resolving this error.

I am using MSSQL 2000 and Delphi 7 enterprise. This error appears when I
execute the following TADOQuery:

Select * from WKRequisitions a, WKJobCard b
Where a.Transtype = :mtranstype
And (a.JobCard = b.JobCard)
And ((Transdate >= :mfrom) And (Transdate <= :mto))
Order by cast(a.TransNo as int)

Thanks for your Help!!


Back to top
Vitali Kalinin
Guest





PostPosted: Mon Aug 09, 2004 3:11 pm    Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not Reply with quote



If you don't have any particular reason for using ODBC but not native OLEDB
driver I advice you to switch to OLEDB.

Regards,
Vitali
"Mike" <myqro (AT) yahoo (DOT) com> сообщил/сообщила в новостях следующее:
news:41178858 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,
Is there anybody who can hel in resolving this error.

I am using MSSQL 2000 and Delphi 7 enterprise. This error appears when I
execute the following TADOQuery:

Select * from WKRequisitions a, WKJobCard b
Where a.Transtype = :mtranstype
And (a.JobCard = b.JobCard)
And ((Transdate >= :mfrom) And (Transdate <= :mto))
Order by cast(a.TransNo as int)

Thanks for your Help!!





Back to top
Del Murray
Guest





PostPosted: Tue Aug 10, 2004 1:57 am    Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not Reply with quote



What is the error ?

you have some columns from A qualified and some not. If there are conflicts
(duplicate column names) then you need to qualify everything.

Try this

Select * from WKRequisitions a
join WKJobCard b on b.jobcard = a.jobcard
where a.Transtype = :mtranstype and a.Transdate between :mfrom and :mto
Order by cast(a.TransNo as int)


Back to top
Mike
Guest





PostPosted: Tue Aug 10, 2004 4:53 am    Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not Reply with quote

Hi,
I have tried all the suggestions but nothing seems to work, (But I am not
getting the ODBC Error now). That is I am not getting the results for the
query. If I run the same query in the query analyser of SQL I get my result.

Any more suggestions???

Thanks,
Mike
"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote

Quote:

Is there anybody who can hel in resolving this error.

I am using MSSQL 2000 and Delphi 7 enterprise. This error appears when I
execute the following TADOQuery:

I suggest you use the OleDB driver for SQL server
There are database features that don't work with ODBC
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



Back to top
Mike
Guest





PostPosted: Wed Aug 11, 2004 4:49 am    Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not Reply with quote

The senario is like this. I have a table WKRequisition which contains
transactions
entered on a day to day basis. I want to print an audit trail for a
specified period say '01/08/2004' so when i put my query as all transactions
between '01/08/2004' and '01/08/2004', the query returns 0 records. But if i
query for transactions between '01/08/2004' and '02/08/2004' I get the
records for '01/08/2004'.

Regards
Mike

"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote

Quote:

I have tried all the suggestions but nothing seems to work, (But I am not
getting the ODBC Error now). That is I am not getting the results for the
query. If I run the same query in the query analyser of SQL I get my
result.

Any more suggestions???

If you can provide some information on what you do get when you run this
query
in Delphi or better yet if you can provide a similar query that uses the
Northwind sample database so I have something to test I might be able to
help
you.
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



Back to top
Damien THOUVENIN
Guest





PostPosted: Mon Dec 20, 2004 1:56 pm    Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not Reply with quote

Try updating your MDAC version; I had similar problems with parameters in
sub-select SQL statements on some machines and not on the others; I finally
found that the machines running MDAC 2.7 or above don't raise the exception.


"Mike" <myqro (AT) yahoo (DOT) com> a Иcrit dans le message de news:
[email]411854f8 (AT) newsgroups (DOT) borland.com[/email]...
Quote:
Hi,
I have tried all the suggestions but nothing seems to work, (But I am not
getting the ODBC Error now). That is I am not getting the results for the
query. If I run the same query in the query analyser of SQL I get my
result.

Any more suggestions???

Thanks,
Mike
"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote in message
news:n0fgh0l04h8e50k43h5p6digahsqp43n4v (AT) 4ax (DOT) com...

Is there anybody who can hel in resolving this error.

I am using MSSQL 2000 and Delphi 7 enterprise. This error appears when I
execute the following TADOQuery:

I suggest you use the OleDB driver for SQL server
There are database features that don't work with ODBC
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) 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.