Viewing 15 posts - 76 through 90 (of 131 total)
I'm curious about how @@FETCH_STATUS tells you anything about whether the cursor's open or not. Surely this just tells you about the status of any fetches that have been...
November 25, 2010 at 3:58 am
Use the CURSOR_STATUS function. See BOL for the parameters and return values.
November 25, 2010 at 3:26 am
Sorry. I just noticed this is the RS forum. I'm an idiot.
November 18, 2010 at 8:30 am
Going back to the original question, you say that you think you're running 2005 because a 2008 script failed.
Could it just be that your database thinks it's still 2005, even...
November 8, 2010 at 3:11 am
I would have had to give it a little more consideration if the options had included 1,3 and 3,1.
August 23, 2010 at 4:36 am
I agree with Christian, and think that this is a very important point to make. From doing peer reviews, I've found that it's a very common misconception that DISTINCT...
July 26, 2010 at 2:56 am
I really need to stop being so mistrusting. The right answer was so obvious, I assumed it had to be a trick question and got it wrong :pinch:.
May 26, 2010 at 3:25 am
If you're getting the "1" printed, but not "uniqueno = "+@uniqueno then the error has to be one of these lines:
SELECT @uniqueno = ResumePrefix+ResumeSuffix+ResumeLastNo FROM HC_SYSCONFIG
UPDATE HC_SYSCONFIG SET ResumeLastNo =...
April 22, 2010 at 4:08 am
At the risk of uttering a heresy, is SQL even the best place to do the comparison? Assuming the records are being keyed into some front-end system, might it...
April 21, 2010 at 5:09 am
I just tried it in SQL2000 (my original attempt was in 2008), and it does the same, so I'd guess this is what is meant to happen, and it's probably...
April 19, 2010 at 9:17 am
A more interesting result is from this:
DECLARE @sid int
DECLARE @table Table (KeyID int primary key,KeyData varchar(5))
DECLARE @idtable Table (KeyID int identity primary key,KeyData varchar(5))
INSERT INTO @idtable (KeyData) VALUES('Test1')
INSERT...
April 19, 2010 at 2:40 am
I'll probably get shot down in flames for this one, but I still think that MS Access linked into SQL is great for quick and (very) dirty querying. (Just...
April 9, 2010 at 4:57 am
You've copied over some unprintable characters with the posted code. Replace all the '?'s with tabs (or some other white space).
February 19, 2010 at 5:53 am
Viewing 15 posts - 76 through 90 (of 131 total)