Hello,
I'm begging for some help...Please. I am about to go crazy trying to figure out what the problem is with my trigger. It works fine on non-Sharepoint databases. I don't know enough about Sharepoint to know what the problem is. I have written a trigger to insert data into another database on the same server whatever data is inserted into the sharepoint database. The trigger is on the UserData table in the Sharepoint database. Here is the trigger:
Create Trigger [Insert_db] ON [dbo].[UserData]
FOR INSERT AS
INSERT INTO dbTimeSheet..ProjectInfo(BidNumber, ProjectName)
SELECT i.nvarchar2, i.nvarchar1
FROM INSERTED i
Here is the error:
The list item could not be added because the length of the fields was too long. Please shorten the new entries or remove some fields from this list.
Is it talking about the fields in the database or the fields in the Sharepoint form?
The insert works when its just inserting into the Sharepoint database, but not when the trigger is added to the table. Also, because there is an error, it does not allow any of the users to use the Sharepoint sites for any inserting, updating or deleting. Please help.
*******(*)*******
*******(*)*******