0

I'm using SQL Server Management Studio to manage my database.

The problem is that if I have a nchar(50) column in a table and I insert a value of test, what I will find in my table is this value

test<46spaces>

These spaces are making so much trouble for me. How can I stop this strange action?

Thank you

1 Answer 1

3

The reason is you're using char / nchar which are fixed length strings. Change your datatype to nvarchar.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, it was that simple! :p

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.