SQL2000 distr query issue: can''t pass DateTime parameter to Jet4.0 OLEDB provider!

  • Can anyone help me?

    I have *large* legacy app written in Access. Now I do step-by-step upsize work in order to rewrite it completely. This requires me to upsize some of its modules immediately to SQL server.

    I've linked Access MDBs to SQL Server. Now I run distributed queries like that:

    Select * From MyMDB...Orders Where OrderDate Between '1/1/5' And GETDATE()

    Unfortunately, I can't pass DATETIME parameters to Jet 4.0 providers (collation issue??). So the select statement listed above does a complete scan of the whole Access table.

    I can rewrite some SQLs using OPENQUERY, but I can't effectively deal with dynamic SQL creation, and the legacy application uses dynamic SQL a lot (

    I tried to configure ODBC data provider, but I run into "bad catalog information" error :-(((

    Is there any way to MAKE that provider accept DateTime parameters??

  • I hate to ask this but, is there an index on OrderDate?



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply