August 11, 2008 at 8:13 pm
Comments posted to this topic are about the item Rowversion
August 12, 2008 at 12:10 am
i get an error "'MIN_ACTIVE_ROWVERSION' is not a recognized built-in function name. "..
"Keep Trying"
August 12, 2008 at 6:41 am
MIN_ACTIVE_ROWVERSION (Transact-SQL)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
This question is good but a bit confusing. It is keeping track of of transactions and actually returns a hexadecimal number that can be either cast as an int or a bigint. I kinda figured I would get this one wrong since hexadecimal was not in the list.
I never thought to try casting it as a datetime value - I'm interested in hearing more.
Saw this post after I answered:
http://newsgroups.derkeiler.com/Archive/Comp/comp.databases.ms-sqlserver/2008-03/msg00466.html
Jamie
August 12, 2008 at 6:47 am
HanShi (8/12/2008)
@Chirag: on the internet I've found "Min_active_rowversion() was introduced in SP2 for SQL Server 2005".
That's all well and good, but the question doesn't say "In SQL Server 2005, what data type does this return."
In SQL Server 2000, it returns the error "'min_active_rowversion' is not a recognized function name.".
Given the text of the question, I would say that "Nothing as this is not a real SQL Server function" is as correct as the "correct" answer. 🙂
August 12, 2008 at 6:55 am
The question has been edited to show SQL Server 2005 as the context.
August 12, 2008 at 7:19 am
I got the question right, but actually the answer is not correct. Since the question asked, what does "PRINT MIN_ACTIVE_ROWVERSION()" return, the answer is (from Books Online) "Returns a user-defined message to the client." which is what PRINT returns. Also, technically, MIN_ACTIVE_ROWVERSION() returns "[t]he rowversion data type [which] is also known as timestamp."
August 12, 2008 at 7:47 am
So now we have QotD questions which are Service Pack specific as well as version specific!
For all the production systems I access (all 2K5 SP1) this is a non-existent function ... which is why I gave that answer.
Derek
August 12, 2008 at 8:03 am
I think it's good that we ask questions about things that you don't know about. We can't control when something is introduced, so the question was designed to help you learn about a new feature in SP2.
While the PRINT does return a text value, the value is the rowversion. I've changed this to SELECT to clear up confusion.
August 12, 2008 at 8:22 am
It also says its a Binary(8) value which isn't on the list of possibilities.
August 12, 2008 at 11:49 pm
HanShi (8/12/2008)
@Chirag: on the internet I've found "Min_active_rowversion() was introduced in SP2 for SQL Server 2005".
thanks for the info.
Steve - I think the question ought to have been clear and also we should have done lil bit more research before answering the question.
"Keep Trying"
August 13, 2008 at 2:22 am
I got the question right, but actually the answer is not correct. Since the question asked, what does "PRINT MIN_ACTIVE_ROWVERSION()" return, the answer is
Returns a binary(8) value.
and The rowversion data type is also known as timestamp.
so timestamp is not a correct answer
Correct answer is binary(8) value
Please see
August 13, 2008 at 6:44 am
The correct answer, according to that link, is a rowversion data type. This may be stored as binary(8), but there is a special type for it as well.
August 13, 2008 at 11:22 am
Good Question...
August 17, 2008 at 5:57 pm
good question. was unaware of this function.
Viewing 15 posts - 1 through 15 (of 18 total)
You must be logged in to reply to this topic. Login to reply