Viewing 15 posts - 7,411 through 7,425 (of 13,469 total)
zaleeu (6/9/2011)
Okay how do I drop all the contraints ?If I try to delete I get
The DELETE statement conflicted with the REFERENCE constraint "FK_ReportLog_Client"
=========================
yep the issue is what i...
June 9, 2011 at 8:02 am
if this is updating a table in a different database, it might be OK...
i see it is updating renovest.dbo.[Testtable$Afsl_ Vejehoved] ...what database is the table with the trigger in? drew's...
June 9, 2011 at 7:55 am
awesome!
like i said, it worked perfect for me with tables, but most of my views and procs failed; they all pointed to dbo.Tables....
i cleaned them all up for a single...
June 9, 2011 at 7:46 am
Howard just finding rows with lots of underscores, or are the underscores a placeholder for variable length data?
this finds them easily, for example:
With mySampleData(TheField)
AS
(
SELECT '20556116 29 _________________________________________________ 49' UNION ALL
SELECT...
June 9, 2011 at 6:53 am
I'd always tackled this the other way...backup and restore to the dev database, then DELETE any data that doesn't match the saving criteria...works great if your FK's have the DELETE...
June 9, 2011 at 6:42 am
is the slow version running a different SQL version?
it's very common for a database restored on a higher version of SQL to require updating statistics.
update the statistics on the table...
June 8, 2011 at 7:54 pm
opc.three i absolutely agree; i just happen to have a saved snippet that did what the OP was asking for...i was thinking of re-doing it, since it doesn't cover shemas;...
June 8, 2011 at 7:45 pm
i'd used this in the past...i originally made it in SQL 2000, so it pretty much ignores schemas and assumes dbo.
see how it;s using a cursor to loop through what...
June 8, 2011 at 5:47 pm
i think you answered this in your first post...but just in case...
can you go to this spot and put sql files in there? does that make any difference?
i know...
June 8, 2011 at 3:12 pm
show us your trigger, and we can help you tweak it to handle multiple rows as a set based solution..
as far as whether it's insert/update/delete, if there is any data...
June 8, 2011 at 12:59 pm
there is a view you can use, that is mostly correct:
SELECT OBJECT_NAME(REFERENCING_ID),* FROM sys.sql_expression_dependencies
WHERE OBJECT_NAME(REFERENCING_ID = 'YourProcName'
issues can arise sometimes, becasue you can create a view that references tables...
June 8, 2011 at 10:52 am
definitely the conversion in there: here's a stark example...you'll see none of the results are the same,all due to the conversion issues:
/*
(No column name)(No column name)(No column name)(No column name)(No...
June 8, 2011 at 10:31 am
ok, i can duplicate some of what you are seeing...
try this, which is barely modified form what you posted....
i get chinese characters from my loginnmae due to the conversion:
what i...
June 8, 2011 at 9:49 am
as far as I know, the data type and sizes should always be varvbinary 128 and nvarchar(64), right?
wouldn't an implcit comversion form nvarchar to varchar mess up the data?
or is...
June 8, 2011 at 9:17 am
you can do what you want with the dateadd/datediff functions
In this case, one easy way to do it is to find the beginning of the month for the date in...
June 8, 2011 at 7:24 am
Viewing 15 posts - 7,411 through 7,425 (of 13,469 total)