| View previous topic :: View next topic |
| Author |
Message |
Mike Guest
|
Posted: Mon Aug 09, 2004 2:20 pm Post subject: [Microsoft][ODBC SQL Server Driver]Optional feature not impl |
|
|
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
|
Posted: Mon Aug 09, 2004 3:11 pm Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not |
|
|
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
|
Posted: Tue Aug 10, 2004 1:57 am Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not |
|
|
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
|
Posted: Tue Aug 10, 2004 4:53 am Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not |
|
|
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
|
Posted: Wed Aug 11, 2004 4:49 am Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not |
|
|
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
|
Posted: Mon Dec 20, 2004 1:56 pm Post subject: Re: [Microsoft][ODBC SQL Server Driver]Optional feature not |
|
|
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 |
|
 |
|