I read several posts before posting this, but too dense to fix problem.Stored procedure returns error "Conversion failed when converting date and/or time from character string"Error comes from eveEventDate column which is datetime, null in both the myTable and myOTableUSE [myDatabase]GO/****** Object: StoredProcedure [dbo].[sp_update_myTable] Script Date: 03/28/2012 15:47:13 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- =============================================-- Author: <Author,,Name>-- Create date: <Create Date,,>-- Description: <Description,,>-- =============================================ALTER PROCEDURE [dbo].[sp_update_myTable] ASBEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for procedure hereINSERT INTO dbo.tbl_myTableSELECT eveID, sitID, eveEventDate, EventDate, inrCodeFROM OPENQUERY(offsiteServer, 'select * from offsiteServer.myOTable.dbo.vw_myOTable') AS HSELWHERE (sitID = 11)END
My other fields are int and nvarchar so what do I need to do for the eveEventDate field to get rid of error?