Viewing 15 posts - 3,496 through 3,510 (of 5,504 total)
Another option not depending on the CONCAT_NULL_YIELDS_NULL setting would be using (col1 IS NULL OR col2 IS NULL) instead of (col1 +col2) IS NULL...
May 17, 2010 at 3:06 pm
I'm sorry!! I missed the second part of the requirement...
Here's the expanded constraint:
ALTER TABLE #temp
ADD CONSTRAINT chkCol1Col2 CHECK ( (ISNULL(col1,col2) IS NOT NULL) AND (col1 + col2 IS NULL));
It...
May 17, 2010 at 3:00 pm
I don't really understand what your table actually looks like.
Would you please post the table def, some sample data, your expected result and what you've tried so far? For details...
May 17, 2010 at 2:16 pm
rpatil22 (5/17/2010)
I want if last run of job failed then that date and time and same job when previously failed.
So, I guess sp_help_jobhistory together with ROW_NUMBER() will help here. Please...
May 17, 2010 at 2:10 pm
Please have a look at BOL (BooksOnLine, the SQL Server gelp system usually installed together with SQL Server, accessible via F1 from Management Studio). Search for the "CREATE XML SCHEMA...
May 17, 2010 at 2:07 pm
Would a CHECK constraint help?
ALTER TABLE YourTable
ADD CONSTRAINT chkCol1Col2 CHECK ( ISNULL(col1,col2) IS NOT NULL );
This constraint would allow you to insert a NULL value either for Col1 or Col2...
May 17, 2010 at 2:04 pm
Henry Treftz (5/17/2010)
It is a currently running query. So what I want to do is basically do send of a raiserror to an existing connection...
What exactly do...
May 17, 2010 at 1:52 pm
Richard M. (5/17/2010)
lmu92 (5/17/2010)
Not sure what you're trying to do but maybe RAISERROR will help (see BOL for details).
... you can't "inject" an error to another SPID....
As far...
May 17, 2010 at 1:22 pm
Not sure what you're trying to do but maybe RAISERROR will help (see BOL for details).
May 17, 2010 at 12:36 pm
Another strong hint: you might want to remove your email address. If people feel the need to provide you with a sample they can drop you a PM...
May 17, 2010 at 12:33 pm
The requirement is not clear. Do you want to list only jobs where the last run and the one before failed, job that have failed twice (as per available log...
May 17, 2010 at 12:31 pm
neelsmail (5/16/2010)
I thought I did.. but perhaps I didn't understand your question.
I am trying to call the...
May 16, 2010 at 12:10 pm
So, what does that sproc do that takes 3min?
May 16, 2010 at 3:21 am
Mad-Dog (5/16/2010)
ok.how can i do the service broker event to call this sp?
THX
Nope, it's the other way around: you SEND a message to the Service Broker queue and within the...
May 16, 2010 at 3:04 am
Viewing 15 posts - 3,496 through 3,510 (of 5,504 total)