データベースのBase64パスワード列をデコードする際に助けが必要です。単一の列コンテンツをhttps://www.base64decode.org/にコピーすると、完全にデコードされます。私はこの列の〜7000行でこれを実行するだけです。どんな助けでも大歓迎です。Microsoft SQL 2016デコードBase64列
0
A
答えて
0
あなたが(直接またはT-SQL)の管理Studio内これを実行しようとしている場合、あなたはこのようにそれを達成することができます:ウェブサイトから
declare @source varbinary(max), @encoded varchar(max), @decoded varbinary(max)
set @source = convert(varbinary(max), ‘Hello Base64’)
set @encoded = cast(” as xml).value(‘xs:base64Binary(sql:variable("@source"))’, ‘varchar(max)’)
set @decoded = cast(” as xml).value(‘xs:base64Binary(sql:variable("@encoded"))’, ‘varbinary(max)’)
select convert(varchar(max), @source) as source_varchar, @source as source_binary, @encoded as encoded, @decoded as decoded_binary, convert(varchar(max), @decoded) as decoded_varchar
は:あなたが使用することができますhttp://blog.falafel.com/t-sql-easy-base64-encoding-and-decoding/
0
:その後、
declare @source varbinary(max), @encoded varchar(max), @decoded varbinary(max)
set @source = convert(varbinary(max), ‘Hello Base64’)
set @encoded = cast(” as xml).value(‘xs:base64Binary(sql:variable("@source"))’, ‘varchar(max)’) set @decoded = cast(” as xml).value(‘xs:base64Binary(sql:variable("@encoded"))’, ‘varbinary(max)’)
select convert(varchar(max), @source) as source_varchar, @source as source_binary, @encoded as encoded, @decoded as decoded_binary, convert(varchar(max), @decoded) as decoded_varchar
...しかし、このための関数を作成、:
create function fnDecodeBase64 (@encoded as varchar(max))
returns varchar(max)
as
begin
declare @decoded varchar(max)
set @decoded = cast('' as xml).value('xs:base64Binary(sql:variable("@encoded"))', 'varbinary(max)')
return @decoded
end
だから、あなたが使用することができます。
select dbo.fnDecodeBase64(some_column) from Some_Table
ます。また、使用することができます。
select convert(varchar(max),cast(N'' as xml).value('xs:base64Binary(sql:column("t.SomeColumn"))', 'varbinary(max)')) as converted_64_column
from SomeTable as t
キーワード:sql:column
は
関連する問題
- 1. AndroidのBase64デコード文字列
- 2. Base64文字列をバイト配列にデコード
- 3. Pythonのbase64文字列のデコード
- 4. Base64をデコードする
- 5. デコードbase64 gzip .net webservice
- 6. StringバッチファイルのBase64デコード
- 7. デコードbase64 +解読 - スウィフト
- 8. PythonデコードBase64 qUncompress Image
- 9. JavaScriptでJSONエンコード/デコードbase64エンコード/デコード
- 10. リストボックスMicrosoft Access 2016
- 11. Microsoft Dynamics CRM 2016
- 12. Microsoft CRM 2016
- 13. なぜBASE64文字列がsql 2012でデコードされないのですか?
- 14. SQL Server 2000 - base64文字列をイメージファイルまたはファイルシステムにデコードする
- 15. base64をバッチでデコードする
- 16. デコードBase64エンコードZIPアーカイブ(GZIP)
- 17. CryptoPP vs PHP Base64エンコード/デコード
- 18. デコードbase64:無効な入力
- 19. php to silverlight base64エンコード/デコード
- 20. Microsoft Excel 2016 T-テスト
- 21. base64文字列を10進数の文字列にデコード
- 22. 再エンコード時(base64)のbase64文字列のデコード値が異なる場合
- 23. 無効モード、Microsoft Access 2016
- 24. Microsoft Dynamics 2016 Web API | POST invoicedetail
- 25. のMicrosoft SQL Serverの2016リリース候補0(RC0)セットアップ
- 26. Microsoft SQL Serverで実行されたクエリを表示する2016
- 27. Microsoft SQL Server 2014または2016の機能
- 28. アクセス2016内のMicrosoft Accessプロジェクト(ADP)
- 29. base64の文字列をpngにデコードするオンラインツール
- 30. Base64は文字列をデコードして解凍します
違いが、私はいずれにも貼り付けたときに動作し、このコードを見つけました列の値。今私は、これをパスワード列から取り出し、デコードされた結果として新しいテーブルに入れる方法を知る必要があります。ありがとうございました。 – Pacoletaco
いくつかのデータを説明し、予期した結果を説明してください。あなたの質問は明確ではありません – TheGameiswar
あなたの問題を解決するために何かを試みましたか? – dfundako