Viewing 15 posts - 2,941 through 2,955 (of 6,036 total)
Because functions INDEXPROPERTY and OBJECTPROPERTY are executed locally.
July 29, 2008 at 7:09 pm
Table sysdepends contains all objects used in procedures.
If you don't use ad-hoc SQL and table is not in sysdepends - that table is you candidate.
But take into account: sysdepends records...
July 29, 2008 at 4:23 pm
SELECT [Table1].PrimaryKeyID
FROM [Table1]
WHERE NOT EXISTS (select 1 from [Table2]
where [Table1].PrimaryKeyID = [Table2].ForeignKeyID
...
July 29, 2008 at 6:47 am
But in the end of the result I want to eliminate it of the temporary board because I do not want that show it in my consultation.
Just exclude...
July 25, 2008 at 7:24 pm
First, there is "error" message with
update t1as "t1" could not be found
Can you post the error message?
July 22, 2008 at 7:50 pm
Add top level element around your XML:
{MyXMLDoc}
... your XML here
{/MyXMLDoc}
Sorry, I had to replace proper tag brackets with {} because otherwise site does not display it.
July 22, 2008 at 4:57 pm
doc_sewell (7/22/2008)
July 22, 2008 at 4:13 pm
Your update statement is just wrong.
It creates cross join of #tmp_416 to itself and updates everything with whatever.
This must work:
update t1
set total_portfolio = t2.amt
from #tmp_416...
July 22, 2008 at 5:37 am
doc_sewell,
Did you ever consider a possibility of more than 1 user accessing your database at the same time?
Did you think that while 1st user validates the query 2nd one can...
July 22, 2008 at 5:31 am
select OBJECTPROPERTY ( id , 'ExecIsInsteadOfTrigger' ),
OBJECTPROPERTY ( id , 'ExecIsAfterTrigger' ),
OBJECTPROPERTY ( id , 'ExecIsInsertTrigger' ),
* from dbo.sysobjects where xtype='TR'
Check BOL for other OBJECTPROPERTY parameters.
July 21, 2008 at 8:38 pm
New record create whole new set, so it always affects all columns.
Even if you don't insert anything meaningfull in there.
July 21, 2008 at 5:55 pm
You may create this procedure as system procedure in master database (that's where prefix "sp_" is required).
Then you may call it like:
EXEC TargetDB.dbo.sp_process_customer
or just call it from TargetDB
USE TargetDB
GO
EXEC dbo.sp_process_customer
and...
July 21, 2008 at 5:46 pm
jcrawf02,
can you explain this:
ISNULL(count(distinct #PLANDATA_Claim.claimid),0) AS "FFS",
What ISNULL is doing here?
June 27, 2008 at 7:27 am
By starting INSERT you begin a transaction.
By getting data for INSERT from remote server you make that transaction distributed.
DTC must inspect all objects used within the transaction, apply necessary locks,...
June 26, 2008 at 9:51 pm
Viewing 15 posts - 2,941 through 2,955 (of 6,036 total)