Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
byte bytes = new byte[file.ContentLength]; file.InputStream.Read(bytes, 0, file.ContentLength);
OPEN SYMMETRIC KEY MyTableKey DECRYPTION BY CERTIFICATE EncryptMyCert INSERT INTO dbo.DocumentFiles (LetterFileId, NameFile, ContentType, Doc, FileSizeBytes, UpdateUser, updateDate) SELECT @fileId, ENCRYPTBYKEY(KEY_GUID('ArmsTableKey'),@FileName), --- this works @ContentType, ENCRYPTBYKEY(KEY_GUID('ArmsTableKey'),@doc), -- this doesnt work -- @doc, --- this works @fileSizeBytes, @username, GETDATE() END
Join the community of 500,000 technology professionals and ask your questions.