Viewing 15 posts - 1 through 15 (of 33 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...
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
July 8, 2010 at 12:02 pm
how come.. i am getting -1,0,1 only..
someone explain please
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
June 26, 2010 at 11:16 am
Isnt there a way to check any statistics to find the table that is frequently updated?
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
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....
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
June 22, 2010 at 4:17 am
sorry for the error.. error reproducible only on sql 2005.
please excuse.
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
May 22, 2010 at 10:20 am
Thanks Paul,
exactly what i was looking for..
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
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:
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
May 22, 2010 at 5:32 am
Welcome Sumantha.
Have a Great Day. 🙂
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
February 11, 2010 at 4:04 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 🙂
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
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
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
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'
)
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
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...
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
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...
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
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...
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
February 10, 2010 at 8:11 am
wonderful... it is really usefull..
Kindest Regards,
Paarthasarathy
Microsoft Certified Technology Specialist
http://paarthasarathyk.blogspot.com
February 10, 2010 at 7:55 am
Viewing 15 posts - 1 through 15 (of 33 total)