Viewing 15 posts - 136 through 150 (of 160 total)
Ahhhh perhaps this is my fault for not explaining fully
I fully understand it doesnt fire of the cascade fucntion when set to nocheck even if the FK property still...
February 28, 2008 at 4:55 am
Matt Miller (2/27/2008)
Not 100% sure on that one.... i'd run a test and see which way the wind blows....
ok ran
SP_MSFOREACHTABLE "ALTER TABLE ? NOCHECK CONSTRAINT ALL"
go
SP_MSFOREACHTABLE "ALTER...
February 27, 2008 at 10:34 am
and when you turn the relationship in question back on the cascade delete should come back on with it ?
or am I losing the plot 🙂
simon
February 27, 2008 at 9:54 am
Sugesh Kumar (2/27/2008)
Use SQL profiler and trace for events on the particular table and the database. You can filter you criteria with SQL profiler.
I wish I could but the powers...
February 27, 2008 at 9:20 am
turn it off for speed of bulk data inserts (test data)
yes but which events do we trace ?! I want to trace when it is turned off etc by whatever...
February 27, 2008 at 9:14 am
well at least if use your first example with a cursor I can step through every FK in the database.. is there a flag in a system table that will...
February 18, 2008 at 9:59 am
Steve Jones - Editor (1/21/2008)
Any reason not to...
January 21, 2008 at 9:28 am
thanks but I need to be able to do this dynamically and in code (if possible)
thanks then
~si
January 15, 2008 at 4:28 am
even better and easier !
thanks si
January 10, 2008 at 10:28 am
thank you 🙂
in the end I used
update table
set number = replace (number,substring(number,1,4),6666)
seemed to work ok
kind regards
si
January 10, 2008 at 9:57 am
thank you one and all
I shall have a play
one final question ,w aht would be the preferred approach, a database table idea as I set out to do when...
January 9, 2008 at 8:16 am
I try
Select TOP 5000 distinct A.First_Name, B.Last_Name
From firstandlast A CROSS JOIN firstandlast B
ORDER BY NEWID()
and
Server: Msg 156, Level 15, State 1, Line 1
Incorrect...
January 9, 2008 at 8:02 am
One of those Eureka moments where having revisited the question and re-read your reply it makes perfect sense !
thank you !
kind regards
~si
December 18, 2007 at 6:33 am
Hi , now that I shall have to check
thanks for the advice
si
August 10, 2007 at 6:24 am
win 2003
SQL 2005 Enterprise, existing instances both at sp2
cheers 🙂
~si
July 19, 2007 at 8:03 am
Viewing 15 posts - 136 through 150 (of 160 total)