0

I am writing a print dispatch queue that passes the following for each row:

String Name
String TemplateName
String[] dynamicTextFields

Other that doing a 1:m table for dynamic text fields, how would I include my Array/List of strings in a single row's cell?

4
  • 1
    Why don't you want to use a separate table with 1 to many relationship? Commented Mar 5, 2014 at 23:14
  • I could, I am simply looking for an alternative. In Postgresql you can do this a number of ways. Commented Mar 5, 2014 at 23:16
  • Well, this is way the best option in SQL Server. I wouldn't be personally looking at anything else. Commented Mar 5, 2014 at 23:20
  • The 1:M relation is the correct way. Commented Mar 5, 2014 at 23:26

1 Answer 1

2

In SQL Server, the best way is a properly normalised separate table in 1 to many relationship.

Any other solution (which would invariably be storing a list in some format (XML, JSON, whatever) in a single column is inferior to that in terms of performance as well as maintainability and clarity of your design.

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

Comments

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.