<<Error converting data type char to smalldatetime>>

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default <<Error converting data type char to smalldatetime>>

    Hi All (IIS 5, SQL 2k, Win 2k)
    I'm stumped and can't find where I would be "mis-converting" data.
    I receive the following error ONLY when I update to or insert a null value into a smalldatetime field in SQL.
    <<Error converting data type char to smalldatetime>>
    Following are the relevant bits of code. It happens with either ConnectionDate or CompletionDate (they are both setup the same)
    Everything seems to line-up in order as far as the fields and stored proc variables and again if a date is used I do not receive
    the error and everything updates or inserts as it should.
    What am I missing?
    *********************************************
    If Len(Request.Form("txtConnectionDate")) <> 0 Then
    strConnectionDate = FormatDateTime(Request.Form("txtConnectionDate"))
    Else
    strConnectionDate = "Null"
    End If
    ****
    Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    cnMain.spUpdateStudentConnectionRecord intConnectionID, StuID,
    strFirstName, strLastName, strRoomCode, strEMailAddress,
    strCellPhoneNumber, strConnectionDate, strConnectionTerm,
    strConnectionYear, strConnectionDefinition, strCompletionDate,
    strNotesOnStudent, strBestTimeToContact, boolUserAgreeSigned, rstUpdateConn
    ****
    CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    @ConnectionID int
    ,@StudentIDNumber char(7)
    ,@FirstName varchar(50)
    ,@LastName varchar(50)
    ,@RoomCode varchar(50)
    ,@EmailAddress varchar(50)
    ,@CellPhoneNumber varchar(14)
    ,@ConnectionDate smalldatetime
    ,@ConnectionTerm varchar(6)
    ,@ConnectionYear varchar(4)
    ,@ConnectionDefinition varchar(50)
    ,@CompletionDate smalldatetime
    ,@NotesOnStudent varchar(255)
    ,@BestTimeToContact varchar(255)
    ,@UserAgreeSigned bit

    AS

    SET NOCOUNT ON

    BEGIN TRANSACTION

    UPDATE tblConnectionInformation
    SET ConnectionDate = @ConnectionDate,
    ConnectionTerm = @ConnectionTerm,
    ConnectionYear = @ConnectionYear,
    ConnectionDefinition = @ConnectionDefinition,
    CompletionDate = @CompletionDate,
    UserAgreeSigned = @UserAgreeSigned,
    BestTimeToContact = @BestTimeToContact
    WHERE ConnectionID = @ConnectionID

    If @@ERROR <> 0
    BEGIN
    ROLLBACK TRAN
    RETURN
    END
    <<2 more inserts>>
    *********************************************

    Thank you.
    gdr
    --
    Gary D. Rezek
    University Networking Services
    South Dakota State University


    Gary D. Rezek Guest

  2. Similar Questions and Discussions

    1. Converting from data type varchar to data type money
      Hi all, Tearing my hair out trying to figure this out. If anyone can provide any help i would greatly appreciate it. When I try to do an insert...
    2. Converting data type varchar to data type money
      Hi all, Tearing my hair out trying to figure this out. If anyone can provide any help i would greatly appreciate it. When I try to do an insert...
    3. How to convert the CHAR type to NUM in the select?
      Hi : I want to convert a char column to a num type; I don't known which internal function can be used! Sample : select to_num( char_column_name )...
    4. cast from datetime type to smalldatetime type?
      Hi, How can I cast from datetime type to smalldatetime type. I get the records from a table which has got a datetime type column but I want to...
    5. Converting Strings to SmallMoney Data Type
      I'm trying to convert a string to a money(or smallmoney) data type. The original string from the data source looks like this: -00000010232 (this...
  3. #2

    Default Re: <<Error converting data type char to smalldatetime>>

    Set your parameter as:

    @ConnectionDate SMALLDATETIME = NULL

    Then, if it's supposed to be null, don't pass that parameter.




    "Gary D. Rezek" <Gary_Rezek@NOSPAMsdstate.edu> wrote in message
    news:uzAlS24eDHA.3248@tk2msftngp13.phx.gbl...
    > Hi All (IIS 5, SQL 2k, Win 2k)
    > I'm stumped and can't find where I would be "mis-converting" data.
    > I receive the following error ONLY when I update to or insert a null value
    into a smalldatetime field in SQL.
    > <<Error converting data type char to smalldatetime>>
    > Following are the relevant bits of code. It happens with either
    ConnectionDate or CompletionDate (they are both setup the same)
    > Everything seems to line-up in order as far as the fields and stored proc
    variables and again if a date is used I do not receive
    > the error and everything updates or inserts as it should.
    > What am I missing?
    > *********************************************
    > If Len(Request.Form("txtConnectionDate")) <> 0 Then
    > strConnectionDate = FormatDateTime(Request.Form("txtConnectionDate"))
    > Else
    > strConnectionDate = "Null"
    > End If
    > ****
    > Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    > cnMain.spUpdateStudentConnectionRecord intConnectionID, StuID,
    > strFirstName, strLastName, strRoomCode, strEMailAddress,
    > strCellPhoneNumber, strConnectionDate, strConnectionTerm,
    > strConnectionYear, strConnectionDefinition, strCompletionDate,
    > strNotesOnStudent, strBestTimeToContact, boolUserAgreeSigned,
    rstUpdateConn
    > ****
    > CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    > @ConnectionID int
    > ,@StudentIDNumber char(7)
    > ,@FirstName varchar(50)
    > ,@LastName varchar(50)
    > ,@RoomCode varchar(50)
    > ,@EmailAddress varchar(50)
    > ,@CellPhoneNumber varchar(14)
    > ,@ConnectionDate smalldatetime
    > ,@ConnectionTerm varchar(6)
    > ,@ConnectionYear varchar(4)
    > ,@ConnectionDefinition varchar(50)
    > ,@CompletionDate smalldatetime
    > ,@NotesOnStudent varchar(255)
    > ,@BestTimeToContact varchar(255)
    > ,@UserAgreeSigned bit
    >
    > AS
    >
    > SET NOCOUNT ON
    >
    > BEGIN TRANSACTION
    >
    > UPDATE tblConnectionInformation
    > SET ConnectionDate = @ConnectionDate,
    > ConnectionTerm = @ConnectionTerm,
    > ConnectionYear = @ConnectionYear,
    > ConnectionDefinition = @ConnectionDefinition,
    > CompletionDate = @CompletionDate,
    > UserAgreeSigned = @UserAgreeSigned,
    > BestTimeToContact = @BestTimeToContact
    > WHERE ConnectionID = @ConnectionID
    >
    > If @@ERROR <> 0
    > BEGIN
    > ROLLBACK TRAN
    > RETURN
    > END
    > <<2 more inserts>>
    > *********************************************
    >
    > Thank you.
    > gdr
    > --
    > Gary D. Rezek
    > University Networking Services
    > South Dakota State University
    >
    >

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: <<Error converting data type char to smalldatetime>>

    Which means you'll have to NAME your parameters instead of just listing
    them...


    "Gary D. Rezek" <Gary_Rezek@NOSPAMsdstate.edu> wrote in message
    news:uzAlS24eDHA.3248@tk2msftngp13.phx.gbl...
    > Hi All (IIS 5, SQL 2k, Win 2k)
    > I'm stumped and can't find where I would be "mis-converting" data.
    > I receive the following error ONLY when I update to or insert a null value
    into a smalldatetime field in SQL.
    > <<Error converting data type char to smalldatetime>>
    > Following are the relevant bits of code. It happens with either
    ConnectionDate or CompletionDate (they are both setup the same)
    > Everything seems to line-up in order as far as the fields and stored proc
    variables and again if a date is used I do not receive
    > the error and everything updates or inserts as it should.
    > What am I missing?
    > *********************************************
    > If Len(Request.Form("txtConnectionDate")) <> 0 Then
    > strConnectionDate = FormatDateTime(Request.Form("txtConnectionDate"))
    > Else
    > strConnectionDate = "Null"
    > End If
    > ****
    > Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    > cnMain.spUpdateStudentConnectionRecord intConnectionID, StuID,
    > strFirstName, strLastName, strRoomCode, strEMailAddress,
    > strCellPhoneNumber, strConnectionDate, strConnectionTerm,
    > strConnectionYear, strConnectionDefinition, strCompletionDate,
    > strNotesOnStudent, strBestTimeToContact, boolUserAgreeSigned,
    rstUpdateConn
    > ****
    > CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    > @ConnectionID int
    > ,@StudentIDNumber char(7)
    > ,@FirstName varchar(50)
    > ,@LastName varchar(50)
    > ,@RoomCode varchar(50)
    > ,@EmailAddress varchar(50)
    > ,@CellPhoneNumber varchar(14)
    > ,@ConnectionDate smalldatetime
    > ,@ConnectionTerm varchar(6)
    > ,@ConnectionYear varchar(4)
    > ,@ConnectionDefinition varchar(50)
    > ,@CompletionDate smalldatetime
    > ,@NotesOnStudent varchar(255)
    > ,@BestTimeToContact varchar(255)
    > ,@UserAgreeSigned bit
    >
    > AS
    >
    > SET NOCOUNT ON
    >
    > BEGIN TRANSACTION
    >
    > UPDATE tblConnectionInformation
    > SET ConnectionDate = @ConnectionDate,
    > ConnectionTerm = @ConnectionTerm,
    > ConnectionYear = @ConnectionYear,
    > ConnectionDefinition = @ConnectionDefinition,
    > CompletionDate = @CompletionDate,
    > UserAgreeSigned = @UserAgreeSigned,
    > BestTimeToContact = @BestTimeToContact
    > WHERE ConnectionID = @ConnectionID
    >
    > If @@ERROR <> 0
    > BEGIN
    > ROLLBACK TRAN
    > RETURN
    > END
    > <<2 more inserts>>
    > *********************************************
    >
    > Thank you.
    > gdr
    > --
    > Gary D. Rezek
    > University Networking Services
    > South Dakota State University
    >
    >

    Aaron Bertrand - MVP Guest

  5. #4

    Default Re: <<Error converting data type char to smalldatetime>>

    Hi Aaron,
    Thank you.
    Sorry to be a bother, but ........
    Here is what I ended up doing, but now, I get an error of

    <<Error converting data type char to int>>

    However when strSQL (found below) is placed in the query analyzer (using the same data as from the asp page) this runs just fine
    and updates as it should.
    So now what am I missing?

    intConnectionID= Request.Form("lngConnectionID")
    StuID = Request.Form("txtStudentIDNumber")
    strFirstName = Request.Form("txtStudentFirstName")
    strLastName = Request.Form("txtStudentLastName")
    strRoomCode = Request.Form("selRoomCode")
    strEMailAddress = Request.Form("txtEmailAddress")
    strCellPhoneNumber = Request.Form("txtCellPhoneNumber")
    strConnectionDate = Request.Form("txtConnectionDate")
    strConnectionTerm = Request.Form("radConnectionTerm")
    strConnectionYear = Request.Form("selConnectionYear")
    strConnectionDefinition = Request.Form("selConnectionDefinition")
    strCompletionDate = Request.Form("txtCompletionDate")
    strNotesOnStudent = Request.Form("txtNotesOnStudent")
    strBestTimeToContact = Request.Form("txtBestTimeToContact")

    If Request.Form("chkUserAgreeSigned") = "True" Then
    boolUserAgreeSigned = 1
    Else
    boolUserAgreeSigned = 0
    End If
    '---------------------------------------------------------------------------------
    strSQL = "EXEC spUpdateStudentConnectionRecord "
    strSQL = strSQL & "@ConnectionID = " & intConnectionID
    strSQL = strSQL & ", @StudentIDNumber = '" & StuID & "'"
    strSQL = strSQL & ", @FirstName = '" & strFirstName & "'"
    strSQL = strSQL & ", @LastName = '" & strLastName & "'"
    strSQL = strSQL & ", @RoomCode = '" & strRoomCode & "'"
    strSQL = strSQL & ", @EMailAddress = '" & strEMailAddress & "'"
    strSQL = strSQL & ", @CellPhoneNumber = '" & strCellPhoneNumber & "'"
    strSQL = strSQL & ", @ConnectionTerm = '" & strConnectionTerm & "'"
    strSQL = strSQL & ", @ConnectionYear = '" & strConnectionYear & "'"
    strSQL = strSQL & ", @ConnectionDefinition = '" & strConnectionDefinition & "'"
    strSQL = strSQL & ", @NotesOnStudent = '" & strNotesOnStudent & "'"
    strSQL = strSQL & ", @BestTimeToContact = '" & strBestTimeToContact & "'"
    strSQL = strSQL & ", @UserAgreeSigned = " & boolUserAgreeSigned
    If Len(strConnectionDate) <> 0 Then
    strSQL = strSQL & ", @ConnectionDate = '" & strConnectionDate & "'"
    Else
    'do nothing
    End If
    If Len(strCompletionDate) <> 0 Then
    strSQL = strSQL & ", @CompletionDate = '" & strCompletionDate & "'"
    Else
    'do nothing
    End If

    'Response.Write strSQL
    'Response.End

    Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    cnMain.spUpdateStudentConnectionRecord strSQL, rstUpdateConn

    **(pertinent stored proc lines of code)**(which agree with the values in their respective tables)
    CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    @ConnectionID int
    ,@StudentIDNumber char(7)
    ,@FirstName varchar(50)
    ,@LastName varchar(50)
    ,@RoomCode varchar(50)
    ,@EmailAddress varchar(50)
    ,@CellPhoneNumber varchar(14)
    ,@ConnectionDate smalldatetime = NULL
    ,@ConnectionTerm varchar(6)
    ,@ConnectionYear varchar(4)
    ,@ConnectionDefinition varchar(50)
    ,@CompletionDate smalldatetime = NULL
    ,@NotesOnStudent varchar(255)
    ,@BestTimeToContact varchar(255)
    ,@UserAgreeSigned bit


    Again thank you for your time and help.

    gdr
    --
    Gary D. Rezek
    University Networking Services
    South Dakota State University

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message news:%23N4qa%234eDHA.3284@tk2msftngp13.phx.gbl...
    > Which means you'll have to NAME your parameters instead of just listing
    > them...
    >
    >

    Gary D. Rezek Guest

  6. #5

    Default Re: <<Error converting data type char to smalldatetime>>

    Can you show the strSQL that you pasted into Query Analyzer? Seeing your
    ASP code doesn't help me, because I have no idea what is in your
    Request.Form variables...



    "Gary D. Rezek" <Gary_Rezek@NOSPAMsdstate.edu> wrote in message
    news:OdQa9l7eDHA.3788@tk2msftngp13.phx.gbl...
    > Hi Aaron,
    > Thank you.
    > Sorry to be a bother, but ........
    > Here is what I ended up doing, but now, I get an error of
    >
    > <<Error converting data type char to int>>
    >
    > However when strSQL (found below) is placed in the query analyzer (using
    the same data as from the asp page) this runs just fine
    > and updates as it should.
    > So now what am I missing?
    >
    > intConnectionID= Request.Form("lngConnectionID")
    > StuID = Request.Form("txtStudentIDNumber")
    > strFirstName = Request.Form("txtStudentFirstName")
    > strLastName = Request.Form("txtStudentLastName")
    > strRoomCode = Request.Form("selRoomCode")
    > strEMailAddress = Request.Form("txtEmailAddress")
    > strCellPhoneNumber = Request.Form("txtCellPhoneNumber")
    > strConnectionDate = Request.Form("txtConnectionDate")
    > strConnectionTerm = Request.Form("radConnectionTerm")
    > strConnectionYear = Request.Form("selConnectionYear")
    > strConnectionDefinition = Request.Form("selConnectionDefinition")
    > strCompletionDate = Request.Form("txtCompletionDate")
    > strNotesOnStudent = Request.Form("txtNotesOnStudent")
    > strBestTimeToContact = Request.Form("txtBestTimeToContact")
    >
    > If Request.Form("chkUserAgreeSigned") = "True" Then
    > boolUserAgreeSigned = 1
    > Else
    > boolUserAgreeSigned = 0
    > End If
    >
    '---------------------------------------------------------------------------
    ------
    > strSQL = "EXEC spUpdateStudentConnectionRecord "
    > strSQL = strSQL & "@ConnectionID = " & intConnectionID
    > strSQL = strSQL & ", @StudentIDNumber = '" & StuID & "'"
    > strSQL = strSQL & ", @FirstName = '" & strFirstName & "'"
    > strSQL = strSQL & ", @LastName = '" & strLastName & "'"
    > strSQL = strSQL & ", @RoomCode = '" & strRoomCode & "'"
    > strSQL = strSQL & ", @EMailAddress = '" & strEMailAddress & "'"
    > strSQL = strSQL & ", @CellPhoneNumber = '" & strCellPhoneNumber & "'"
    > strSQL = strSQL & ", @ConnectionTerm = '" & strConnectionTerm & "'"
    > strSQL = strSQL & ", @ConnectionYear = '" & strConnectionYear & "'"
    > strSQL = strSQL & ", @ConnectionDefinition = '" & strConnectionDefinition
    & "'"
    > strSQL = strSQL & ", @NotesOnStudent = '" & strNotesOnStudent & "'"
    > strSQL = strSQL & ", @BestTimeToContact = '" & strBestTimeToContact & "'"
    > strSQL = strSQL & ", @UserAgreeSigned = " & boolUserAgreeSigned
    > If Len(strConnectionDate) <> 0 Then
    > strSQL = strSQL & ", @ConnectionDate = '" & strConnectionDate & "'"
    > Else
    > 'do nothing
    > End If
    > If Len(strCompletionDate) <> 0 Then
    > strSQL = strSQL & ", @CompletionDate = '" & strCompletionDate & "'"
    > Else
    > 'do nothing
    > End If
    >
    > 'Response.Write strSQL
    > 'Response.End
    >
    > Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    > cnMain.spUpdateStudentConnectionRecord strSQL, rstUpdateConn
    >
    > **(pertinent stored proc lines of code)**(which agree with the values in
    their respective tables)
    > CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    > @ConnectionID int
    > ,@StudentIDNumber char(7)
    > ,@FirstName varchar(50)
    > ,@LastName varchar(50)
    > ,@RoomCode varchar(50)
    > ,@EmailAddress varchar(50)
    > ,@CellPhoneNumber varchar(14)
    > ,@ConnectionDate smalldatetime = NULL
    > ,@ConnectionTerm varchar(6)
    > ,@ConnectionYear varchar(4)
    > ,@ConnectionDefinition varchar(50)
    > ,@CompletionDate smalldatetime = NULL
    > ,@NotesOnStudent varchar(255)
    > ,@BestTimeToContact varchar(255)
    > ,@UserAgreeSigned bit
    >
    >
    > Again thank you for your time and help.
    >
    > gdr
    > --
    > Gary D. Rezek
    > University Networking Services
    > South Dakota State University
    >
    > "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:%23N4qa%234eDHA.3284@tk2msftngp13.phx.gbl...
    > > Which means you'll have to NAME your parameters instead of just listing
    > > them...
    > >
    > >
    >
    >

    Aaron Bertrand - MVP Guest

  7. #6

    Default Re: <<Error converting data type char to smalldatetime>>

    Hi Aaron,

    EXEC spUpdateStudentConnectionRecord @ConnectionID = 11660, @StudentIDNumber = '8888886', @FirstName = 'another', @LastName =
    'testentry', @RoomCode = 'YH480-1', @EMailAddress = 'anywhere@anyhow', @CellPhoneNumber = '6056666666', @ConnectionTerm =
    'Fall', @ConnectionYear = '2003', @ConnectionDefinition = 'Disconnect-No Payment', @NotesOnStudent = '', @BestTimeToContact =
    '', @UserAgreeSigned = 0, @ConnectionDate = '9/11/2003'

    gdr

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message news:eIptiY8eDHA.1712@TK2MSFTNGP11.phx.gbl...
    > Can you show the strSQL that you pasted into Query Analyzer? Seeing your
    > ASP code doesn't help me, because I have no idea what is in your
    > Request.Form variables...
    >
    >
    >
    > "Gary D. Rezek" <Gary_Rezek@NOSPAMsdstate.edu> wrote in message
    > news:OdQa9l7eDHA.3788@tk2msftngp13.phx.gbl...
    > > Hi Aaron,
    > > Thank you.
    > > Sorry to be a bother, but ........
    > > Here is what I ended up doing, but now, I get an error of
    > >
    > > <<Error converting data type char to int>>
    > >
    > > However when strSQL (found below) is placed in the query analyzer (using
    > the same data as from the asp page) this runs just fine
    > > and updates as it should.
    > > So now what am I missing?
    > >
    > > intConnectionID= Request.Form("lngConnectionID")
    > > StuID = Request.Form("txtStudentIDNumber")
    > > strFirstName = Request.Form("txtStudentFirstName")
    > > strLastName = Request.Form("txtStudentLastName")
    > > strRoomCode = Request.Form("selRoomCode")
    > > strEMailAddress = Request.Form("txtEmailAddress")
    > > strCellPhoneNumber = Request.Form("txtCellPhoneNumber")
    > > strConnectionDate = Request.Form("txtConnectionDate")
    > > strConnectionTerm = Request.Form("radConnectionTerm")
    > > strConnectionYear = Request.Form("selConnectionYear")
    > > strConnectionDefinition = Request.Form("selConnectionDefinition")
    > > strCompletionDate = Request.Form("txtCompletionDate")
    > > strNotesOnStudent = Request.Form("txtNotesOnStudent")
    > > strBestTimeToContact = Request.Form("txtBestTimeToContact")
    > >
    > > If Request.Form("chkUserAgreeSigned") = "True" Then
    > > boolUserAgreeSigned = 1
    > > Else
    > > boolUserAgreeSigned = 0
    > > End If
    > >
    > '---------------------------------------------------------------------------
    > ------
    > > strSQL = "EXEC spUpdateStudentConnectionRecord "
    > > strSQL = strSQL & "@ConnectionID = " & intConnectionID
    > > strSQL = strSQL & ", @StudentIDNumber = '" & StuID & "'"
    > > strSQL = strSQL & ", @FirstName = '" & strFirstName & "'"
    > > strSQL = strSQL & ", @LastName = '" & strLastName & "'"
    > > strSQL = strSQL & ", @RoomCode = '" & strRoomCode & "'"
    > > strSQL = strSQL & ", @EMailAddress = '" & strEMailAddress & "'"
    > > strSQL = strSQL & ", @CellPhoneNumber = '" & strCellPhoneNumber & "'"
    > > strSQL = strSQL & ", @ConnectionTerm = '" & strConnectionTerm & "'"
    > > strSQL = strSQL & ", @ConnectionYear = '" & strConnectionYear & "'"
    > > strSQL = strSQL & ", @ConnectionDefinition = '" & strConnectionDefinition
    > & "'"
    > > strSQL = strSQL & ", @NotesOnStudent = '" & strNotesOnStudent & "'"
    > > strSQL = strSQL & ", @BestTimeToContact = '" & strBestTimeToContact & "'"
    > > strSQL = strSQL & ", @UserAgreeSigned = " & boolUserAgreeSigned
    > > If Len(strConnectionDate) <> 0 Then
    > > strSQL = strSQL & ", @ConnectionDate = '" & strConnectionDate & "'"
    > > Else
    > > 'do nothing
    > > End If
    > > If Len(strCompletionDate) <> 0 Then
    > > strSQL = strSQL & ", @CompletionDate = '" & strCompletionDate & "'"
    > > Else
    > > 'do nothing
    > > End If
    > >
    > > 'Response.Write strSQL
    > > 'Response.End
    > >
    > > Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    > > cnMain.spUpdateStudentConnectionRecord strSQL, rstUpdateConn
    > >
    > > **(pertinent stored proc lines of code)**(which agree with the values in
    > their respective tables)
    > > CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    > > @ConnectionID int
    > > ,@StudentIDNumber char(7)
    > > ,@FirstName varchar(50)
    > > ,@LastName varchar(50)
    > > ,@RoomCode varchar(50)
    > > ,@EmailAddress varchar(50)
    > > ,@CellPhoneNumber varchar(14)
    > > ,@ConnectionDate smalldatetime = NULL
    > > ,@ConnectionTerm varchar(6)
    > > ,@ConnectionYear varchar(4)
    > > ,@ConnectionDefinition varchar(50)
    > > ,@CompletionDate smalldatetime = NULL
    > > ,@NotesOnStudent varchar(255)
    > > ,@BestTimeToContact varchar(255)
    > > ,@UserAgreeSigned bit
    > >
    > >
    > > Again thank you for your time and help.
    > >
    > > gdr
    > > --
    > > Gary D. Rezek
    > > University Networking Services
    > > South Dakota State University
    > >
    > > "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    > news:%23N4qa%234eDHA.3284@tk2msftngp13.phx.gbl...
    > > > Which means you'll have to NAME your parameters instead of just listing
    > > > them...
    > > >
    > > >
    > >
    > >
    >
    >

    Gary D. Rezek Guest

  8. #7

    Default Re: <<Error converting data type char to smalldatetime>>

    That looks fine, and since there are no INT parameters to your stored
    procedure other than connectionID (which looks fine), I think this is
    happening in the body of your procedure.

    Is there any more text with the error message? (e.g. stored procedure blat,
    line x)?

    Please show the body of the stored procedure, and the table structures for
    all tables mentioned within the body of the stored procedure.

    A



    "Gary D. Rezek" <Gary_Rezek@NOSPAMsdstate.edu> wrote in message
    news:uqzLXd8eDHA.944@TK2MSFTNGP11.phx.gbl...
    > Hi Aaron,
    >
    > EXEC spUpdateStudentConnectionRecord @ConnectionID = 11660,
    @StudentIDNumber = '8888886', @FirstName = 'another', @LastName =
    > 'testentry', @RoomCode = 'YH480-1', @EMailAddress = 'anywhere@anyhow',
    @CellPhoneNumber = '6056666666', @ConnectionTerm =
    > 'Fall', @ConnectionYear = '2003', @ConnectionDefinition = 'Disconnect-No
    Payment', @NotesOnStudent = '', @BestTimeToContact =
    > '', @UserAgreeSigned = 0, @ConnectionDate = '9/11/2003'
    >
    > gdr
    >
    > "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:eIptiY8eDHA.1712@TK2MSFTNGP11.phx.gbl...
    > > Can you show the strSQL that you pasted into Query Analyzer? Seeing
    your
    > > ASP code doesn't help me, because I have no idea what is in your
    > > Request.Form variables...
    > >
    > >
    > >
    > > "Gary D. Rezek" <Gary_Rezek@NOSPAMsdstate.edu> wrote in message
    > > news:OdQa9l7eDHA.3788@tk2msftngp13.phx.gbl...
    > > > Hi Aaron,
    > > > Thank you.
    > > > Sorry to be a bother, but ........
    > > > Here is what I ended up doing, but now, I get an error of
    > > >
    > > > <<Error converting data type char to int>>
    > > >
    > > > However when strSQL (found below) is placed in the query analyzer
    (using
    > > the same data as from the asp page) this runs just fine
    > > > and updates as it should.
    > > > So now what am I missing?
    > > >
    > > > intConnectionID= Request.Form("lngConnectionID")
    > > > StuID = Request.Form("txtStudentIDNumber")
    > > > strFirstName = Request.Form("txtStudentFirstName")
    > > > strLastName = Request.Form("txtStudentLastName")
    > > > strRoomCode = Request.Form("selRoomCode")
    > > > strEMailAddress = Request.Form("txtEmailAddress")
    > > > strCellPhoneNumber = Request.Form("txtCellPhoneNumber")
    > > > strConnectionDate = Request.Form("txtConnectionDate")
    > > > strConnectionTerm = Request.Form("radConnectionTerm")
    > > > strConnectionYear = Request.Form("selConnectionYear")
    > > > strConnectionDefinition = Request.Form("selConnectionDefinition")
    > > > strCompletionDate = Request.Form("txtCompletionDate")
    > > > strNotesOnStudent = Request.Form("txtNotesOnStudent")
    > > > strBestTimeToContact = Request.Form("txtBestTimeToContact")
    > > >
    > > > If Request.Form("chkUserAgreeSigned") = "True" Then
    > > > boolUserAgreeSigned = 1
    > > > Else
    > > > boolUserAgreeSigned = 0
    > > > End If
    > > >
    > >
    '---------------------------------------------------------------------------
    > > ------
    > > > strSQL = "EXEC spUpdateStudentConnectionRecord "
    > > > strSQL = strSQL & "@ConnectionID = " & intConnectionID
    > > > strSQL = strSQL & ", @StudentIDNumber = '" & StuID & "'"
    > > > strSQL = strSQL & ", @FirstName = '" & strFirstName & "'"
    > > > strSQL = strSQL & ", @LastName = '" & strLastName & "'"
    > > > strSQL = strSQL & ", @RoomCode = '" & strRoomCode & "'"
    > > > strSQL = strSQL & ", @EMailAddress = '" & strEMailAddress & "'"
    > > > strSQL = strSQL & ", @CellPhoneNumber = '" & strCellPhoneNumber & "'"
    > > > strSQL = strSQL & ", @ConnectionTerm = '" & strConnectionTerm & "'"
    > > > strSQL = strSQL & ", @ConnectionYear = '" & strConnectionYear & "'"
    > > > strSQL = strSQL & ", @ConnectionDefinition = '" &
    strConnectionDefinition
    > > & "'"
    > > > strSQL = strSQL & ", @NotesOnStudent = '" & strNotesOnStudent & "'"
    > > > strSQL = strSQL & ", @BestTimeToContact = '" & strBestTimeToContact &
    "'"
    > > > strSQL = strSQL & ", @UserAgreeSigned = " & boolUserAgreeSigned
    > > > If Len(strConnectionDate) <> 0 Then
    > > > strSQL = strSQL & ", @ConnectionDate = '" & strConnectionDate &
    "'"
    > > > Else
    > > > 'do nothing
    > > > End If
    > > > If Len(strCompletionDate) <> 0 Then
    > > > strSQL = strSQL & ", @CompletionDate = '" & strCompletionDate &
    "'"
    > > > Else
    > > > 'do nothing
    > > > End If
    > > >
    > > > 'Response.Write strSQL
    > > > 'Response.End
    > > >
    > > > Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    > > > cnMain.spUpdateStudentConnectionRecord strSQL, rstUpdateConn
    > > >
    > > > **(pertinent stored proc lines of code)**(which agree with the values
    in
    > > their respective tables)
    > > > CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    > > > @ConnectionID int
    > > > ,@StudentIDNumber char(7)
    > > > ,@FirstName varchar(50)
    > > > ,@LastName varchar(50)
    > > > ,@RoomCode varchar(50)
    > > > ,@EmailAddress varchar(50)
    > > > ,@CellPhoneNumber varchar(14)
    > > > ,@ConnectionDate smalldatetime = NULL
    > > > ,@ConnectionTerm varchar(6)
    > > > ,@ConnectionYear varchar(4)
    > > > ,@ConnectionDefinition varchar(50)
    > > > ,@CompletionDate smalldatetime = NULL
    > > > ,@NotesOnStudent varchar(255)
    > > > ,@BestTimeToContact varchar(255)
    > > > ,@UserAgreeSigned bit
    > > >
    > > >
    > > > Again thank you for your time and help.
    > > >
    > > > gdr
    > > > --
    > > > Gary D. Rezek
    > > > University Networking Services
    > > > South Dakota State University
    > > >
    > > > "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    > > news:%23N4qa%234eDHA.3284@tk2msftngp13.phx.gbl...
    > > > > Which means you'll have to NAME your parameters instead of just
    listing
    > > > > them...
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Aaron Bertrand [MVP] Guest

  9. #8

    Default Re: <<Error converting data type char to smalldatetime>>

    Hi Aaron,

    I think this is everything.

    Error Type:
    Microsoft OLE DB Provider for SQL Server (0x80040E07)
    Error converting data type char to int.
    /ResNetWebReg/RCCSupervisor/StudentInformation.asp, line 184
    (Line 184 is marked below)

    <***code on StudentInformation.asp***>
    SELECT CASE strPostAction
    CASE "edit"
    intConnectionID = Request.Form("lngConnectionID")
    StuID = Request.Form("txtStudentIDNumber")
    strFirstName = Request.Form("txtStudentFirstName")
    strLastName = Request.Form("txtStudentLastName")
    strRoomCode = Request.Form("selRoomCode")
    strEMailAddress = Request.Form("txtEmailAddress")
    strCellPhoneNumber = Request.Form("txtCellPhoneNumber")
    strConnectionDate = Request.Form("txtConnectionDate")
    strConnectionTerm = Request.Form("radConnectionTerm")
    strConnectionYear = Request.Form("selConnectionYear")
    strConnectionDefinition = Request.Form("selConnectionDefinition")
    strCompletionDate = Request.Form("txtCompletionDate")
    strNotesOnStudent = Request.Form("txtNotesOnStudent")
    strBestTimeToContact = Request.Form("txtBestTimeToContact")
    If Request.Form("chkUserAgreeSigned") = "True" Then
    boolUserAgreeSigned = 1
    Else
    boolUserAgreeSigned = 0
    End If
    '---------------------------------------------------------------------------------
    strSQL = "EXEC spUpdateStudentConnectionRecord "
    strSQL = strSQL & "@ConnectionID = " & intConnectionID
    strSQL = strSQL & ", @StudentIDNumber = '" & StuID & "'"
    strSQL = strSQL & ", @FirstName = '" & strFirstName & "'"
    strSQL = strSQL & ", @LastName = '" & strLastName & "'"
    strSQL = strSQL & ", @RoomCode = '" & strRoomCode & "'"
    strSQL = strSQL & ", @EMailAddress = '" & strEMailAddress & "'"
    strSQL = strSQL & ", @CellPhoneNumber = '" & strCellPhoneNumber & "'"
    strSQL = strSQL & ", @ConnectionTerm = '" & strConnectionTerm & "'"
    strSQL = strSQL & ", @ConnectionYear = '" & strConnectionYear & "'"
    strSQL = strSQL & ", @ConnectionDefinition = '" & strConnectionDefinition & "'"
    strSQL = strSQL & ", @NotesOnStudent = '" & strNotesOnStudent & "'"
    strSQL = strSQL & ", @BestTimeToContact = '" & strBestTimeToContact & "'"
    strSQL = strSQL & ", @UserAgreeSigned = " & boolUserAgreeSigned
    If Len(strConnectionDate) <> 0 Then
    strSQL = strSQL & ", @ConnectionDate = '" & strConnectionDate & "'"
    Else
    'do nothing
    End If
    If Len(strCompletionDate) <> 0 Then
    strSQL = strSQL & ", @CompletionDate = '" & strCompletionDate & "'"
    Else
    'do nothing
    End If
    'Response.Write strSQL
    'Response.End
    Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    cnMain.spUpdateStudentConnectionRecord strSQL, rstUpdateConn **(Line 184)**
    **<CASE Add and CASE Delete follow>**

    <****tblConnectionInformation****>
    CREATE TABLE dbo.tblConnectionInformation (
    ConnectionID int IDENTITY (1, 1) NOT NULL ,
    ConnectionDate smalldatetime] NULL ,
    ConnectionTerm varchar (6) NULL,
    ConnectionYear varchar (4) NULL,
    ConnectionDefinition varchar (50) NULL,
    SetupAppointmentDate smalldatetime NULL ,
    CompletionDate smalldatetime NULL ,
    UserAgreeSigned bit NULL ,
    BestTimeToContact varchar (255) NULL,
    NotesOnConnection varchar (255) NULL
    )
    <****tblStudentInformation****>
    CREATE TABLE dbo.tblStudentInformation (
    StudentIDNumber char (7) NOT NULL ,
    LastName varchar (50) NULL ,
    FirstName varchar (50) NULL ,
    EMailAddress varchar (50) NULL ,
    CellPhoneNumber varchar (14) NULL ,
    DateEntered smalldatetime NULL ,
    NotesOnStudent varchar (255) NULL
    )
    GO
    <****tblConnectionRoomDetails****(join table between room data and a connection)>
    CREATE TABLE [dbo].[tblConnectionRoomDetails](
    ConnectionRoomDetailID int IDENTITY (1, 1) NOT NULL ,
    ConnectionID int NOT NULL ,
    RoomCode varchar(50) NOT NULL
    GO

    <****stored procedure****>
    CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    @ConnectionID int
    ,@StudentIDNumber char(7)
    ,@FirstName varchar(50)
    ,@LastName varchar(50)
    ,@RoomCode varchar(50)
    ,@EmailAddress varchar(50)
    ,@CellPhoneNumber varchar(14)
    ,@ConnectionDate smalldatetime = NULL
    ,@ConnectionTerm varchar(6)
    ,@ConnectionYear varchar(4)
    ,@ConnectionDefinition varchar(50)
    ,@CompletionDate smalldatetime = NULL
    ,@NotesOnStudent varchar(255)
    ,@BestTimeToContact varchar(255)
    ,@UserAgreeSigned bit

    AS

    SET NOCOUNT ON

    BEGIN TRANSACTION

    UPDATE tblConnectionInformation
    SET ConnectionDate = @ConnectionDate,
    ConnectionTerm = @ConnectionTerm,
    ConnectionYear = @ConnectionYear,
    ConnectionDefinition = @ConnectionDefinition,
    CompletionDate = @CompletionDate,
    UserAgreeSigned = @UserAgreeSigned,
    BestTimeToContact = @BestTimeToContact
    WHERE ConnectionID = @ConnectionID

    If @@ERROR <> 0
    BEGIN
    ROLLBACK TRAN
    RETURN
    END


    UPDATE tblStudentInformation
    SET FirstName = @FirstName,
    LastName = @LastName,
    EmailAddress = @EmailAddress,
    CellPhoneNumber = @CellPhoneNumber,
    NotesOnStudent = @NotesOnStudent
    WHERE StudentIDNumber = @StudentIDNumber

    If @@ERROR <> 0
    BEGIN
    ROLLBACK TRAN
    RETURN
    END

    UPDATE tblConnectionRoomDetails
    SET RoomCode = @RoomCode
    WHERE ConnectionID = @ConnectionID

    If @@ERROR <> 0
    BEGIN
    ROLLBACK TRAN
    RETURN
    END

    COMMIT TRANSACTION
    GO
    <****end stored procedure****>

    Thanks

    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message news:e2n7Px9eDHA.2344@TK2MSFTNGP10.phx.gbl...
    > That looks fine, and since there are no INT parameters to your stored
    > procedure other than connectionID (which looks fine), I think this is
    > happening in the body of your procedure.
    >
    > Is there any more text with the error message? (e.g. stored procedure blat,
    > line x)?
    >
    > Please show the body of the stored procedure, and the table structures for
    > all tables mentioned within the body of the stored procedure.
    >
    > A
    <<SNIP>>


    Gary D. Rezek Guest

  10. #9

    Default Re: <<Error converting data type char to smalldatetime>>

    When I create this schema, and then run the stored procedure, nothing
    happens... because there is no data in the table.

    However, even when I insert fake data in the table, and run the procedure
    almost exactly as you had it before (only changing the connectionID value),
    the update runs successfully.

    So, I don't think we have enough information to reproduce the problem...






    "Gary D. Rezek" <Gary_Rezek@NOSPAMsdstate.edu> wrote in message
    news:OkRxk1FfDHA.2352@TK2MSFTNGP09.phx.gbl...
    > Hi Aaron,
    >
    > I think this is everything.
    >
    > Error Type:
    > Microsoft OLE DB Provider for SQL Server (0x80040E07)
    > Error converting data type char to int.
    > /ResNetWebReg/RCCSupervisor/StudentInformation.asp, line 184
    > (Line 184 is marked below)
    >
    > <***code on StudentInformation.asp***>
    > SELECT CASE strPostAction
    > CASE "edit"
    > intConnectionID = Request.Form("lngConnectionID")
    > StuID = Request.Form("txtStudentIDNumber")
    > strFirstName = Request.Form("txtStudentFirstName")
    > strLastName = Request.Form("txtStudentLastName")
    > strRoomCode = Request.Form("selRoomCode")
    > strEMailAddress = Request.Form("txtEmailAddress")
    > strCellPhoneNumber = Request.Form("txtCellPhoneNumber")
    > strConnectionDate = Request.Form("txtConnectionDate")
    > strConnectionTerm = Request.Form("radConnectionTerm")
    > strConnectionYear = Request.Form("selConnectionYear")
    > strConnectionDefinition = Request.Form("selConnectionDefinition")
    > strCompletionDate = Request.Form("txtCompletionDate")
    > strNotesOnStudent = Request.Form("txtNotesOnStudent")
    > strBestTimeToContact = Request.Form("txtBestTimeToContact")
    > If Request.Form("chkUserAgreeSigned") = "True" Then
    > boolUserAgreeSigned = 1
    > Else
    > boolUserAgreeSigned = 0
    > End If
    >
    '---------------------------------------------------------------------------
    ------
    > strSQL = "EXEC spUpdateStudentConnectionRecord "
    > strSQL = strSQL & "@ConnectionID = " & intConnectionID
    > strSQL = strSQL & ", @StudentIDNumber = '" & StuID & "'"
    > strSQL = strSQL & ", @FirstName = '" & strFirstName & "'"
    > strSQL = strSQL & ", @LastName = '" & strLastName & "'"
    > strSQL = strSQL & ", @RoomCode = '" & strRoomCode & "'"
    > strSQL = strSQL & ", @EMailAddress = '" & strEMailAddress & "'"
    > strSQL = strSQL & ", @CellPhoneNumber = '" & strCellPhoneNumber & "'"
    > strSQL = strSQL & ", @ConnectionTerm = '" & strConnectionTerm & "'"
    > strSQL = strSQL & ", @ConnectionYear = '" & strConnectionYear & "'"
    > strSQL = strSQL & ", @ConnectionDefinition = '" & strConnectionDefinition
    & "'"
    > strSQL = strSQL & ", @NotesOnStudent = '" & strNotesOnStudent & "'"
    > strSQL = strSQL & ", @BestTimeToContact = '" & strBestTimeToContact & "'"
    > strSQL = strSQL & ", @UserAgreeSigned = " & boolUserAgreeSigned
    > If Len(strConnectionDate) <> 0 Then
    > strSQL = strSQL & ", @ConnectionDate = '" & strConnectionDate & "'"
    > Else
    > 'do nothing
    > End If
    > If Len(strCompletionDate) <> 0 Then
    > strSQL = strSQL & ", @CompletionDate = '" & strCompletionDate & "'"
    > Else
    > 'do nothing
    > End If
    > 'Response.Write strSQL
    > 'Response.End
    > Set rstUpdateConn = Server.CreateObject("ADODB.Recordset")
    > cnMain.spUpdateStudentConnectionRecord strSQL, rstUpdateConn **(Line
    184)**
    > **<CASE Add and CASE Delete follow>**
    >
    > <****tblConnectionInformation****>
    > CREATE TABLE dbo.tblConnectionInformation (
    > ConnectionID int IDENTITY (1, 1) NOT NULL ,
    > ConnectionDate smalldatetime] NULL ,
    > ConnectionTerm varchar (6) NULL,
    > ConnectionYear varchar (4) NULL,
    > ConnectionDefinition varchar (50) NULL,
    > SetupAppointmentDate smalldatetime NULL ,
    > CompletionDate smalldatetime NULL ,
    > UserAgreeSigned bit NULL ,
    > BestTimeToContact varchar (255) NULL,
    > NotesOnConnection varchar (255) NULL
    > )
    > <****tblStudentInformation****>
    > CREATE TABLE dbo.tblStudentInformation (
    > StudentIDNumber char (7) NOT NULL ,
    > LastName varchar (50) NULL ,
    > FirstName varchar (50) NULL ,
    > EMailAddress varchar (50) NULL ,
    > CellPhoneNumber varchar (14) NULL ,
    > DateEntered smalldatetime NULL ,
    > NotesOnStudent varchar (255) NULL
    > )
    > GO
    > <****tblConnectionRoomDetails****(join table between room data and a
    connection)>
    > CREATE TABLE [dbo].[tblConnectionRoomDetails](
    > ConnectionRoomDetailID int IDENTITY (1, 1) NOT NULL ,
    > ConnectionID int NOT NULL ,
    > RoomCode varchar(50) NOT NULL
    > GO
    >
    > <****stored procedure****>
    > CREATE PROCEDURE dbo.spUpdateStudentConnectionRecord
    > @ConnectionID int
    > ,@StudentIDNumber char(7)
    > ,@FirstName varchar(50)
    > ,@LastName varchar(50)
    > ,@RoomCode varchar(50)
    > ,@EmailAddress varchar(50)
    > ,@CellPhoneNumber varchar(14)
    > ,@ConnectionDate smalldatetime = NULL
    > ,@ConnectionTerm varchar(6)
    > ,@ConnectionYear varchar(4)
    > ,@ConnectionDefinition varchar(50)
    > ,@CompletionDate smalldatetime = NULL
    > ,@NotesOnStudent varchar(255)
    > ,@BestTimeToContact varchar(255)
    > ,@UserAgreeSigned bit
    >
    > AS
    >
    > SET NOCOUNT ON
    >
    > BEGIN TRANSACTION
    >
    > UPDATE tblConnectionInformation
    > SET ConnectionDate = @ConnectionDate,
    > ConnectionTerm = @ConnectionTerm,
    > ConnectionYear = @ConnectionYear,
    > ConnectionDefinition = @ConnectionDefinition,
    > CompletionDate = @CompletionDate,
    > UserAgreeSigned = @UserAgreeSigned,
    > BestTimeToContact = @BestTimeToContact
    > WHERE ConnectionID = @ConnectionID
    >
    > If @@ERROR <> 0
    > BEGIN
    > ROLLBACK TRAN
    > RETURN
    > END
    >
    >
    > UPDATE tblStudentInformation
    > SET FirstName = @FirstName,
    > LastName = @LastName,
    > EmailAddress = @EmailAddress,
    > CellPhoneNumber = @CellPhoneNumber,
    > NotesOnStudent = @NotesOnStudent
    > WHERE StudentIDNumber = @StudentIDNumber
    >
    > If @@ERROR <> 0
    > BEGIN
    > ROLLBACK TRAN
    > RETURN
    > END
    >
    > UPDATE tblConnectionRoomDetails
    > SET RoomCode = @RoomCode
    > WHERE ConnectionID = @ConnectionID
    >
    > If @@ERROR <> 0
    > BEGIN
    > ROLLBACK TRAN
    > RETURN
    > END
    >
    > COMMIT TRANSACTION
    > GO
    > <****end stored procedure****>
    >
    > Thanks
    >
    > "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:e2n7Px9eDHA.2344@TK2MSFTNGP10.phx.gbl...
    > > That looks fine, and since there are no INT parameters to your stored
    > > procedure other than connectionID (which looks fine), I think this is
    > > happening in the body of your procedure.
    > >
    > > Is there any more text with the error message? (e.g. stored procedure
    blat,
    > > line x)?
    > >
    > > Please show the body of the stored procedure, and the table structures
    for
    > > all tables mentioned within the body of the stored procedure.
    > >
    > > A
    > <<SNIP>>
    >
    >

    Aaron Bertrand - MVP Guest

  11. #10

    Default Re: <<Error converting data type char to smalldatetime>>

    Hi Aaron,
    Thank you very much for all your help.
    Now, however, I feel very sheepish and lug-headed.
    Check out the first line of strSQL:
    <<strSQL = "EXEC spUpdateStudentConnectionRecord ">>
    Then look at how I called it:
    <<cnMain.spUpdateStudentConnectionRecord strSQL, rstUpdateConn>>

    I don't know how many time I've looked this page over, replaced or commented out lines, etc. but it wasn't until I used
    <<Set rstUpdateConn = cnMain.Execute (strSQL)>>
    and it worked, that I saw the redundancy (it IS isn't it?) of trying to execute the stored procedure twice. My only excuse is
    that I have been pushing to learn ASP and SQL, admin and development, at the same time (under the heading of other duites as
    assigned) as well as keeping up my Access db's, that I have spread all over campus.
    So again, thank you for your time and assistance.

    gdr
    --
    Gary D. Rezek
    University Networking Services
    South Dakota State University

    <snip>


    Gary D. Rezek Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139