Viewing 15 posts - 1 through 15 (of 32 total)
I too got the same error. thats y i posted.. 🙂
I will tell me exact requirement.. I want the columns A and C contain the same value. i actually had...
July 8, 2010 at 12:02 pm
how come.. i am getting -1,0,1 only..
someone explain please
June 26, 2010 at 11:16 am
Isnt there a way to check any statistics to find the table that is frequently updated?
June 22, 2010 at 11:54 pm
I too feel What Arjun suggests is correct. Timestamp will be modified whenever the row is updated. so the row containing the latest timestamp will be the recently modified\updated row....
June 22, 2010 at 4:17 am
sorry for the error.. error reproducible only on sql 2005.
please excuse.
May 22, 2010 at 10:20 am
Thanks Paul,
exactly what i was looking for..
May 22, 2010 at 10:15 am
Can you please elaborate how u solved?
i am also facing the same problem.. the return statement is causing the error message... :crying:
May 22, 2010 at 5:32 am
Try this
SET @SQL_COSTCENTER='SELECT COST_CENTER,'+ '''' + @VALID_FROM_DATE1+ ''''+' AS VALID_FROM_DATE ,CO_CODE,COST_CENTER_DESC,COST_CENTER_MGR FROM xyz WITH(NOLOCK) '
it should work 🙂
February 11, 2010 at 3:56 am
Panda can you please give some more sample code in the procedure to validate?
I tried and it just works fine.
you need to use quotes for datetime datatype
February 11, 2010 at 12:49 am
Yet another way 🙂
select A.* from emp A
where A.datett=(select max(C.datett)
from emp C
where A.eid = C.eid
and C.datett <= '06/06/2006'
)
and exists
(
select '' from emp B
where A.eid = B.eid
and B.act='Y'
)
February 10, 2010 at 8:46 am
Guys, Have i confused you with my question..
Let me elaborate..
Let us assume, we have 10 SQL named users.. All of them with dbadmin privilege..
I am the system administrator
I prefer not...
February 10, 2010 at 8:24 am
Another way is to check when the tempdb is created..
PS: Tempdb is recreated whenever the server is started..
select create_Date from sys.databases
where name = 'tempdb'
One more point, Tempdb is created...
February 10, 2010 at 8:21 am
I have an idea.. but not sure how this will workout...
u can write a trigger on one of the tables, so that on update\insert\delete on that table , the other...
February 10, 2010 at 8:11 am
Viewing 15 posts - 1 through 15 (of 32 total)