Home Forums SQL Server 2008 SQL Server 2008 - General HELP HELP Database Error - Microsoft SQL Native Client error '80040e07', Conversion failed when converting the nvarchar value 'Dave Smith' to data type int. /include/aspfunctions.asp, line 1243 ??? RE: HELP HELP Database Error - Microsoft SQL Native Client error '80040e07', Conversion failed when converting the nvarchar value 'Dave Smith' to data type int. /include/aspfunctions.asp, line 1243 ???

  • the error is in the query you are creating, which you did not post.

    it looks like you are concatenating a number to a string . like CustomerID + ' ' + CustomerName and the result is one column is attempting to convert to an integer, instead of the integer columns converting to varchar, that you seem to expect.

    you will have to explictly convert to varchar, and columns that are not varchar, like this: CONVERT(varchar(20),CustomerID) + ' ' + CustomerName

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!