Re: SQL Code that is submitted to server changes when run on different clients

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Dale" <DaleDeWitt@xxxxxxxxx> wrote:

> I have an application that works fine when I run it on my own
> client, but when it is run on a different client the SQL code
> that is generated is different.... Let me explain...
>
> I have an access ADP that in one of the reports, it uses a
> User-defined function(UDF) as its recordsource. By watching it
> run using SQL Profiler, I can see that when I run it on my PC,
> the SQL code that is sent to the SQL Server is correct, in that
> it selects all of the columns I was expecting it to. When I run
> it on another machine, the SQL that is generated is.....
> "Select 1 from "dbo"."udf_Author_Mailing"() and not all the
> columns.

Have you verified that the same version of MDAC is installed
on both clients?

Did you try to use "SELECT * FROM dbo.yourUDF()" as Recordsource
for the report?

cheers
Phil

--
Access FAQs: http://www.mvps.org/faq/mvp_faq_links.htm#Access
.



Relevant Pages

  • Re: Realbasic 2008 and MS SQL
    ... client is "sold" to MS SQL for their own reasons. ... in my mind, valentina is the best so far, even local or network. ... Your local app can generate reports from local databases, ...
    (comp.lang.basic.realbasic)
  • Re: Dont understand what version of SQL to install
    ... I'm talking about developing and testing databases for my client and ... To my XP, I can add SQL Developer 2008 to develop (I guess I should say, ... So I can use SQL Developer 2008 to create a database in standard 2005, ... installed on Client OSs such as Windows Vista. ...
    (microsoft.public.sqlserver.setup)
  • Re: DataSet.GetChanges() in RowChanged(DataRowAction.Add)
    ... have you considered SQL Express and use ... > I realize now that I didn't describe well how the client application is ... > Framework installed on the client machine, but not any SQL Server). ... > 20 tables in different relations with eachother in the database, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Oracle 10g2 LIKE operator and case-insensitive issues
    ... SQL> CREATE INDEX IDXTESTCASE ON AUTENTI; ... Predicate Information: ... 338 bytes received via SQL*Net from client ... sorts (memory) ...
    (comp.databases.oracle.server)
  • Re: Oracle 10g2 LIKE operator and case-insensitive issues
    ... SQL> CREATE INDEX IDXTESTCASE ON AUTENTI; ... Predicate Information: ... 338 bytes received via SQL*Net from client ... sorts (memory) ...
    (comp.databases.oracle.server)