Question: When I run the below code it runs successfully. drop function udffullname go create function dbo.udffullname(@studentid int) returns int as begin return (select concat(lastname, ',',firstname)

When I run the below code it runs successfully. drop function udffullname go create function dbo.udffullname(@studentid int) returns int as begin return (select concat(lastname, ',',firstname) as Lastandfirst from student) end but when i got to test it I get the below error message. Can you let me know why? I am not sure what is wrong with my code that it will not select my attributes from my code. select studentid,firstname,lastname, [dbo].[udffullname].[studentid] from student join dbo.udffullname(12) as functionfullname on student.studentid = dbo.functionfullname.studentid; Msg 208, Level 16, State 3, Line 16 Invalid object name 'dbo.udffullname'.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!