Unix Technical Forum

Problems with Access SQl pass-through query.

This is a discussion on Problems with Access SQl pass-through query. within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> This is really weird. I have a query in sql that runs like this: SELECT * FROM uvTTExport option ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:26 PM
Al Blake
 
Posts: n/a
Default Problems with Access SQl pass-through query.

This is really weird. I have a query in sql that runs like this:

SELECT * FROM uvTTExport option (force order)

It runs fine and returns 800+ records.
I need to run this query in Access so I can use some Visual Basic + MAPI
code to process the records... so I created a pass-through query with the
same syntax. It runs perfectly but returns no records! In both cases I am sa
and have dbo permissions on the database (both in SSQL query analyzer and
the ODBC I created for the pass-through).

I have spent hours on this can and can't work out what is going on.
Anyone got any ideas?

Al Blake, Australia


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:26 PM
Mary Chipman
 
Posts: n/a
Default Re: Problems with Access SQl pass-through query.

Is the "returns records" property of the query set to true?

-- Mary
MCW Technologies
http://www.mcwtech.com

On Tue, 30 Sep 2003 19:46:15 +1000, "Al Blake" <al@blakes.net> wrote:

>This is really weird. I have a query in sql that runs like this:
>
>SELECT * FROM uvTTExport option (force order)
>
>It runs fine and returns 800+ records.
>I need to run this query in Access so I can use some Visual Basic + MAPI
>code to process the records... so I created a pass-through query with the
>same syntax. It runs perfectly but returns no records! In both cases I am sa
>and have dbo permissions on the database (both in SSQL query analyzer and
>the ODBC I created for the pass-through).
>
>I have spent hours on this can and can't work out what is going on.
>Anyone got any ideas?
>
>Al Blake, Australia
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com