[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • 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

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

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