S
strangeduck
Guest
If I have a string that a user inputs into a textbox that could be anywhere from 5 characters to 5000, what's the best type to use for that variable in my databases and stored procedures? Right now I'm using nvarchar(1024), but I'm not entirely sure if that's the most efficient way - does that allocate 1024 bytes per string, or just declare a maximum size of 1024 and allocate as necessary? Is there a better way to store them?
Thanks!
Thanks!