Viewing 15 posts - 2,491 through 2,505 (of 6,036 total)
Do you want it returned as datetime or as a string?
June 4, 2009 at 3:55 am
Try to run this:
SELECT ID, Status, COUNT(*)
FROM Table
GROUP BY ID, Status
HAVING COUNT(*) > 1
June 3, 2009 at 4:24 am
It never failed on my memory.
Unexpected results it returned only in cases when it was used incorrectly.
Can you show your code?
But don't modify anything, every detail may be very important.
June 3, 2009 at 2:16 am
newbie101, Query Analyzer is for analyzing queries, not for data exchange.
Try to use appropriate tools for your tasks.
And another suggestion: try to avoid using varchar(max) by all means.
I once increased...
May 31, 2009 at 12:26 am
You need to read about locking in SQL Server to understand the consequences of what you are asking for. When you get to understanding you stop to ask for trouble.
You...
May 28, 2009 at 2:41 pm
peter478 (5/27/2009)
oh yes Sergiy, thank you , btwthe procedure works properly.
You're welcome.
Did you try computed columns?
Much less hassle.
To give it a try you don't need to delete existing ones,...
May 27, 2009 at 3:35 pm
peter478 (5/25/2009)
what does it mean BOL?
Books On Line, "Help" for SQL Server, press F1 to open.
May 25, 2009 at 6:15 am
First of all you don't need 2 triggers.
As well as correlated subqueries.
ALTER TRIGGER Cis_OP_No_Trigger
ON dbo.Cis_OP_No
FOR INSERT, UPDATE
AS
IF (UPDATE (N_Vyrobok) or UPDATE (N_Kplan))
update p
set N_Vyrobok2 = i.N_Vyrobok +...
May 25, 2009 at 4:10 am
peter478 (5/24/2009)
so what would you suggest ? How to solve this problem, because I need these triggers...
You may replace badly written triggers with better written ones.
May 24, 2009 at 5:10 pm
peter478 (5/23/2009)
Hi ,On this table are some triggers but I think that it should not be the problem.
That's exactly the problem.
Badly written triggers with subqueries built with an assumption...
May 23, 2009 at 4:46 pm
J (5/22/2009)
I am new to SS2K5. would you please explain in greater detail WHY ?
Because "T" in T-SQL means "transactional".
Because while you try you may affect the data used in...
May 22, 2009 at 4:37 pm
CONVERT(DECIMAL(10,2), Wages)/100
May 22, 2009 at 3:59 pm
If an error happens in a job the whole job fails.
No matter if you have error handler in the code or not.
Forget your Try-Catch habits while in T-SQL, they are...
May 21, 2009 at 7:30 am
peter478 (5/19/2009)
(
@e_Nplan char(20),
...
May 19, 2009 at 3:52 am
Viewing 15 posts - 2,491 through 2,505 (of 6,036 total)