Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DTS Script running external .dll
Message
From
17/11/2006 15:43:14
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
 
 
To
08/11/2006 09:26:59
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01167995
Message ID:
01170839
Views:
10
>I have a DTS script that is loading a table from an external data source. What we are doing now is loading a temp table which has a plain text password, using the SQL Server encrypt() function on that field, and then moving it to our production table.
>
>Now we have another encryption procedure we are required to run, and it exists in a .dll file. Can I just run an ActiveX Script Task that calls this .dll to encrypt the password? Is this a recommended practice?
>
>Thanks in advance,
>Mike

Mike,

You can call your activex

Dim sMypassword as string
sMypassword = "goodasitget"

Dim oEncryption as Object
Set oEncryption = CreateObject("my.encryption.dll")

Dim sEncrypt as string
Dim sDecrypt as string

sEncrypt = oEncryption.Encrypt(sMypassword )

Msgbox(sEncrypt)

sDecrypt = oEncryption.Decrypt(sEncrypt)

Msgbox(sDecrypt)

PS - The dll has to be registry on the machine running the DTS package.

Evans, Carl
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,
Previous
Reply
Map
View

Click here to load this message in the networking platform