Re: Bug or limitation in the functionality of sp_OAMethod
From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 07/28/04
- Next message: Aaron [SQL Server MVP]: "Re: SQL Server Data Log not in order? Help please"
- Previous message: Dan Guzman: "Re: funny exception (Error: 208, Severity: 16, State: 1)"
- In reply to: anonymous_at_discussions.microsoft.com: "Re: Bug or limitation in the functionality of sp_OAMethod"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 27 Jul 2004 20:34:32 -0500
> This problem seems to basic not to have an easy solution.
SQL 2005?
:-)
-- Hope this helps. Dan Guzman SQL Server MVP <anonymous@discussions.microsoft.com> wrote in message news:546d01c4742f$77342ed0$a601280a@phx.gbl... > That occured to me as well, but it defeats the purpose of > code reuse IMO. > > This problem seems to basic not to have an easy solution. > >-----Original Message----- > > > >"James Hall" <ahall4@isdn.net> wrote in message > >news:547a01c47416$364d13a0$a501280a@phx.gbl... > >> It appears that passing a "space" (ASCII 32) character > (s) > >> using a CHAR data type through a parameter in the > >> execution of sp_OAMethod actually results in an empty > >> string being passed to the COM object instead. > >> > >> This appears to be occurring because the string that is > >> passed as a parameter has all trailing spaces trimmed > >> like you would expect from a varchar data type in a > >> column. > >> > >> I have confirmed that the stored procedure sp_OAMethod > >> IS passing an empty string to the COM object's method > >> when in fact a single space character is specified. > >> > > > >There are tons of frustrating pitfals like this with the > sp_OAxxx > >procedures. COM and TSQL are just very different > animals. > > > >I almost always end up writting COM wrapper object > specifically designed to > >work with sp_OAxxx and call my real COM component. > > > >David > > > > > >. > >
- Next message: Aaron [SQL Server MVP]: "Re: SQL Server Data Log not in order? Help please"
- Previous message: Dan Guzman: "Re: funny exception (Error: 208, Severity: 16, State: 1)"
- In reply to: anonymous_at_discussions.microsoft.com: "Re: Bug or limitation in the functionality of sp_OAMethod"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|