Click here to Skip to main content
15,900,907 members
Home / Discussions / Database
   

Database

 
GeneralRe: Accessing a "default" database in a linked server Pin
Wendelius21-Jul-08 18:01
mentorWendelius21-Jul-08 18:01 
GeneralRe: Accessing a "default" database in a linked server Pin
Luis Alonso Ramos22-Jul-08 8:13
Luis Alonso Ramos22-Jul-08 8:13 
GeneralRe: Accessing a "default" database in a linked server Pin
Wendelius22-Jul-08 9:10
mentorWendelius22-Jul-08 9:10 
QuestionCan we restrict the number of maximum records inserted in a particular table? Pin
Rocky#21-Jul-08 0:24
Rocky#21-Jul-08 0:24 
AnswerRe: Can we restrict the number of maximum records inserted in a particular table? Pin
Krish - KP21-Jul-08 1:12
Krish - KP21-Jul-08 1:12 
GeneralRe: Can we restrict the number of maximum records inserted in a particular table? Pin
Rocky#21-Jul-08 1:19
Rocky#21-Jul-08 1:19 
GeneralRe: Can we restrict the number of maximum records inserted in a particular table? Pin
Mycroft Holmes21-Jul-08 14:22
professionalMycroft Holmes21-Jul-08 14:22 
GeneralRe: Can we restrict the number of maximum records inserted in a particular table? Pin
Rocky#21-Jul-08 19:26
Rocky#21-Jul-08 19:26 
GeneralRe: Can we restrict the number of maximum records inserted in a particular table? Pin
Mycroft Holmes21-Jul-08 19:55
professionalMycroft Holmes21-Jul-08 19:55 
GeneralRe: Can we restrict the number of maximum records inserted in a particular table? Pin
Rocky#21-Jul-08 21:07
Rocky#21-Jul-08 21:07 
AnswerRe: Can we restrict the number of maximum records inserted in a particular table? Pin
nelsonpaixao24-Jul-08 12:34
nelsonpaixao24-Jul-08 12:34 
QuestionConvert Decimal To Date? Pin
obarahmeh20-Jul-08 23:06
obarahmeh20-Jul-08 23:06 
AnswerRe: Convert Decimal To Date? Pin
Rocky#21-Jul-08 0:20
Rocky#21-Jul-08 0:20 
GeneralRe: Convert Decimal To Date? [modified] Pin
Pete O'Hanlon22-Jul-08 9:19
mvePete O'Hanlon22-Jul-08 9:19 
GeneralRe: Convert Decimal To Date? Pin
Rocky#22-Jul-08 18:24
Rocky#22-Jul-08 18:24 
GeneralRe: Convert Decimal To Date? [modified] Pin
Pete O'Hanlon22-Jul-08 22:06
mvePete O'Hanlon22-Jul-08 22:06 
GeneralRe: Convert Decimal To Date? Pin
Rocky#22-Jul-08 23:20
Rocky#22-Jul-08 23:20 
GeneralRe: Convert Decimal To Date? Pin
Pete O'Hanlon23-Jul-08 1:08
mvePete O'Hanlon23-Jul-08 1:08 
GeneralRe: Convert Decimal To Date? Pin
Rocky#23-Jul-08 3:02
Rocky#23-Jul-08 3:02 
AnswerRe: Convert Decimal To Date? Pin
Blue_Boy21-Jul-08 0:36
Blue_Boy21-Jul-08 0:36 
AnswerRe: Convert Decimal To Date? Pin
zahedonline21-Jul-08 0:37
zahedonline21-Jul-08 0:37 
AnswerRe: Convert Decimal To Date? Pin
leoinfo21-Jul-08 2:37
leoinfo21-Jul-08 2:37 
As there is no *DATE* data type in SQL 2005, you cannot store a date in the form that you want.
The only options you have to store a date (and time) are DATETIME and SMALLDATETIME (see Data Types[^])

If you need only the day part of a date I suggest you to use SMALLDATETIME ...

DECLARE @d DECIMAL(15,6) ;SET @d = 20080721.150825 

SELECT 
  @d AS [as DECIMAL]
, CAST( LEFT(@d ,8) AS SMALLDATETIME ) AS [as SMALLDATETIME]
, CAST( LEFT(@d ,8) AS DATETIME      ) AS [as DATETIME]
, CONVERT( NVARCHAR(10),   CAST( LEFT(@d ,8) AS DATETIME )  , 121 )    AS [as NVARCHAR(10)]


Please... SAVE my time by rating the posts that you read!

There are 10 kinds of people in the world: those who understand binary and those who don't.

GeneralRe: Convert Decimal To Date? Pin
obarahmeh21-Jul-08 21:54
obarahmeh21-Jul-08 21:54 
GeneralRe: Convert Decimal To Date? Pin
Mycroft Holmes21-Jul-08 23:52
professionalMycroft Holmes21-Jul-08 23:52 
QuestionFile size Pin
rezarafiee20-Jul-08 19:01
rezarafiee20-Jul-08 19:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.