CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Implicit conversion from data type datetime to int is not allowed

Print topic Send  topic

Author Message
aegregory

Posts: 7
Posted: 05/06/2006, 2:53 PM

I created a stored procedure in SQL Server to insert values from my asp form. The server returns the following error when I attempt to add a record:

"Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query. (Microsoft OLE DB Provider for SQL Server)"

I'm not sure where this conversion from datetime to int is taking place. The fields in the table are set to smalldatetime. The textboxes on my form are set to 'Date mm/dd/yyyy'.

The parameters in my Custom Insert are set up as follows:
Name: @Date_Received
Direction: Input
Data Type: DateTime
Type: URL

I've tried altering my stored procedure the following ways and nothing seems to work.

@Date_Received nvarchar(15) = NULL
@Date_Received smalldatetime

I tried the cast and convert functions in the values section too.
Convert(varchar(10),@Dispute_Date_Received,101)

I'm stumped and I don't know what else to try. Can anyone tell me what is really causing this error and how to fix the problem?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.