Viewing 15 posts - 51,151 through 51,165 (of 59,091 total)
jitendrapatil2006 (4/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 6:04 am
Yes... SQL Server Triggers are different than a lot of other RDBMS. In Oracle, for instance, you would do just as you have done except your would add "FOR...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2008 at 5:51 am
karthikeyan (4/11/2008)
which one is the efficient way ?
Ok... I admit it... I'm being a bit nasty... A "Senior Software Engineer" should know this. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 6:15 pm
Not true... you can use a TEXT datatype as a parameter.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 6:13 pm
LEN does not include trailing spaces... try the same thing with DATALENGTH.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 6:12 pm
I see what you posted and I'm still not sure what you want. Can you be a bit more descriptive, please?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 6:10 pm
Cool... if that's what you actually wanted.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 6:06 pm
The spit function works just fine and doesn't miss a thing. If, however, you don't have the data in the table to match, an INNER JOIN may give the...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 6:05 pm
ORDER BY in an UPDATE is only possible in a subquery and then you would have to use TOP.
All that not-with-standing, I wish the OP would post some data and...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 5:53 pm
As Barry has shown, ROLLUP should do it. For more information, lookup GROUPING under CUBE in Books Online.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 5:50 pm
Dangskie (4/2/2008)
Hi. Can you help me with this? - In terms of simultaneous users access, what's more efficient, a table or a view?
An indexed view will usually blow...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 9:45 am
Ian Yates (4/13/2008)
If multiple rows in W match up with TIEWF then you could have the update happening multiple times which isn't really predicable.
Heh... why sure it is... it'll...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 9:24 am
Thanks, SQLBlue. :blush: Very happy it does what you want and I sure do appreciate the compliment... you made my weekend. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2008 at 9:18 am
Sergiy (4/12/2008)
Actually you can.Just declare your variable as a parameter of SP.
Never too late to say thanks... you showed me that cool trick a couple of years ago. Thanks...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2008 at 11:42 pm
Heh... yeah... and some generic data with a generic table structure along with your generic code and a generic sample of what the output should look like would be a...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2008 at 11:38 pm
Viewing 15 posts - 51,151 through 51,165 (of 59,091 total)