Results 1 to 2 of 2

Thread: Stored Procedure & DateTime

  1. #1

    Thread Starter
    Hyperactive Member DKCK's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    329

    Stored Procedure & DateTime

    Hi,

    I have a 8 bit datetime field in a SQL Server 7.0 database. What I am trying to do is use a stored procedure to update the field. Here is the sp:

    CREATE PROCEDURE [sp_update_UserLeagueDraft]
    (@ID [int],
    @NextPick [int],
    @Round [int],
    @Deadline [datetime])

    AS UPDATE [deadlystrikecom].[dbo].[UserLeagues]

    SET [NextPick] = @NextPick,
    [Round] = @Round,
    [PickDeadline] = @Deadline
    WHERE
    ( [ID] = @ID)
    GO


    Getting this error when the sp is run:

    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

    [Microsoft][ODBC SQL Server Driver]Optional feature not implemented


    The main problem I think is datetime field.

  2. #2
    Fanatic Member vb_dba's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere aloft between the real world and insanity
    Posts
    1,016
    Can you post your VB code where you are calling this stored procedure along with your connection string to the database?

    Are you getting any errors on any other stored procedures you call?
    Chris

    Master Of My Domain
    Got A Question? Look Here First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width