Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing Scalar-Valued Function in SSMS
Message
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Executing Scalar-Valued Function in SSMS
Divers
Thread ID:
01637729
Message ID:
01637729
Vues:
58
Hi,

I created a Scalar-Valued Function (e.g. named 'MyFunction'). Then I try to execute it from SSMS as
use [MyDatabase]
declare @teststring char(10) = ''
set @teststring = 'fadasfasf'
select dbo.MyFunction( @teststring )
The problem is that the last line (select dbo.MyFunction .. has a squiggly red under line with message 'Cannot find either column dbo or the user-define function or aggregate "dbo.MyFunction" or the name is ambiguous.

What am I missing?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform