BWAAA-HAAA!!! That would make it an "advanced" question... heh... right after the GETDATE() question. 😉
To your point (or at least I think it's a part of your point), there's an awful lot of code out there that does things like this correctly and with full functionality such as page breaks, headers, foots, page numbers, graphic hot spots, the whole nine yards. Some of them are free and some only cost something like 20 bucks. If you want to go enterprise class, you can do that too and not have to worry about doing things like installing WORD (or parts of it) on your SQL Server.
I'm all for doing things in T-SQL but creating PDFs using T-SQL isn't one of the things that I think should be done using only T-SQL. There are just too many good and properly tested methods that T-SQL could call or send a "Merge File" to.
is pronounced "ree-bar
" and is a "Modenism
" for R
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
"If you think its expensive to hire a professional to do the job, wait until you hire an amateur."--Red Adair
"Change is inevitable... change for the better is not."
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)