Viewing 15 posts - 1,801 through 1,815 (of 2,051 total)
I would start with backup/restore
Than security
Then see other topics above.
I didn't have the need yet to use DTS packages or SQLMail.
*misread*
November 18, 2005 at 6:25 am
Excuse me, my mind is a bit troubled.
The scripts was well done
Can you post an example of wanted output? Do you mean like a roster?
Squadrons
list of divisions
list of...
November 16, 2005 at 12:50 pm
This is because the order of execution. JOINS before where, where before having...
select Label,Color,SampleLabel
from TblSample
LEFT OUTER JOIN VWClosedSampleQuotaView X
ON TblSample.Label = X.SampleLabel
gives
Label Color SampleLabel
Alice Red Alice
Bob Red Bob
Cathy Red Cathy
David Blue David
Ellen Blue Ellen
Fred Blue Fred
Gale Yellow Gale
Harold Yellow Harold
Irene Yellow Irene
Apply where clause SampleLabel-> no records...
November 16, 2005 at 11:05 am
Table structure looks fine.
Can you rescript your table generation? It gives some errors on tablenames.
If you want to see the strict org structure, choose inner joins instead of left-joins.
November 15, 2005 at 11:33 am
generally the more spindles the better
Although using 16 drives oposed to 3 raises some questions.
Large drivers are generally more modern than smaller ones, and you get extra management with so...
November 15, 2005 at 11:19 am
Shooting a bit in the dark: could it be that with ANSI_NULLS ON it will have to join less data (since = NULL always gives false) and somehow the optimizer...
November 15, 2005 at 11:07 am
What machine is it?
Does it has all patches?
Did occur it suddenly? If so any clue what has changed? (network, new machines...)
November 15, 2005 at 10:58 am
*is there a special reason why you use WHILE (@@fetch_status <> -1)
instead of WHILE @@FETCH_STATUS = 0 ?
*your cursor can probably be readonly forward_only
*WHILE (@@fetch_status =0)
BEGIN
/* print @name
set @sql='update udt_DBA_Server_Jobs set...
November 15, 2005 at 10:51 am
That's odd
Have you checked the MSDTC settings on the windows 2003 box?
http://support.microsoft.com/?kbid=899607
Is there any difference in hardware between the windows 2003 box and windows 2000 box?
What are the patch...
November 14, 2005 at 10:15 am
The same.
Only when each record will have a recordlength of 100 you can consider nchar
November 14, 2005 at 10:03 am
practically nothing, sql server only stores the 100 unicode characters
November 13, 2005 at 10:21 am
I fail to grasp the logic
first is looks like min(starttime) max (stoptime)
But how you come to?
Date u_id start_time stop_time
01.01.05 01 08:00 12:00
01.01.05 01 08:00 09:00
01.01.05 01 11:00 12:00
01.01.05 02 08:00...
November 12, 2005 at 6:00 am
You're welcome.
1)the where clause checks if there was a change present for the given row
WHERE ISNULL(INSERTED.FIELD1,unplausiblevalue)<>ISNULL(DELETED.FIELD1,unplausiblevalue)
OR
ISNULL(INSERTED.FIELD2,unplausiblevalue)<>ISNULL(DELETED.FIELD2,unplausiblevalue)
... (every column)
2)as far as I know a trigger is always a transaction, so...
November 11, 2005 at 6:39 pm
CREATE TRIGGER TR_PROJECT_UPDATE ON [dbo].[tblProject]
FOR UPDATE
INSERT INTO [dbo].[tblProject_audit]
(Field1,field2,....)
SELECT
CASE
ISNULL(INSERTED.FIELD1,unplausiblevalue)=ISNULL(DELETED.FIELD1,unplausiblevalue) THEN unplausiblevalue /*not changed*/
ELSE DELETED.FIELD1 /*old value*/
END AS FIELD 1
,
CASE
...
FROM INSERTED INNER JOIN DELETED ON INSERTED.PK=DELETED.PK
WHERE ISNULL(INSERTED.FIELD1,unplausiblevalue)<>ISNULL(DELETED.FIELD1,unplausiblevalue)
OR ...
you...
November 11, 2005 at 1:29 pm
Viewing 15 posts - 1,801 through 1,815 (of 2,051 total)