How to store URL link into Image in column in table

Shanvitha 221 Reputation points
2020-10-20T10:44:13.457+00:00

Hi Sql server team,

I have logos store in Azure Blob( I have URL link and also I have access download and upload)

I need Store those URL logo in Azure sql databse( i need create new table)

Pleas help how to store the in URL logo in Column

Thanks
Shanvitha

Developer technologies | Transact-SQL
{count} votes

Accepted answer
  1. MelissaMa-MSFT 24,221 Reputation points
    2020-10-21T06:39:46.693+00:00

    Hi @Shanvitha ,

    Please refer with below code and check whether it is helpful to you.

    CREATE TABLE [dbo].[SFMC_HTML_Images](  
        [HTML_Image] varbinary(max) NULL,  
        SendID varchar(50) null  
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]  
    GO  
      
    Insert into SFMC_HTML_Images (HTML_Image)   
    Select BulkColumn FROM OPENROWSET(   
    BULK '4017033.jpg',   
    DATA_SOURCE = 'MyAzureBlobStorage', SINGLE_BLOB) AS ImageFile;   
    

    You could refer more details from below:
    How to insert image file, stored in Azure blob storage, into an Azure SQL table

    Best regards
    Melissa


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Shanvitha 221 Reputation points
    2020-10-20T11:49:34.597+00:00

    Hi MagnusAhlkvist ·/Sql server export,

    I need store URL logo as image format in the table.

    please store Image format in the table given AZURE BLOB URL

    Thanks
    Shanvitha


  2. Shanvitha 221 Reputation points
    2020-10-21T05:07:27.56+00:00

    Hi MagnusAhlkvist,
    thank you replay.
    yes your correct understand.
    please suggest how to write query. or help me sample query.

    Thanks
    Shanvitha

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.