Solved

SQL SERVER STORED PROCEDURE INFO

Posted on 2007-12-04
2
172 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
Comment Utility
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
Comment Utility
thanks for your input fanopoe
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Creating and Managing Databases with phpMyAdmin in cPanel.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now