Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

which query u can write to sql server doesn't work
inbetween 7.00PM to nextday 9.00AM

Answer Posted / sumesh

Declare @hour varchar(100)
set @time=convert(varchar,getdate(),114)
set @hour=SUBSTRING(@time,1,2)
if(convert(int,@hour)>8 and convert(int,@hour)<19)
begin
print @time
print @hour
end

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert numeric expression data types by assignment operations?

1071


Why do we use sql limitations? Which constraints can we use while making a database in sql?

1074


What the different topologies in which replication can be configured?

1085


What is the purpose of the model database?

1013


What is the use of floor function in sql server?

1079


Define Business Edition in SQL Azure?

100


Do you know what are acid properties of transaction?

952


Do you know what is xpath?

1083


can SSRS reports Cache results?

147


What is the difference between varchar and varchar(max) datatypes?

1069


What is the meaning of resultset type_scroll_insensitive?

950


What is outer join in sql server joins?

1114


What is user defined stored procedures?

930


Do you know nested transaction?

955


How to create user defined functions with parameters?

1229