Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

executing SQL statements in SQL Server

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, everyone!
Has anyone seen the SQL statement structured like this one:
execute(exec sp_somename....)?
If yes, could you, please, give me some advice on what it is and how to use it.
Preferably, with a simple example.
Thank you.
 
Well "Stored Procedures" are like macro's in other languages or Program. Its a series of commands that SQL server recognizes and do certain things to the database. Just about anything imaginable can be done in stored procedure. Create new tables, add records etc.

So execute(exec sp_somename....)?
means Execute (or run) a stored procedure called SP_somename
SP_ is usually always the first letters so you can identify it as such.

I don't think you need both Execute and Exec together they both mean the same thing.
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top