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".enter image description here

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -