Viewing 15 posts - 1 through 15 (of 19 total)
July 5, 2018 at 12:04 am
@rick, Could you please give pointers on what are the scenarios where we specify MultiSubnetFailover=true? July 4, 2018 at 5:17 am
@
[font="Comic Sans MS"]It needs to be handled with some manipulations:
with s as (
select Type, right('00' + convert(varchar(2), ISNULL(sort,0) ), (select len(MAX(isnull(sort,0))) from #TEST)) Sort from #TEST)
select CASE WHEN...
January 19, 2011 at 2:38 am
Ideally the query should be like this
WHERE ID =
CASE
WHEN @ID >0 THEN @CaseID
WHEN @ID = 0 THEN (RMARequestedDate > (GetDate()- @D))
END
January 19, 2011 at 1:58 am
We need to minimize the records on which we are going to apply where conditions
Like:
Case-1: For max datecall, We are going to get only one record. But in ur query...
January 19, 2011 at 12:30 am
[font="Comic Sans MS"][/font]
WITH S As (select CONVERT(varchar,Timestamp,101) Dtpart,* from #data)
, S1 as (Select Row_number() over (order by MAX(etotal) ) Rid, MAX(etotal) MaxeTotal,Dtpart from S group by Dtpart)
select
S1.Dtpart,T.MaxeTotal...
January 19, 2011 at 12:22 am
[font="Comic Sans MS"][/font]
WITH S As (select max(DateCall) MaxDateCall from tblCallLog where phNu=r.phNu group by phNu)
January 18, 2011 at 10:37 pm
Need to write separate try catch block for each DML statements. So that no error will be skipped.
May 21, 2010 at 4:05 am
Is this Left outer join?
If yes.
1. "addr.empid = edu.empid"-----This is join condition
2. "addr. AddType = 2"----This is filter condition
filter condition should not be mixed with join condition. But in this...
April 28, 2010 at 3:02 am
You have got the error due to foriegn key constraint....
if u want to just increase the identity value by x for the table having some rows.
then us just to reseed...
March 23, 2009 at 11:02 am
Truncate table mytable
go
DBCC CHECKIDENT(mytable, reseed, 50)
go
then try to insert values into the table.
March 22, 2009 at 5:42 am
Thanks for the help guys.
I set the named pipe setting and it has started working.....
February 18, 2009 at 9:58 pm
sql server 2005 standard edition
and version is 9.00.3042.00
December 22, 2008 at 10:23 pm
Can i have the exact table structures of the parent and child table?
December 3, 2008 at 3:21 am
Viewing 15 posts - 1 through 15 (of 19 total)