Click here to Skip to main content
15,919,434 members
Home / Discussions / Database
   

Database

 
Generaldatabase Performance...... Pin
Isaac Gordon29-Jun-09 23:59
Isaac Gordon29-Jun-09 23:59 
GeneralRe: database Performance...... Pin
Blue_Boy30-Jun-09 0:15
Blue_Boy30-Jun-09 0:15 
GeneralRe: database Performance...... Pin
Niladri_Biswas30-Jun-09 0:26
Niladri_Biswas30-Jun-09 0:26 
GeneralRe: database Performance...... Pin
Isaac Gordon30-Jun-09 0:33
Isaac Gordon30-Jun-09 0:33 
QuestionHidden tables Pin
mistryshailesh29-Jun-09 21:52
mistryshailesh29-Jun-09 21:52 
AnswerRe: Hidden tables Pin
Niladri_Biswas29-Jun-09 23:10
Niladri_Biswas29-Jun-09 23:10 
QuestionOLEDB network failure recovery problem. Pin
CherezZaboro29-Jun-09 6:57
CherezZaboro29-Jun-09 6:57 
QuestionEncryptbyKey VARCHAR(50) Pin
Saamir29-Jun-09 6:42
Saamir29-Jun-09 6:42 
Hi guys,
I am having a weird issue, I am trying the following and for some reason varchar(50) value is set to null when I encrypt or decrypt it. If I change it from varchar to nvarchar it works. Our table in the database is already set to varchar to store the encrypted information and can't change it due to licensing issues. Please help, what am I doing wrong?


OPEN SYMMETRIC KEY DSBEncryptionKey DECRYPTION BY CERTIFICATE EncryptDsb
DECLARE @encryptedNum varchar(50) -- varchar doesn't work here, nvarchar works

SELECT @encryptedNum=EncryptByKey(Key_GUID('DSBEncryptionKey '), '111000614');
select CONVERT(varchar(50),decryptbykeyautocert(cert_id('EncryptDsb'), NULL, @encryptedNum))


FYI, my symetric key uses AES_256 algorithm.

Please help!

Sameer

QuestionMy Sql Query Help Pin
Hulicat29-Jun-09 6:26
Hulicat29-Jun-09 6:26 
AnswerRe: My Sql Query Help Pin
Niladri_Biswas29-Jun-09 6:54
Niladri_Biswas29-Jun-09 6:54 
GeneralRe: My Sql Query Help Pin
Hulicat29-Jun-09 11:23
Hulicat29-Jun-09 11:23 
GeneralRe: My Sql Query Help [modified] Pin
Niladri_Biswas29-Jun-09 19:33
Niladri_Biswas29-Jun-09 19:33 
GeneralRe: My Sql Query Help Pin
Hulicat1-Jul-09 7:06
Hulicat1-Jul-09 7:06 
AnswerRe: My Sql Query Help Pin
smcnulty200029-Jun-09 21:19
smcnulty200029-Jun-09 21:19 
GeneralRe: My Sql Query Help Pin
Hulicat30-Jun-09 3:59
Hulicat30-Jun-09 3:59 
GeneralRe: My Sql Query Help Pin
Hulicat30-Jun-09 7:30
Hulicat30-Jun-09 7:30 
QuestionHow to Optimize DbTransactions (C#) with SQLServer ? Pin
kadaoui el mehdi29-Jun-09 4:55
kadaoui el mehdi29-Jun-09 4:55 
AnswerRe: How to Optimize DbTransactions (C#) with SQLServer ? Pin
Enver Maroshi29-Jun-09 7:10
Enver Maroshi29-Jun-09 7:10 
GeneralRe: How to Optimize DbTransactions (C#) with SQLServer ? Pin
kadaoui el mehdi29-Jun-09 7:32
kadaoui el mehdi29-Jun-09 7:32 
AnswerRe: How to Optimize DbTransactions (C#) with SQLServer ? Pin
Niladri_Biswas30-Jun-09 5:50
Niladri_Biswas30-Jun-09 5:50 
Questionon full-text-search Pin
leone29-Jun-09 4:47
leone29-Jun-09 4:47 
Questionho to retrieve a list of dependants Pin
Anoop Brijmohun29-Jun-09 2:59
Anoop Brijmohun29-Jun-09 2:59 
AnswerRe: ho to retrieve a list of dependants [modified] Pin
Niladri_Biswas29-Jun-09 23:59
Niladri_Biswas29-Jun-09 23:59 
GeneralRe: ho to retrieve a list of dependants Pin
Anoop Brijmohun5-Jul-09 20:16
Anoop Brijmohun5-Jul-09 20:16 
QuestionConvert String and Sort the the Intergers in a String ASC Pin
Vimalsoft(Pty) Ltd29-Jun-09 0:31
professionalVimalsoft(Pty) Ltd29-Jun-09 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.