Viewing 15 posts - 1 through 15 (of 22 total)
declare
@datetime datetimeoffset = '2012-10-25 00:00:00.000 +04:30'
select
case
when (DATEPART(TZ, @datetime) <> 0 and DATEPART(TZ, @datetime) is not null OR CONVERT(TIME(0),@datetime) <> '00:00:00')
then 0
when (DATEPART(TZ, @datetime) = 0 and @datetime <> '')
then...
January 11, 2013 at 3:24 am
anthony.green (1/8/2013)
You could do a check in the string for the + or - symbol to indicate Offset
You could then do a check for a : to detail if...
January 8, 2013 at 4:05 am
If i use isdate() function also will not solve my issue.
my issue is to find out what is the datatype?
January 8, 2013 at 3:50 am
Please try trigger for that particular table.
tr_TableName_After_Insert
create trigger [dbo].[tr_TableName_After_Insert]
on [dbo].[TableName]
after insert
as
begin
(your operation to insert into different table)
end
November 27, 2012 at 9:42 pm
hey did you change the question? what happended?????
October 16, 2012 at 4:02 am
Q1)-SQL server wait until a lock release before giving another connection access to the same data, By default how long will sql server wait for the first connection to release...
October 16, 2012 at 3:40 am
Hi,
i had gone through your example its look wrong.
please find the detail.
declare @int1 varchar(100) = '100000000',
@int2 varchar(100) = '984541',
@int3 varchar(100)
your suggestion was mentioned below:
set @int3 = STUFF( @int1,...
October 16, 2012 at 1:45 am
kapil190588 (10/5/2012)
Hi vivek,SELECT SUBSTRING(ageatdeath,0,CHARINDEX('Y',ageatdeath,0)) AS AGE_VAL,
SUBSTRING(ageatdeath,CHARINDEX('Y',ageatdeath,0),LEN(ageatdeath)) AS AGE_UNIT
this code also works fine.
Your welcome dude 🙂
October 5, 2012 at 8:17 am
Hi,
Please go through this url, which explains each and everything in depth.
http://www.sqlservercentral.com/articles/Temporary+Tables/66720/
Regards
October 3, 2012 at 3:58 am
Hi Trout,
I am suggesting some code please correct me if i am wrong.
the column ageatdeath will always contain values like eg:
51years
62years
45years
suppose the age is "100years" then the below mention query...
October 2, 2012 at 8:52 pm
Please go through the url and my mistake its error code.
September 30, 2012 at 9:51 pm
SQL Server has encountered 22953 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [H:\MSSQL10_50.MSSQLSERVER\MSSQL\Data\xxxxxxxxx.MDF] in database [CORETABLES_PROD] (6). The OS file handle is 0x0000000000000DE4. The...
September 30, 2012 at 9:45 pm
Hey please go through the below mentioned link.
http://www.codeproject.com/Articles/173275/Clustered-and-Non-Clustered-Index-in-SQL-2005
September 28, 2012 at 12:17 am
Viewing 15 posts - 1 through 15 (of 22 total)