Viewing 15 posts - 11,926 through 11,940 (of 15,381 total)
The point of ddl and sample data is to make it easy for the people helping you. You didn't post ddl or sample data in a consumable format. Think create...
May 21, 2012 at 12:43 pm
Hi and welcome to SSC!!! I will be happy to help. The first and most obvious thing is that you do not need a loop for this. I can't give...
May 21, 2012 at 12:11 pm
pawana.paul (5/21/2012)
All,I don't see login 'ashok' neither on SQL Instance nor Windows Server.
That would certainly explain why the attempt is failing.
Something somewhere is trying to make a db connection with...
May 21, 2012 at 11:26 am
SCOPE_IDENTITY cannot be returning multiple values. It doesn't work like that. The return type is numeric(38,0).
http://msdn.microsoft.com/en-us/library/ms190315.aspx
As Lynn said, if you can provide some details we can provide some help.
May 21, 2012 at 10:48 am
ColdCoffee (5/16/2012)
Sean Lange (5/16/2012)
helal.mobasher 13209 (5/16/2012)
Thank you for bringing this to my attention. Does this look better now?Helal
Thanks for the ddl and sample data. Based on your sample data what...
May 16, 2012 at 11:54 am
helal.mobasher 13209 (5/16/2012)
Thank you for bringing this to my attention. Does this look better now?Helal
Thanks for the ddl and sample data. Based on your sample data what should the desired...
May 16, 2012 at 11:48 am
Jeff Moden (5/16/2012)
capn.hector (5/16/2012)
Sean Lange (5/16/2012)
OMG :w00t:
Jeff Moden posted a loop.
There is only darkness now, there is no sunshine. The mayans were correct.
Parden me, I must send out...
May 16, 2012 at 11:08 am
It was a 2 minute brief example of using exists to demonstrate the task at hand. I certainly was not expecting a code review. 😀
Your points are all certainly valid.
May 16, 2012 at 8:56 am
njdevils39 (5/16/2012)
Sean Lange (5/15/2012)
Sean Lange (5/7/2012)
You're welcome. Does this mean you finally have your answer? 😛
I assume by your silence that you did in fact get your issue resolved. It...
May 16, 2012 at 8:31 am
natha (5/16/2012)
UPDATE table1 t1
SET t1.col1 = (SELECT TOP 1 t0.col0 FROM table0 t0
WHERE t0.date_of_call < t1.date_of_call
AND (t0.dur_connection =...
May 16, 2012 at 8:20 am
Here is a simple example using exists to accomplish the type of behavior you are describing.
alter proc MyProc
(
@SomethingElse int
)
as begin
select top 5 * from sys.sysobjects as Something
if exists(select top 3...
May 16, 2012 at 8:10 am
Jeff Moden (5/15/2012)
Sean Lange (5/15/2012)
I would suggest that the looping concept above is not going to be very good for performance.
Actually, that's not true for these types of problems. ...
May 16, 2012 at 7:27 am
OMG :w00t:
Jeff Moden posted a loop.
There is only darkness now, there is no sunshine. The mayans were correct.
Parden me, I must send out an email blast to our...
May 16, 2012 at 7:26 am
SQLKnowItAll (5/15/2012)
We keep trying to fix your code, but you keep posting the same thing. We can't help you if you keep posting the same thing over and over.
What Jared...
May 16, 2012 at 7:15 am
Viewing 15 posts - 11,926 through 11,940 (of 15,381 total)