dbTalk Databases Forums  

newb question

comp.databases.sybase comp.databases.sybase


Discuss newb question in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Khee Mao
 
Posts: n/a

Default newb question - 05-25-2006 , 06:12 PM






I just scripted a report, that for most intents and purposes works, but I
want it to run daily, not need any intervention from me on a daily basis,
and instead of grabbing the most recent 24 hours of data, just grab data
between midnight and midnight. if you could help me with the code, or
better yet, point me to a good sql (sybase) resource, I'd much appreciate
it.

thanks!


oh, this is what I have right now:

declare @end datetime,
@start datetime
select @end = getdate()
select @start = dateadd(day,-1,@end)



Reply With Quote
  #2  
Old   
Khee Mao
 
Posts: n/a

Default Re: newb question - 05-26-2006 , 02:37 PM







"Khee Mao" <big_bad_buddha_daddy (AT) yahoo (DOT) com> wrote

Quote:
I just scripted a report, that for most intents and purposes works, but I
want it to run daily, not need any intervention from me on a daily basis,
and instead of grabbing the most recent 24 hours of data, just grab data
between midnight and midnight. if you could help me with the code, or
better yet, point me to a good sql (sybase) resource, I'd much appreciate
it.

thanks!


oh, this is what I have right now:

declare @end datetime,
@start datetime
select @end = getdate()
select @start = dateadd(day,-1,@end)

thanks for nothing, guys! I figured it out though.

select @end = convert(datetime, convert(char(11),getdate()))




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.