Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

OLEDB Error Failed on SP

    In my script I am executing a sp but on the reload I am getting the error OLEDB Error Failed SP_Name

Any help please?

7 Replies
maxgro
MVP
MVP

please could you post your script and your error?

Not applicable
Author

My script for the SQL is

Cost:

Load Class, ][Financial Period] AS FinancialPeriod  ;

sql execute CostQlikView

The script has a OLEDB connection has the script includes connection to a SQL Server db and has other load statements to tables.

maxgro
MVP
MVP

try

Cost:

Load *;

sql execute CostQlikView;

you have a ]

Not applicable
Author

thats worked.  Why would that be?  Does that mean that in the SP i should rename the fields that have [a and b  ] should be made into a single field as aandb

maxgro
MVP
MVP

yes you can rename field

but you have an error or two

]

;

Cost:

Load Class, ][Financial Period] AS FinancialPeriod  ;

sql execute CostQlikView;

for example this works on my sql server

T:

load id_banca, [cod_banca] as newfield;

sql execute sisim_stat..sp_test '%BANCA%';

Not applicable
Author

This what i have when it fails

Cost:

Load [P&L Classification] ,[Point] AS POD ;

sql execute C_CostQlikView;

maxgro
MVP
MVP

perhaps you have a wrong field name

this works for me

qlikview script is

T:

load [P&L Classification], [Point] AS POD;

sql execute sisim_stat..sp_test2;

sql server procedure is

alter PROCEDURE [dbo].[sp_test2]

AS

BEGIN

  SET NOCOUNT ON;

  SELECT id_banca [P&L Classification], cod_banca [Point] from d001_banche; -

END

RESULT is

a.png