Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encrypting files using PGP in SQL

Status
Not open for further replies.

richrich05

Programmer
Aug 15, 2005
24
US
Hi All,


I'm totally lost where to start. i need to start encrypting files sent daily to my supplier. I currently have a DTS that controls the creation and transfer of the file. How do i encrypt a file using SQL 2000 instances?
 
Correct, there is no native way to handle this. A third party solution would be required. You can run the PGP app from a command line object in your DTS package to encrypt the file after it has been created.

Denny
MVP
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / SQL 2005 BI / SQL 2008 DBA / SQL 2008 DBD / SQL 2008 BI / MWSS 3.0: Configuration / MOSS 2007: Configuration)
MCITP (SQL 2005 DBA / SQL 2008 DBA / SQL 2005 DBD / SQL 2008 DBD / SQL 2005 BI / SQL 2008 BI)

My Blog
 
I would look into the xp_cmdshell command that lets you run command line utilities. Once you get the hang of that, install a DOS/text mode PGP engine that can be called through that.

I think the ability to execute command line items is deprecated in 2008.

The COM wrappper's probably easiest.
 
Thanks all for the advise. I've started playing with open pgp and think that i'll use that for my PGP encryption needs.
 
xp_cmdshell hasn't been deprecated. However enabling it is not recommended as it is a security risk.

As you are doing this in DTS already, you don't need to use xp_cmdshell. DTS has a command line object that should be used.

Denny
MVP
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / SQL 2005 BI / SQL 2008 DBA / SQL 2008 DBD / SQL 2008 BI / MWSS 3.0: Configuration / MOSS 2007: Configuration)
MCITP (SQL 2005 DBA / SQL 2008 DBA / SQL 2005 DBD / SQL 2008 DBD / SQL 2005 BI / SQL 2008 BI)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top