Viewing 15 posts - 61 through 75 (of 532 total)
Think of it as a proc within your proc. The main two reasons are for execution plan re-use and security.
January 17, 2012 at 5:22 pm
Take a look at this link and see if the condition described fits your circumstance.
January 17, 2012 at 3:25 pm
Generally I would advise doing the formatting in the presentation layer, but if you have to do it in the query:
select CONVERT(CHAR(8),DATEADD(SECOND,PackageDuration, 0), 108) + ' ' + CONVERT(CHAR(24), DATEOFRUN,...
January 13, 2012 at 5:48 pm
This is something I've seen in the past for warehousing, but I've also heard it's a bad practice because you don't gain anything and it takes away date manipulations (such...
January 8, 2012 at 11:36 pm
Very good point ... it most definitely does have a huge impact on outer joins.
January 7, 2012 at 10:48 pm
Revenant (1/4/2012)
January 6, 2012 at 11:49 pm
For small amounts of data it's not a big deal, but any kind of string manipulation gets horrible really fast in T-SQL if you have any kind of volume of...
January 6, 2012 at 9:10 pm
Ninja's_RGR'us (1/6/2012)
I use on to make the jointhen I use where to filter data I don't need after the join is made
I think this is fairly standard and generally good...
January 6, 2012 at 8:57 pm
Read how a merge is supposed to be used here.
Your update statement is wrong for starters. The updates and inserts are inherently performed against the target .... whereas you're...
January 6, 2012 at 8:40 pm
To be clear I want to make sure this point is understood ...
With the code you have given, the catch on the outer proc is never going to be executed....
January 5, 2012 at 9:41 am
To me, it seems like it would be cleaner to handle the transaction completely in the inner proc. Otherwise, if you can't, if it fails 3 times in the...
January 5, 2012 at 9:37 am
Anyone against SOPA is either making money by stealing others intellectual property or they are not familiar with what the proposed legislation actually say or both.
I would like to see...
January 4, 2012 at 6:37 pm
erikpoker (1/4/2012)
Im selecting values from a table a:
SELECT a.col1, a.col2, a.col3, a.foreignkey-value
FROM mytable a
WHERE something=something
If the foreign-key-value is null i would like to insert it into the parent table on...
January 4, 2012 at 6:31 pm
I'm guessing there are some normalization issues based on what you've provided. If you would like additional help, it would be helpful to us if you provide more specific...
January 4, 2012 at 6:06 pm
Actually, I need to read better. This would give you the string to the next space, or it would give you the string to the end of the value...
January 4, 2012 at 1:29 pm
Viewing 15 posts - 61 through 75 (of 532 total)