Viewing 14 posts - 16 through 30 (of 30 total)
Lowell (4/6/2012)
it's getting inserted items, putting them into a comma delimited string(because of course the trigger could have multiple rows!)
for your...
April 6, 2012 at 1:00 pm
Mike01 (4/6/2012)
April 6, 2012 at 12:55 pm
Sean Lange (5/2/2011)
create table dummy
(
data varchar(25),
VDate varchar(25),
ID int
)
insert dummy select 'xyz', 'Jan 1, 1990', '1'
union all
select 'pdq','','2'
union all
select...
May 2, 2011 at 11:44 am
Sean Lange (5/2/2011)
May 2, 2011 at 11:06 am
Source table: dbo.[HCS_STG_CNSMR_APLCTN]
[STG_DATA_PRCSS_TMSTMP] [datetime] NULL,
[STG_DATA_ROW_ID] [int] NOT NULL,
[CNSMR_APLCTN_CD] [char](3) NULL,
[PRCSS_STATUS_CD] [char](3)
Target table:
[dbo].[deleted_HCS_STG_CNSMR_APLCTN]
[STG_DATA_PRCSS_TMSTMP] [datetime] NULL,
[STG_DATA_ROW_ID] [int] NOT NULL,
[CNSMR_APLCTN_CD] [char](3) NULL,
[PRCSS_STATUS_CD] [char](3),
...
October 14, 2010 at 12:51 pm
Yes, just server name.
The hope is the code would work without changes - since we cannot locate the source (written 9 yrs ago, when we didn't have effective...
January 14, 2010 at 8:04 am
OK Ok. Now, I feel foolish!
Rowcount was still set to one!
A simple 'set rowcount 0' fixed my problem. Man, am I foolish!
Thank you for all your...
November 18, 2009 at 10:41 am
OK. After going through the million lines between the exec statement and the completion, I notice that only one of the tables has its FKs enabled during step four....
November 18, 2009 at 10:24 am
From the trace:
SP:StmtCompletedUse [Specialty_Marine_ljb]; Microsoft SQL Server Management Studio - Query
SP:StmtStartingexec sp_msforeachtable "ALTER TABLE ? CHECK CONSTRAINT all"Microsoft SQL Server Management Studio - Query
...
Then a million (exaggeration) lines for the...
November 17, 2009 at 4:21 pm
1. The data is actually being inserted on the target DB. Otherwise, if they were enabled, it would violate the FK constraint.
2. I have manually checked...
November 17, 2009 at 2:48 pm
Added the ; with no change in execution. Step 1, disabling the FKs, works just fine as is.
The code works outside of the SP.
No error appears,...
November 17, 2009 at 2:18 pm
Thanks, this is a great article! THANK YOU!
This particular instance is SP1, but the alternatives mentioned in the article would work... EXCEPT for one issue. The instance...
November 5, 2009 at 7:00 am
Viewing 14 posts - 16 through 30 (of 30 total)