Viewing 15 posts - 61 through 75 (of 1,113 total)
Jeff's code is working fine in SQLSERVER & SYBASE (with some small change) . Yes, Instead of '', we have to use Null. As sybase never replace any string with...
October 1, 2012 at 10:50 am
Experts,
is there any solution available for "Mass concatenate" in SQL 2008 OR SQL 2012?
September 28, 2012 at 9:57 pm
Thanks Matt & Jeff.
I have also done some quick simulations to see maximum lengths of strings that can be handled with each value of N. These are the results so...
September 28, 2012 at 9:16 pm
I have also done some quick simulations to see maximum lengths of strings that can be handled with each value of N. These are the results so far:
N=1 10
N=2 38
N=3...
September 25, 2012 at 3:31 am
Most of the numbers come from powers of 2 + 1. In this particular case, it's an optimization for performance
okay. why don't i use +2 or +3 instead of +1...
September 25, 2012 at 12:22 am
i think...Again my requiremtn is wrong..
I just corrected it now...
select ''karthik keyan 44768 ...
September 25, 2012 at 12:20 am
bitbucket-25253 (9/24/2012)
This article explains the "puzzle solving" behind a common set based method to replace unknown numbers of adjacent...
September 24, 2012 at 8:55 pm
Thats what my first thought (using cursor) on this requirement. But...i just wanted to do this without using BAD CURSOR 🙁
December 27, 2011 at 2:10 am
There is no way to capture the error message as well as to insert all the rows (except the problematic one) by using TRY CATCH.
Am i correct?
December 26, 2011 at 11:53 pm
I believe...when we turn this option to ON, we can't capture the duplicate error message in the table. Here i come to conclusion as below.
If the IGNORE_DUP_KEY IS OFF, TRY...
December 26, 2011 at 11:52 pm
Which table you are talking about ?
Yes. T table only.
T table cant have data until we have PK satisfied data
Thats what i need. I would like to to insert...
December 26, 2011 at 7:32 am
I don't see any records in the table. 🙁
December 26, 2011 at 6:18 am
I have changed my code as below.
ALTER proc [dbo].[p1]
as
begin
DECLARE @ERROR_LOG TABLE
(
ErrorNumber INT,
ErrorSeverity INT,
ErrorState INT,
ErrorProcedure VARCHAR(255),
ErrorLine VARCHAR(255),
ErrorMessage VARCHAR(1000)
)
;
BEGIN TRY
insert into t
select 1
...
December 25, 2011 at 11:21 pm
i have used the below code
delete from sec_returns
where sec_no in ( select sec_no
from (select sec_no, sum(isnull(ret,0)) from sec_returns group by sec_no having sum(isnull(ret,0)) = 0)z
)
But...i think this may lead to...
November 28, 2011 at 12:41 am
Viewing 15 posts - 61 through 75 (of 1,113 total)