Hii to all,
when iam trying to insert or update a record in to a table present in remote server from my local computer by writing a trigger iam geeting a following error:-
"The operation could not be performed because OLE DB provider "MSDASQL" for linked server "MYSQL" was unable to begin a distributed transaction". and iam writing a trigger like following

CREATE TRIGGER MYSQLLogRecords
ON mainlog
FOR INSERT
AS
BEGIN
SET NOCOUNT ON
IF EXISTS(SELECT *FROM mainlog)
--BEGIN
INSERT OPENQUERY(MYSQL,'SELECT * FROM users.nsparelog')
SELECT * FROM inserted
ELSE
INSERT OPENQUERY(MYSQL,'SELECT * FROM users.nsparelog')
SELECT * FROM inserted
END.
Iam using a linked server for connecting to MYSQL database, Please can any one help me hoe should i overcome this error.Thanks in advance