Viewing 15 posts - 721 through 735 (of 1,347 total)
You haven't posted any table DDL or constraint definitions, nor the DELETE statement itself, so it's tough to say ..
>>and i am deleting records from store table whose flag is...
January 13, 2006 at 12:44 pm
It runs sometimes and not others because it is data dependant.
>>DELETE statement conflicted with TABLE REFERENCE constraint 'FK_employeeHeader_storeemp'
Depending on what table is at the foreign key side of FK_employeeHeader_storeemp and depending...
January 13, 2006 at 12:16 pm
This is not a DTS issue, it's aproblem with the DELETE statement trying to delete records that are still referenced by foreign keys in other tables.
You either need to implement...
January 13, 2006 at 11:58 am
What is dbo.vw_employee_days.calendar_days ?
We don't have the view definition, and it's tough to know what to make of a WHERE that appears to compare something that is a number of...
January 13, 2006 at 11:30 am
Ever heard of Y2K ? Why not use a code in the YYYY-MM format to avoid ambiguity ? Or use a real date...
January 13, 2006 at 11:20 am
I generally just use the microsoft.public.* newsgroups.
Either via their Google archive:
http://groups.google.com/group/microsoft.public.dotnet.languages.vb?lnk=lr
Or directly through a news reader client. I've found this to be a great resource, with frequent contributions from...
January 13, 2006 at 9:44 am
Fair enough, but you see the general point ? You can't post a whole whack of code and say "it's wrong" without posting what the requirements are and what the...
January 12, 2006 at 4:05 pm
>>I should be getting -165 for rmstranamt in the end, not -265 which I'm getting now. Somewhere it's skipping 100
No-one here can assist until you explain why.
According to your query...
January 12, 2006 at 3:46 pm
NOT EXISTS instead of NOT IN:
SELECT dbname, dbid, dbservername, dbcreate
FROM AuditSYSDB_DailyRefresh As R
WHERE NOT EXISTS (
SELECT *
FROM AuditSYSDB_Static As S
WHERE S.dbid = R.dbid
AND S.dbname=R.dbname
)
January 12, 2006 at 1:41 pm
You can't use a cursor in a derived table, regardless of whether you have atemp table pre-built. And it's a good thing too, because the performance would be hideous.
It all...
January 12, 2006 at 12:56 pm
>>That's more or less what Joe Nakanishi suggested, isn't it?
Nope. That suggestion was for 2 CONVERT()'s in the WHERE, which precludes index usage.
>>"it might be worth setting 2 variables to...
January 12, 2006 at 9:51 am
When you run a large update like this, it requires log space. If your logfile isn't large enough, it may auto-grow. Auto-growing takes time, and depending on your auto-grow parameters...
January 12, 2006 at 9:47 am
>>LEFT JOIN Currency C on C.id = t.CurrencyID
>>WHERE c. is not null
That is equivalent to:
INNER JOIN Currency C on C.id = t.CurrencyID
... with no need for a WHERE. Might change the...
January 12, 2006 at 9:37 am
Unfortunately the /3GB switch only works on the Win2000 Server OS on Advanced and DataCenter versions. it is not supported on Standard.
http://support.microsoft.com/kb/291988/
Note, the answer to this and many other...
January 11, 2006 at 10:26 pm
Not wierd, just working as per the original requirements - which were to strip non-numerics from the beginning of the string.
There was nothing in the original poster's question or the...
January 11, 2006 at 4:35 pm
Viewing 15 posts - 721 through 735 (of 1,347 total)