CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.commerce_starter_kit Tags:
Item Type: NewsGroup Date Entered: 10/27/2004 2:31:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 706 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
lz74d
Asp.Net User
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM10/27/2004 2:31:03 AM

0

Tried to retrieve data from input dataset. But get this 'SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM' error. I guess it's a typical question. Can anybody help as soon as possible, please?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

In .aspx page: <%# DataBinder.Eval(Container.DataItem, "StartTime", "{0:T}") %>

In .aspx.vb: Dim StartTime As Date = Request.Params("StartTime") underneath page_load

In Components/ProductsDB:

Public Function GetProducts2c(ByVal categoryID As Integer, ByVal State As String, ByVal StartTime As Date) As SqlDataReader

' Create Instance of Connection and Command Object
Dim myConnection As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim myCommand As SqlCommand = New SqlCommand("CMRC_ProductsByCategory2c", myConnection)

' Mark the Command as a SPROC
myCommand.CommandType = CommandType.StoredProcedure

' Add Parameters to SPROC
Dim parameterStartTime As SqlParameter = New SqlParameter("@StartTime", SqlDbType.DateTime, 8)
parameterStartTime.Value = StartTime
myCommand.Parameters.Add(parameterStartTime)

' Execute the command
myConnection.Open()
Dim result As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)

' Return the datareader result
Return result

End Function

In Stored Procedure:

CREATE Procedure CMRC_ProductsByCategory2c
(
@StartTime DateTime
)
AS

SELECT
convert(varchar,CA.StartTime,108)

FROM
CMRC_AppointmentTime CA

WHERE
convert(varchar,CA.StartTime,108)>=convert(varchar,@StartTime,108)
GO

Used SQL Query Analyser to test the Stored Procedure, it was fine. But it just gave me error when used in website. Can anybody answer my question as soon as possible, please?!!!!!!!!!!!!
lz74d
Asp.Net User
Re: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM11/2/2004 11:27:13 AM

-1

Is there anybody can help with this problem? Please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Million thanks to anyone who can help. And you'll be blessed too since I've many efforts still without luck. Appreciate a lot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12 ... Dec 2, 2005 ... Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM- .Net Development. Visit Dev Shed to discuss SqlDateTime overflow.
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12 ... Is there a way to catch the exeption (SqlDateTime overflow. Must be between 1/1/ 1753 12:00:00 AM and 12/31/9999 11:59:59 PM) with in SQL ...
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12 ... If the same code is working on one machine and not another, then I am guessing the other machine is going to a different database.
PLEASE HELP ME: SqlDateTime overflow. Must be between 1/1/1753 12 ... PLEASE HELP ME: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. Last post 04-03-2008 8:18 AM by ...
SQL Server datetime set blank or null = SQL Server error: System ... Nov 8, 2006 ... SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.) will occur if you try to pass an ...

SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12 ... But get this 'SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/ 31/9999 11:59:59 PM' error. I guess it's a typical question. ...
Nullable DateTime syntax - ng.asp-net-forum.web_forms - error ... SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59: 59 PM. While I have been able to figure out the syntax for nulls in other ...






eshop-server

whats the best way to retrieve the order data from my isp

uml diagrams

server error in '/' application using csk on web-host-plus servers

can't download starter kits?

looking for help on custom commerce application

after install - problem with request.params - really really odd -

ibuyspy namespace

can't install!

my implementation of the commerce starter kit

broken image links

test connection unsuccessful

addtocart.aspx

menu modification help

installing the access version

where can i see resource files?

question about ibuyspy login functions

sort by manufacturer

adding javascript onclick event

hi guys, i need the technique how to store data in the shopping cart.

how to add customer upload file feature and allow customer and admin to view the file

ibuyspy store help required, urgent

bug: csk made only for one language

ibuyspy store vs oscommerce

install error - unable to lookup local instances of sql server or msde

commercial use?

error on install

request feedback on fully functional dotnet carts (bv commerce, etc.)

problem compiling security class in ibuystore

hola me gustaria encontrar documentacion en castellano

   
  Privacy | Contact Us
All Times Are GMT