skip to main | skip to sidebar

Hocus Pocus with Microsoft BI Tools

By discovering the Microsoft BI Tools and implementing BI platform, I'm improving my technical and design BI knowledge. Sometime, I took a lot of time to find what I searched. On a real project, Time is money. That's the reason why I would like to share these knowledge with you.

Wednesday, September 2, 2009

Get the date without the time

PL/SQL
SELECT TRUNC(SYSDATE) --That should get you today's date


T-SQL
SELECT DATEADD(d,DATEDIFF(d,0,GETDATE()),0) --That should get you today's date
Posted by jeremiev at 7:24 AM
Labels: PL/SQL, SQL, T_SQL

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (2)
    • ►  May (1)
      • SSIS - Tinyint datatype issue
    • ►  January (1)
      • Time dimension in SSAS
  • ▼  2009 (2)
    • ▼  September (2)
      • Get the date without the time
      • SSIS - Kimball SCD Component vs. SCD Component
  • ►  2008 (8)
    • ►  June (1)
      • SQL Server 2005 :Insert a flat file in a OLTP tabl...
    • ►  May (4)
      • SSAS 2005 : My Best Practices
      • SSAS 2005 : Aggregation...Important thing to know!...
      • SQL Server 2005 : How to copy a database using SQL...
      • SSIS 2005 : How to write annotations in a package?...
    • ►  April (3)
      • SSRS 2005 : How to create a dataset of member from...
      • SSRS 2005 : Using Stored Procedure with Report Par...
      • SSRS 2005 : How to format a textbox using a condit...

About Me

jeremiev
View my complete profile