-4

Hi everyone i'm trying to create a table with columns that is more than 128 of text.

is it possible to increase the field name(column) length in SQL Server

Yukimoto Otomikuy
  • 101
  • 2
  • 3
  • 8

2 Answers2

0

Were you looking for something like this?

ALTER TABLE YourTable ALTER COLUMN YourColumn nvarchar(256) NULL

You could put in it any number below 4000 otherwise go for nvarchar(max)

https://msdn.microsoft.com/it-it/library/ms190273%28v=sql.120%29.aspx

Simone
  • 1,828
  • 1
  • 13
  • 20
0

Your best option would be to use the PIVOT function in SQL Server, and keep the questions numbered 1,2,3 etc. Great example of this is available here

Northernlad
  • 177
  • 1
  • 9