Viewing 15 posts - 1,981 through 1,995 (of 2,647 total)
DeanORenO (1/11/2012)
Please review the specs on RAISEERROR
I think I was misunderstanding you. Now that you have this, what is the goal? Why would you want a job to fail...
Jared
CE - Microsoft
January 11, 2012 at 1:23 pm
Brain fart today... Erasing irrelevant comment...
Jared
CE - Microsoft
January 11, 2012 at 1:11 pm
DeanORenO (1/11/2012)
If you know the code for this, then, please by all means put it in the threadOh and BTW this code does work
Interesting... So this:
IF @@ROWCOUNT = 0
BEGIN
RAISERROR('You need...
Jared
CE - Microsoft
January 11, 2012 at 1:01 pm
DeanORenO (1/11/2012)
and I figured it out here is my answer for my...
Jared
CE - Microsoft
January 11, 2012 at 12:55 pm
There's actually a recent thread with some discussion on this: http://www.sqlservercentral.com/Forums/Topic1233529-391-1.aspx
Jared
CE - Microsoft
January 11, 2012 at 12:47 pm
Jason Selburg (1/11/2012)
Otherwise, this gets what you...
Jared
CE - Microsoft
January 11, 2012 at 12:27 pm
I just force it to fail. SELECT * FROM tableThatDoesNotExist
Jared
CE - Microsoft
January 11, 2012 at 10:51 am
select
pub.srvname,
sub.srvname,
publisher_db,
subscriber_db,
a.publication,...
Jared
CE - Microsoft
January 11, 2012 at 10:07 am
We have a script... Let me find it for you and I will post it shortly.
Jared
CE - Microsoft
January 11, 2012 at 9:55 am
jpomfret7 (1/11/2012)
USE test
DBCC SHRINKFILE(2,20)
Since we already know that the fileid is 2, go ahead and try this.
Hooray!! That worked!
Did some additional testing there must be something weird going on...
Jared
CE - Microsoft
January 11, 2012 at 8:14 am
jpomfret7 (1/10/2012)
To be safe, you really should run against test.sys.database_files
The file name and info matches in sys.database_files, sys.master_files, sys.sysaltfiles and dbo.sysfiles...
what is the recovery model of your database?
We are in...
Jared
CE - Microsoft
January 11, 2012 at 6:03 am
JagWalia (1/10/2012)
Jared
CE - Microsoft
January 10, 2012 at 3:46 pm
JagWalia (1/10/2012)
I agree Lutz, but I am just curious to see what you all think.
Ignoring the fact that these questions and answers are not worded correctly, it is clear with...
Jared
CE - Microsoft
January 10, 2012 at 3:15 pm
mdonald 98074 (1/10/2012)
Jared
CE - Microsoft
January 10, 2012 at 2:55 pm
Ninja's_RGR'us (1/10/2012)
SQLKnowItAll (1/10/2012)
Why are these tricky?Because a lot of the right answers are actually wrong or incomplete.
I always hated those super beginner questions.
Just follow the multiple choice...
Jared
CE - Microsoft
January 10, 2012 at 2:49 pm
Viewing 15 posts - 1,981 through 1,995 (of 2,647 total)