odbc error 42S02

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

umurata
Posts: 2
Joined: Tue Jan 25, 2011 3:30 am

odbc error 42S02

Postby umurata » Fri Jul 08, 2011 6:20 am

When I am trying to load from table every things ok
But When I try to execute stored procedure [database].[dbo].[zzzz] with parameters
wfopen(wf=xxx,page=d,type=odbc,timeout=120) D:\Eviews\Dsn\xxx.dsn "Execute [database].[dbo].[zzzz] 'xxx', '04/01/2005', '07/07/2011'" @keep *

gives Odbc error 42s02

Eviews 7.2 and windows 7
What am I doing wrong
Thanks

EViews Steve
EViews Developer
Posts: 844
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: odbc error 42S02

Postby EViews Steve » Fri Jul 08, 2011 8:37 am

Try this:

Code: Select all

wfopen(wf=xxx,page=d,type=odbc,timeout=120) D:\Eviews\Dsn\xxx.dsn "{call [database].[dbo].[zzzz]('xxx', '04/01/2005', '07/07/2011')}" @keep *
You basically need to put curly braces around the entire thing, change the 'execute' to a 'call', and finally put parenthesis around the parameters.

Steve

umurata
Posts: 2
Joined: Tue Jan 25, 2011 3:30 am

Re: odbc error 42S02

Postby umurata » Fri Jul 08, 2011 3:13 pm

It worked.
Thank you


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests