Cdbcommand Failed To Execute With Sql Server

Hi all,

I am using database SQL Server . Every thing working fine but when insert records it shows error. I don’t know how to slove . Please suggest me .

I am using below code for insert




     $newApp = new AppTokens();

     $newApp->UserProfileId = 'profileId;

     $newApp->ClientId = 'ClientId';

     $newApp->Expired = 900;

     $newApp->CreatedDate = '2013-03-22';

     $newApp->TockenKey = 'tokey_key';					

     $newApp->save();




CDbCommand failed to execute the SQL statement:

SQLSTATE[42000]: [Microsoft][SQL Server Native Client 11.0][SQL Server]

Conversion failed when converting from a character string to uniqueidentifier.. 

The SQL statement executed was: INSERT INTO [dbo].[tbl_acc_appTokens] 

([TockenKey], [UserProfileId], [ClientId], [Expired], [CreatedDate]) 

VALUES (:yp0, :yp1, :yp2, :yp3, :yp4)