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

What is history table in sql server?

895


What is a partition key?

885


Explain primary key and foreign key constraints?

963


What is instead of trigger sql server?

930


How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

1131


How retrieve field names from the table in SQL through JAVA code?

1832


What are the different index configurations a table can have?

899


Define cross join in sql server joins?

964


What are the differences between user defined functions and stored procedures?

1004


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

1127


What is query processing?

881


What is difference between equi join and inner join?

858


What is resultset concur_updatable?

969


Define Wed Edition in SQL Azure?

100


How do you delete a trigger?

917