Click here to Skip to main content
16,004,944 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL query Pin
Milind Panchal23-Aug-07 18:29
Milind Panchal23-Aug-07 18:29 
GeneralRe: SQL query Pin
Rocky#23-Aug-07 20:11
Rocky#23-Aug-07 20:11 
GeneralRe: SQL query Pin
Michael Potter24-Aug-07 5:10
Michael Potter24-Aug-07 5:10 
QuestionHow to upload an Ntext column value to a text file Pin
edukulla23-Aug-07 6:48
edukulla23-Aug-07 6:48 
QuestionHow can I optimize this script? Pin
Skanless23-Aug-07 6:11
Skanless23-Aug-07 6:11 
AnswerRe: How can I optimize this script? Pin
Michael Potter23-Aug-07 8:41
Michael Potter23-Aug-07 8:41 
Questionreturn int (urgent) [modified] Pin
ksaw12323-Aug-07 5:28
ksaw12323-Aug-07 5:28 
AnswerRe: return int (urgent) Pin
Colin Angus Mackay23-Aug-07 5:34
Colin Angus Mackay23-Aug-07 5:34 
CanadianBoy wrote:
FLOOT


Did you mean FLOAT?


CanadianBoy wrote:
I don’t if this way is right or not and if not how can I do it.


Have you tried experimenting? Building up a part of the query to see if it does what you want?
SELECT GETDATE()
SELECT CAST(GETDATE() AS FLOAT)
SELECT FLOOR(CAST(GETDATE() AS FLOAT))
SELECT CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME)


Looks like it works to me.


-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.

Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits


My website

GeneralRe: return int (urgent) [modified] Pin
ksaw12323-Aug-07 5:38
ksaw12323-Aug-07 5:38 
GeneralRe: return int (urgent) Pin
Xandip24-Aug-07 17:31
Xandip24-Aug-07 17:31 
GeneralRe: return int (urgent) Pin
ksaw12325-Aug-07 0:14
ksaw12325-Aug-07 0:14 
Questionloop in sql table Pin
costavo23-Aug-07 4:06
costavo23-Aug-07 4:06 
AnswerRe: loop in sql table Pin
Colin Angus Mackay23-Aug-07 5:30
Colin Angus Mackay23-Aug-07 5:30 
QuestionConnect to sql server Pin
messages23-Aug-07 3:56
messages23-Aug-07 3:56 
AnswerRe: Connect to sql server Pin
WhiteGirl2323-Aug-07 4:00
WhiteGirl2323-Aug-07 4:00 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 4:14
messages23-Aug-07 4:14 
AnswerRe: Connect to sql server Pin
Colin Angus Mackay23-Aug-07 4:03
Colin Angus Mackay23-Aug-07 4:03 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 4:17
messages23-Aug-07 4:17 
GeneralRe: Connect to sql server Pin
Colin Angus Mackay23-Aug-07 5:35
Colin Angus Mackay23-Aug-07 5:35 
GeneralRe: Connect to sql server Pin
Colin Angus Mackay23-Aug-07 5:37
Colin Angus Mackay23-Aug-07 5:37 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 6:55
messages23-Aug-07 6:55 
AnswerRe: Connect to sql server Pin
martin_hughes23-Aug-07 13:21
martin_hughes23-Aug-07 13:21 
GeneralRe: Connect to sql server Pin
messages23-Aug-07 21:12
messages23-Aug-07 21:12 
AnswerRe: Connect to sql server Pin
edukulla23-Aug-07 22:05
edukulla23-Aug-07 22:05 
QuestionOracle learning? Pin
Mel Padden23-Aug-07 3:48
Mel Padden23-Aug-07 3:48 

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.