Michèle Tahay
unread,Mar 23, 2012, 8:09:17 AM3/23/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to michel...@transics.com
Hello,
I have a powerbuilder 11.5 application (build 3127) which connects to
a sql server database (2008).
When I take a trace of this database I see things like these:
declare @p1 int
set @p1=NULL
exec sp_prepexec @p1 output,N'@P1 float',N'SELECT blahcolumn from
table where keyColumn = @P1',1
select @p1
I see that the variable is declared correctly, but in the call to
sp_prepexec suddenly a float is used.
I checked the retrieval argument in the datawindows in question, and
it is a number not a decimal. The column that is used in the where
clause is an integer, in the datawindow it shows as a long (which is
normal I guess). There is no apparent reason why a float would be used
in the query.
Now, the query doesn't fail but the execution plan could be better.
Could anyone explain this? Any way to solve it? Google search did not
bring me any answers (yet).
Kind greetings,
Michèle Tahay