Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Matthias Preuter
MVP
4
Views
1
Comments
How can i call a t-sql userdefined function?
Question
I want to execute a T-SQL Userdefined function from a linkedserver (SRVX), and tried it the following way:
Create Advanced Query with, a @inputvar input variable and the following: sql string
@inputvar = "('2007-02-01', 1, '2008-03-01','2009-02-28')"
SELECT Peak, OffPeak FROM SRVX.Pricing.dbo.Fn_Prices @inputvar
but this returns the error:
Unexpected 'SRVX.Pricing' in SQL statement
Tiago Simões
Staff
Hi Mathias,
Maybe you can try it just
SELECT Peak, OffPeak FROM Fn_Prices @inputvar
(omitting the SRVX.Pricing.dbo part)
Cheers,
Tiago Simões
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...