dbTalk Databases Forums  

Encrypt/Decrypt table columns inside stored proc?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Encrypt/Decrypt table columns inside stored proc? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mscertified
 
Posts: n/a

Default Encrypt/Decrypt table columns inside stored proc? - 07-10-2008 , 09:45 AM






I need to encrypt and decrypt certain columns in certain tables inside a
stored proc. Can this be done and if so how? Thanks for any advice. This is
SQL Server 2005.

Reply With Quote
  #2  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM






Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM



Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #4  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM



Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #5  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM



Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #6  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM



Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #7  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM



Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #8  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM



Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #9  
Old   
mardukes
 
Posts: n/a

Default Re: Encrypt/Decrypt table columns inside stored proc? - 07-14-2008 , 07:08 PM



Let me expand the question.

I followed the example in BOL for asynchronous encyption. I modified it
enough to contain a sizable varbinary (2K containing about 1300 bytes (a
binary serialization of a c# object.)

As far as I know it encrypts, but the decryption always returns null.

Any guesses as to why it fails? Too large? Can't handle binary?

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.