IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to fetch the microsecond part in SQL Server


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashish tech

New User


Joined: 05 Dec 2007
Posts: 7
Location: Delhi

PostPosted: Tue Mar 04, 2008 3:11 pm
Reply with quote

In DB2 , we use MICROSECOND(Timestamp field) function to fetch miscrosecond part of a timestamp field.
What would be the similar function in SQL SERVER????
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Mar 04, 2008 6:09 pm
Reply with quote

sql server comes with tons of documentation. in addition, there is the microsoft web site with several sub-sites concerned with sql.

try the microsoft urls provided in sql server documentation as well as every help function in the sql servier gui's.
Back to top
View user's profile Send private message
abhishekmdwivedi

New User


Joined: 22 Aug 2006
Posts: 95
Location: india

PostPosted: Wed Mar 05, 2008 1:03 pm
Reply with quote

Hi ashish,

SQL Server 2005 allows you to store time till the accuracy of milliseconds only. If you want to fetch the milliseconds , you may use DATEPART function in SQL Server. (NO Microsecond Function)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Code Multi Row fetch in PL1 program PL/I & Assembler 1
No new posts Need to fetch data from so many DB2 t... DB2 9
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts FTP datasets to server CLIST & REXX 13
Search our Forums:

Back to Top