Results 1 to 5 of 5

Thread: VB SQL error message

  1. #1
    New Member
    Join Date
    May 01
    Posts
    7

    VB SQL error message

    If anybody knows, what does that error message means, please, tell.
    I run vb program, which use a Command object to run a SP and I am getting an error message:

    "Invalid character for cast specification"

  2. #2
    PowerPoster
    Join Date
    Jul 99
    Posts
    5,923
    what's the SQL?

  3. #3
    PowerPoster
    Join Date
    Jul 99
    Posts
    5,923

  4. #4
    Hyperactive Member
    Join Date
    Nov 99
    Location
    Leavenworth KS USA
    Posts
    482
    It's difficult to say specifically what's causing your error from
    what info you've supplied, but you can safely assume either
    an input or output parameter to your SP is defined as the
    incorrect datatype.

    Also, FWIW, in SQLServer v7 without SP2 installed, a negative
    zero (-0) result will cause this error.

  5. #5
    Junior Member
    Join Date
    Oct 00
    Location
    High Wycombe, UK
    Posts
    25
    Its a syntax problem. Try placing quotes around your variable

    Regards....

    Gaz
    Ciao.........Gary

    VB6, SQL Server 7, Access 97

Posting Permissions

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