« first day (1467 days earlier)      last day (2851 days later) » 

7:22 AM
I am developing a web platform for caterers. It will be a recipe database. I want end-users to be able to import their recipes into my database.

The problem I am going to have is caterers using various different software packages and maybe databases, spreadsheets and word docs of their own.

Is there a way I could map the field headings to import the data correctly? Or should I provide a downloadable csv template that users can copy and paste into, then import?

Thanks.
 
8:18 AM
@user3464091 Personally I think you'd have a much easier time providing a downloadable template
otherwise you're going to get some seriously strange requests
> Oh we only want every second row of this sheet imported
>> could you import everything except this column called "Do Not Import", that's just for me
>>>I didn't know what csv meant so I just took out all the spaces, is that okay?
Even with your way, you'll more than likely have teething issues that you'll have to iron out
but at least it gives you the opportunity to iron them out
 
 
8 hours later…
3:54 PM
@Shaneis Thanks. Yes tell me about it. There's no easy way. Was thinking about a script to map the fields and import the correct data into the correct columns in the DB. The fields would need to be comma (,) or semi-colon (;) separated correct? Anticipating my users may have hundreds of recipes to import, so I need a quick, easy and most importantly user-friendly method. As you say - I need to ensure the correct data goes into the correct table column. :(
 
there's a couple of good string splitters so not too worried about that
Check out Jeff Moden on SQLServerCentral, he's got a very fast splitter there.
I even created one with a Recursive CTE but nowhere near as fast.
Kinda sounds like that old problem
you have quick, easy and user-friendly
choose 2
:(
 

« first day (1467 days earlier)      last day (2851 days later) »