Trying to create a SQL function in Visual Studio – nothing happens - TechRepublic
Question
September 29, 2020 at 04:42 PM
apn72

Trying to create a SQL function in Visual Studio – nothing happens

by apn72 . Updated 5 years, 8 months ago

I’m creating my first function for a SQL Server database using Visual Studio.
In the DB Explorer, I right-click Function, then Add new scalar function and amend the default script to what I want; it has no error squigglies. The script window has only one button – Update database – I click it – this produces a dialogue saying “User actions, create, [dbo].ValidateEmail] (function)” – I click the update database button.
However, when I right-click Functions in the DB explorer & choose Refresh, nothing is there.
What can I be doing wrong? Thank you for any useful help!

All Comments