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: 6968
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 Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Technical Support Engineer (DB2 on z/... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:14 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts RMM: scratching a volume that RMM thi... Hervey Martinez IBM Tools 0 Mon May 15, 2017 8:51 pm

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