Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6816635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:56:58+00:00 2026-05-26T20:56:58+00:00

When I try to change my stored procedure (below) and I receive this error

  • 0

When I try to change my stored procedure (below) and I receive this error message:

“Implicit conversion of varchar value to varchar cannot be performed because the collation of the value is unresolved due to a collation conflict”

The error occurs in this line:

INSERT INTO @TempList (OrderID) VALUES (@EmpID)

I don´t understand what problem with collation exist.

Please, ideas about this..

Thanks

USE [database]
GO

SET ANSI_NULLS ON

GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[database_0301_PRJ_dir_ger]

@EmpList varchar(100)

AS

  DECLARE @TempList table (OrderID varchar(10))
  DECLARE @EmpID varchar(10) 
  DECLARE @Pos int

  IF @EmpList <> ''
  BEGIN
    SET NOCOUNT ON

    SET @EmpList = LTRIM(RTRIM(@EmpList))+ ','
    SET @Pos = CHARINDEX(',', @EmpList, 1)

    IF REPLACE(@EmpList, ',', '') <> ''
    BEGIN
      WHILE @Pos > 0
      BEGIN
        SET @EmpID = LTRIM(RTRIM(LEFT(@EmpList, @Pos - 1)))
        IF @EmpID <> ''
        BEGIN
          INSERT INTO @TempList (OrderID) VALUES (@EmpID)
        END
        SET @EmpList = RIGHT(@EmpList, LEN(@EmpList) - @Pos)
        SET @Pos = CHARINDEX(',', @EmpList, 1)
      END
  END

  SELECT dir.sigla + '-' + ger.nome AS dirger, 
    ger.codigo as gercodigo, 
    ger.nome as gernome, 
    dir.nome AS dirnome, 
    ger.diretoria as gerdiretoria 
  FROM d
    bo.database_091500_GERENCIAS AS ger 
  INNER JOIN 
    dbo.database_090200_DIRETORIAS AS dir 
  ON 
    ger.diretoria = dir.codigo 
  WHERE 
    ger.diretoria IN (select * FROM @TempList)
END
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:56:58+00:00Added an answer on May 26, 2026 at 8:56 pm

    It sounds like a configuration problem with language/internationalization.

    Perhaps your client might be configured for one locale, and your database/database server for a different locale?

    One workaround might be an explicit cast, for example:

    http://www.sqlservercentral.com/Forums/Topic225939-8-1.aspx#bm225952

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just creates this stored procedure in selecting palletnumber=datatype is int. SerialNumber is varchar.
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
I am using a TRY CATCH block in a stored procedure where I have
I'm trying to write a stored procedure and depending on a certain column value,
I am running a stored procedure in SQL Server 2008 inside a try/catch. The
I have created a stored procedure for selecting value from the table if that
When I run the stored procedure manually, it works fine. However, whenever I try
EDIT: Simplified problem and clarified question. I am trying to convert this Stored Procedure
I try to change the dimensions of the view in interface builder from the
When I try to change the default collation of a SQL Server instance using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.