Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this acceptable way to set multiple values in one lin
Message
From
01/06/2012 10:43:14
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01545039
Message ID:
01545055
Views:
35
Depends on how many variables I'm setting. Generally, if 3 or less I go with one line - otherwise it gets too 'busy' and can make it difficult to maintain, especially for those who 'inherit' the code. I can't tell you how many times I've had to resort to 'Find' to find where a variable is getting 'reset' and finding it in the middle of a 30 variable store statement.


>
>I see now. I understand that you prefer multiple lines. But if I use my syntax (SELECT...) I can put it all in one line. I am just trying to make my stored procedure, where I have to initialized tons of variable to a empty string, shorter (fewer lines so that it would be easier to read). Do you see anything wrong with this SELECT of multiple variables?
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform