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 / vimala

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 ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of attribute hierarchy ordered ? : sql server analysis services, ssas

1011


What is difference between order by and group by?

1000


Tell me what is sql profiler?

1025


what are user defined datatypes? : Sql server database administration

964


What are the differences between lost updates and uncommitted dependencies?

1073


What is the process of normalising?

993


What is database dimension? : sql server analysis services, ssas

1077


What is 2nf example?

988


What are the default system databases in sql server 2000?

1027


what is a join and explain different types of joins? : Sql server database administration

955


What is awe?

1010


What is difference between standardization and normalization?

1092


What is after dml trigger?

1011


Explain various On-Delete options in a DB table. Which is the default option?

1465


What types of Joins are possible with Sql Server?

1120