Re: sql2k Collation problems.
- From: "Adrian Parker" <apparker@xxxxxxxxxxxxx>
- Date: Thu, 8 Dec 2005 14:34:35 -0000
> Based on my knowledge, parameters for function is assigned the default
> collation of the database:
Then please try the following..
Create a new database using a different collation than your server instance.
Our SQL Server instance = SQL_Latin1_General_CP1_CI_AS
The problem database = Latin1_General_CI_AS
Then run the following script against that DB.
---START
CREATE FUNCTION dbo.myfunc ()
RETURNS @Result table ( rescol varchar(10))
AS
BEGIN
INSERT @Result
SELECT 'A'
RETURN
END
GO
CREATE TABLE testtable
(
test_id varchar(10) NOT NULL
)
GO
SELECT *
FROM testtable TT,
dbo.myfunc() AS MF
WHERE TT.test_id = MF.rescol
GO
---END
I get the following error..
"Cannot resolve collation conflict for equal to operation."
If you do a sp_help myfunc and look at the collation, you'll see it has
come from the server instance, whereas if you do sp_help testtable, it will
have the collation of the database.
Please let me know if you get a different result.
Thanks
Adrian Parker
.
- Follow-Ups:
- Re: sql2k Collation problems.
- From: Sophie Guo [MSFT]
- Re: sql2k Collation problems.
- References:
- sql2k Collation problems.
- From: Adrian Parker
- RE: sql2k Collation problems.
- From: Sophie Guo [MSFT]
- sql2k Collation problems.
- Prev by Date: sql collation question
- Next by Date: Problem with UDL- Login failed. Catalog information cannot be retrieved
- Previous by thread: RE: sql2k Collation problems.
- Next by thread: Re: sql2k Collation problems.
- Index(es):
Relevant Pages
|