Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 457247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:33:06+00:00 2026-05-12T22:33:06+00:00

I am having an issue whereby a column within a table of mine has

  • 0

I am having an issue whereby a column within a table of mine has data which is encoded using the System.Xml.XmlConvert.Encode method.

Now I need to manipulate this data within SQL and have not found a way to duplicate the System.Xml.XmlConvert.Decode method.

So I’ve been investigating how I can use the System.XML namespace within SQL to access this method WITHOUT having to wrap it inside one of my own assemblies. Is this possible? i.e. how can I access this assembly directly via T-SQL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:33:06+00:00Added an answer on May 12, 2026 at 10:33 pm

    There quite a few examples of writing add-ins using .NET for SQL. I believe you will need to have SQL 2005 or newer to create an add-in.

    Here is an example that is particularly useful.

    Creating CLR SQL User Defined Function to Validate Values Using Regular Expressions @ MSDN

    In your case, you will probably want to write a function that takes a byte[] and returns a string (decode), along with a corresponding function that takes a string and returns a byte[].

    Actually I’m not sure that you can directly use byte[], but you should be able to write a corresponding wrapper function in SQL that can take a hex string and turn it into a varbinary() if that is necessary.

    edit:

    Here are some more durable links to other references that are included in the prior link, just in case it ever disappears.

    How to: Create and Run a CLR SQL User-Defined Function @ MSDN

    Custom Attributes for CLR Routines @ TechNet

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having issue in checking which input has been clicked using unobstructive javascript.
having issue to select value for create table #XMLTest (ItemXML xml) insert into #XMLTest
I am having an issue with a dynamic Ovi / Nokia map whereby I
I am having issue when sending data from Service to Activity through Notification ,
We are using MSDTC for SQL transactions. I am having issue with setting up
I am having an issue whereby I cannot use an objects method because of
I seem to be having an odd issue whereby every time I try to
I am having the standard issue timeout exception in my production environment whereby, after
Having issue with displaying the Data from a second Activity. when I run the
I am having issue with my pagemethod + url rewrite. When using regular URL:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.