Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to fetch the microsecond part in SQL Server

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: how to fetch the microsecond part in SQL Server
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: 6970
Location: porcelain throne

PostPosted: Tue Mar 04, 2008 6:09 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IBM HTTP web server - redirect http t... vasanthz All Other Mainframe Topics 4 Thu May 17, 2018 12:32 am
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 5 Fri Apr 20, 2018 4:17 pm
No new posts Defining SSL Port in TCPIP for DB2 Se... Yolanda Harvey TSO/ISPF 1 Wed Mar 28, 2018 7:33 pm
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us