• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

SQL SERVER STORED PROCEDURE INFO

This is a very basic question however I am not sure what the following line is stating.

USE [SpeakerheartDev]  -  this is the first statement in the procedure.

I believe that it is stating to use the SpeakerheartDev datatbase, but what is the need for this?  If the procedure is created within that database, what is the purpose?
0
TroyCrowe
Asked:
TroyCrowe
1 Solution
 
fanopoeCommented:
so that any calls made from an outside source will be explicitly routed to the correct location. It's not required code, bit it's not bad code.


hth
0
 
TroyCroweAuthor Commented:
thanks for your input fanopoe
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now