Viewing 15 posts - 11,416 through 11,430 (of 18,923 total)
Why not do it on the client application? Would cost much cpu cycles on the server (no cast at al to do).
October 27, 2006 at 12:17 pm
Looks like you'll be ok. The delete doesn't fail (the previous err message was most likely to allow this type of operation not to fail) :
IF EXISTS (
October 27, 2006 at 12:05 pm
Here's a script to show you the error... and give you something to toy with :
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[FK_DemoB_DemoA]') AND
October 27, 2006 at 11:25 am
You cannot set on casade delete for all those relations (circular relations) >>
c to b = fine
b to a = fine
c to a >> cascades on b, which cascades on...
October 27, 2006 at 11:16 am
You should be able to duplicate the behavior by using this (only for your personnal experience, and only if you have a low transactionnal environement)
DBCC FREEPROCCACHE --flush compiled plans
DBCC DROPCLEANBUFFERS --flush...
October 27, 2006 at 6:44 am
That's because the proccache (execution plans) are flushed after a restart. So sql server has to recompile the objects and it also has to reread the data from disk. After...
October 27, 2006 at 6:42 am
To move objects on other filegroups you simply need to change the clustered index filegroup.
October 27, 2006 at 6:40 am
PTut.Open STRSQLpt, CurrentProject.Connection, adOpenStatic, adLockOptimistic
if not pTot.eof then
Pi = PTut!ptid
PTfs = PTut!ptname
PTsf = PTut!pt
endif
PTut.Close
October 27, 2006 at 4:09 am
Replace the smiley face with a ")" without the quotes.
October 27, 2006 at 4:02 am
Start the profiler, see and playback the statements that should be doing the work. Also show the execution plan while playing back the statements in QA. Maybe there are some...
October 27, 2006 at 4:01 am
Great.. if only all users were like you
.
October 26, 2006 at 1:37 pm
I think it was a smart thing on his part to think about the hour change and the possible job failures (especially if he's not a programmer / dba). However in...
October 26, 2006 at 1:32 pm
Fires once per transaction.
The tables deleted and inserted accessible from the trigger contain all the row(s) inserted or deleted (both tables are filled for an update query).
Post more details...
October 26, 2006 at 1:21 pm
His best and almost only chance is to have the file in the recycle bin. Other than that I would be very surprised that no sector were affected by the...
October 26, 2006 at 12:15 pm
How about this :
Create the foreign key between master (PK) and childs(FK)
Create stating table with the same structure as the child table
Create an instead of trigger on the child...
October 26, 2006 at 11:24 am
Viewing 15 posts - 11,416 through 11,430 (of 18,923 total)