L
Lxocram
Summary of the problems surrounding ADP SQL and TRIGGERS
Every trigger starts with
AS
SET NOCOUNT on
DECLARE @identity int, @strsql varchar(128)
SET @identity=@@identity
And ends with
SET @strsql='select identity (int, ' + cast(@identity as varchar(10))
+ ', 1) as id into #tmp'
EXECUTE(@strsql)
SET NOCOUNT OFF
Other possibilities of failure too look into:
*Updatability issues (mainly on views, best way is too work directly
on tables where possible)
http://msdn2.microsoft.com/en-us/library/bb188204.aspx#optaccsql_topic3
*Does your table contain bit values? make them non-nullable and give
them a default value
Every trigger starts with
AS
SET NOCOUNT on
DECLARE @identity int, @strsql varchar(128)
SET @identity=@@identity
And ends with
SET @strsql='select identity (int, ' + cast(@identity as varchar(10))
+ ', 1) as id into #tmp'
EXECUTE(@strsql)
SET NOCOUNT OFF
Other possibilities of failure too look into:
*Updatability issues (mainly on views, best way is too work directly
on tables where possible)
http://msdn2.microsoft.com/en-us/library/bb188204.aspx#optaccsql_topic3
*Does your table contain bit values? make them non-nullable and give
them a default value