Hi Greg,Well what I have done up to now, is create a table of machines that can have data imported from. These could be linked servers. In the DDT I have put a 'dummy' proc just so the proc gets downloaded and later I use a routine from my client application that as the user views each linked server record, they can create the specific stored proc from a text file template that I bundle with the client application. Using replace to find a text marker works fine and it replaces the text marker with the server name and database name in the viewed record.
For this to work, all I need is for the proc to exist in the SQL Server DB, it doesn't matter what it does initially as it will never be used like that. The text file template I have is encrypted, and only ever decrypted in memory just for the sake of security. The text file gets read in, decrypted, markers replaced, then the proc is executed as an alter procedure. The original text file template remains on disk in its encrypted form.
It does the job, it would be nice to be able to have procs though that you could flag as not to be packaged. I don't know about everyone else, over time I get better ideas and rather than just replace old code I like to keep 'just in case' and create new. It would be good if those procs were just kept in the ddt profile.
best
Geoff