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
 question about t-sql

Author  Topic 

zaidqis
Yak Posting Veteran

63 Posts

Posted - 2006-05-28 : 17:17:26
hi all
this is my first post
i hope you can help me
my question is :
does t-sql = condition statements and while statments ,for next ..etc ??
thank you

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-05-28 : 18:16:20
it supports while
but there's usually no need for that.

what are you trying to do?

Go with the flow & have fun! Else fight the flow
Blog thingie: [URL="http://weblogs.sqlteam.com/mladenp"]
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-05-29 : 01:44:55
T-SQL supports if, while, etc. The usage depends on what you want to do

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

zaidqis
Yak Posting Veteran

63 Posts

Posted - 2006-05-29 : 06:04:52
thank you for answer me
i want to do :
creat store produce and use parameters
if value which user enter it >0 then
do something
else
do something

that is what i need to do
thank you
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-05-29 : 06:21:59
somthing like this ??


If (@pParam >0)
Begin
--- Enter your code here
End
Else
Begin
--- Enter you code here
End


If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-05-29 : 07:11:25
Read about CREATE PROCEDURE in sql server help file
Also read
http://databases.about.com/od/sqlserver/l/aastoredprocs.htm

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -