smss - Change focus of SQL Server Management Studio -
day # 2 of sql -
i trying run function made yesterday, smss looking @ "master" database , not "metrics" database won't run - says "invalid object name".
i know simple question, i'm not sure correct term is. need change "scope"? "focus"? "active database"? not sure how on google.
add line use metrics
before function call.
you can change database using dropdown list on toolbar in top left of management studio.
and of course, can qualify call this:
select metrics.dbo.splitstringcomma()
adding use yourdatabasename
@ start of scripts habit into. that's own preference.
Comments
Post a Comment