Storing unknown datatype in MS SQL Server Database -


does 1 has idea of whats best practice store unknown data type in table. need store types bit, smallint, int, real , nvarchar in same "value" column, later interpretation .net application.

i trying achieve best possible solution not compromise performance or growth of database.

any suggestions?

thanks in advance!

varchar(max) easiest way this.

sql_variant designed purpose use it, read books online entry ensure it's going want.

http://msdn.microsoft.com/en-us/library/ms181071.aspx


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -