Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Language for stored procedures?

Author  Topic 

Rock_query
Yak Posting Veteran

55 Posts

Posted - 2013-04-21 : 22:51:11
When you use IF statements, Loops and declare variables in SQL are you using stored procedures?

When you use loops, variables, etc. what programming language do you use? Are you still using SQL or are you actually using a particular programming language such as C#?

MuMu88
Aged Yak Warrior

549 Posts

Posted - 2013-04-21 : 23:01:13
T-SQL

If are interested you can find more about it at: http://en.wikipedia.org/wiki/Transact-SQL
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-04-22 : 00:48:26
you can use loops variable etc inside a procedure or you can even write it as a batch query. But stored procedures have advantage of caching and reusing the plans (unless using WITH RECOMPILE) hence thats the recommended way.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -