Advertisement

03.13.2008 at 07:30AM PDT, ID: 23238624
[x]
Attachment Details

Store Porcedure - Error converting data type varchar to datetime.

Asked by healthmanagement in MS SQL Server

Tags: SQL

My SP wont except an english date format I havent come across this before with my store procedures they have been accepting english date formats now for months - e.g. 13/12/2008

alter procedure [dbo].[spWDReportMedicalHistory]

      @strClientName varchar(50),
      @dtmWellnessDate datetime,
      @empFirstName varchar(50),
      @empLastName varchar(50)
as
Begin

SELECT     tblWellness.strMedicalHistory
FROM         tblWellness INNER JOIN
                      tblOhperaEmployees ON tblWellness.fkEmp = tblOhperaEmployees.uidCaseEmployee INNER JOIN
                      tblClients ON tblWellness.fkClient = tblClients.uidClient
      WHERE  
 (tblWellness.dtmWellnessDate = CONVERT(DATETIME, @dtmWellnessDate, 103))            AND  (tblClients.strClientName LIKE @strClientName + '%')
      AND  (tblOhperaEmployees.strLastName LIKE @empLastName + '%')
      AND (tblOhperaEmployees.strFirstName LIKE  @empFirstName + '%')

EndStart Free Trial
[+][-]03.13.2008 at 07:34AM PDT, ID: 21116577

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: SQL
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 3
Solution Grade: C
 
 
[+][-]03.13.2008 at 07:41AM PDT, ID: 21116632

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 08:33AM PDT, ID: 21117235

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 12:48PM PDT, ID: 21120121

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 12:49PM PDT, ID: 21120135

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 12:52PM PDT, ID: 21120163

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 01:30AM PDT, ID: 21531114

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628