Viewing 4 posts - 136 through 139 (of 139 total)
Hello,
Can we do this through Transact SQL?
September 11, 2007 at 7:47 am
Try this....
SELECT CAST(DATEPART(hh, GETDATE()) AS VARCHAR(2)) + ':' + CAST(DATEPART(mi, GETDATE()) AS VARCHAR(2))+ ':' + CAST(DATEPART(ss, GETDATE()) AS VARCHAR(2))+ ':' + CAST(DATEPART(ms, GETDATE()) AS VARCHAR(3))
Result
------------
6:56:29:803
(1 row(s) affected)
Regards
CK Shaiju.
September 13, 2004 at 11:50 pm
Why can't you use a user defined data type for this..??
Just try it...Execute this script in Query Analyser.
or u can create all these things mannually.
/****************************************************************************/
/* Creating user defined datetype */
EXEC sp_addtype...
August 11, 2004 at 1:01 am
Very nice article, I always like these naming conventions... to be a standard in always...
By the way one question, Why you used the trigger name(tr) and index names(IDX) at the...
July 29, 2004 at 10:45 pm
Viewing 4 posts - 136 through 139 (of 139 total)