Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Query language and DCS > ExternalDataSource - Cannot call SP

Forum

Search UsersRules
ExternalDataSource - Cannot call SP
#1
Just came
Points:: 0
Joined:: Mar 23, 2016

Hello,

I'm having some problems calling a SQL Server stored procedure using ExternalDataSource.

I added the stored procedure in the functions tab by providing the connection string.

The call must return a table and it runs because I tested it în SQL Server.

When I call IT, I get this error:
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.myProcedure", or the name is ambiguous.

Can somebody help me?

Profile
#2
Interested
Points:: 0
Joined:: Dec 4, 2017

Dear Sebastian,

Make sure that in External data source function wizard, you define the table (with its fields) the procedure returns. Set the table kind to "Expression".

Also, make sure that in External data source table wizard, you have your stored procedure mapped correctly.


Best regards,
Vladimir Gurov

Profile
#3
Just came
Points:: 0
Joined:: Mar 23, 2016

The procedure returns an user defined table type, so I have manually configured this type in external data source, because it is not visible when using the wizard.

What sould I write in the expression of this table?

Profile
#4
Just came
Points:: 0
Joined:: Mar 23, 2016

Can you please send me an example? Or I can send you an empty database containing the tables and a cf to show me how can I do this.

Profile
#5
Interested
Points:: 0
Joined:: Dec 4, 2017

Dear Sebastian,

Please send us (to int@1c.com) your infobase's configuration (.cf file) and the external database.

Best regards,
Vladimir Gurov

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.