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 trigger in salesforce?

983


Why we use the openxml clause?

1011


How to delete a login name in ms sql server?

1075


Can we perform backup restore operation on tempdb?

1015


Explain the different types of backups available in sql server? : sql server database administration

924


What happens if you add a new index to large table?

942


What is tabulation?

951


When to use null data driven subscription?

206


What is check constraint in sql server?

1002


What are ddl (data definition language) statements for tables in ms sql server?

1104


What is named query? : sql server analysis services, ssas

967


What is ms sql server triggers?

1012


What is the difference between count () and rowcount ()?

1027


How do you test your database? : sql server database administration

1020


How to use union to merge outputs from two queries together in ms sql server?

1069