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
what is the sql equivaent of the dataset relation object ?
How to create a dml trigger using create trigger statements?
Explain following error properties?
What is constraints and its types?
Please differentiate between a local and a global temporary table?
How would you go about developing a ssrs report?
We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?
How to define output parameters in stored procedures?
What is function of CUBE ?
What are data resources?
How to return the date part only from a sql server datetime datatype?
How to reaname table name without using sp_Rename in sql server..?
How do you drop an index?
Can you pass expressions to stored procedure parameters?
What is indexing in sql server with example?