Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing Scalar-Valued Function in SSMS
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
01637729
Message ID:
01637731
Vues:
45
Yes. Because the test code (below) works, it returns the correct value. And I just tried the code again (I saved the script to a folder) and now the red underline is gone. I must have been doing something wrong.
Thank you.

>Are you sure that function exists in the database?
>
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform