Solved

SQL SERVER STORED PROCEDURE INFO

Posted on 2007-12-04
2
181 Views
Last Modified: 2010-03-20
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
Comment
Question by:TroyCrowe
2 Comments
 
LVL 11

Accepted Solution

by:
fanopoe earned 50 total points
ID: 20404884
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
 

Author Comment

by:TroyCrowe
ID: 20404902
thanks for your input fanopoe
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question