Find Jobs
Hire Freelancers

MS SQL HTTP read text resposne large than 8000 characters

$10-30 USD

Cancelled
Posted over 5 years ago

$10-30 USD

Paid on delivery
I am sending a request for json data and put all records into a table. I am having an issue because the response is greater than 8000 characters. And when checking the length it does not return a value Test URL : Test SQL BEGIN SET NOCOUNT ON; DECLARE @sUrl VARCHAR(200) ,@Data VARCHAR(MAX) ,@UserAgent VARCHAR(100) ,@Object as Int ,@ResponseText as Varchar(MAX) ,@Status int SET @Data = '' /* api/Account/Balance/{id} */ DECLARE @len INT = len(@Data) set @sUrl = '[login to view URL]' EXEC sp_OACreate 'WinHttp.WinHttpRequest.5.1', @Object OUT; EXEC sp_OAMethod @Object, 'Open', NULL, 'GET', @sUrl, 'false' EXEC sp_OAMethod @Object, 'setRequestHeader', null, 'Content-Type','application/json' EXEC sp_OAMethod @Object, 'setRequestHeader', null, 'Content-Length', @len EXEC sp_OAMethod @Object, 'send', null, @Data Exec sp_OAGetProperty @Object, 'responseText', @ResponseText OUTPUT EXEC sp_OAGetProperty @Object, 'Status', @Status OUT EXEC sp_OADestroy @Object Select LEN(@ResponseText) as Length -- Return no value PRINT @Status PRINT @ResponseText
Project ID: 18374668

About the project

Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
Sanger, United States
5.0
13
Payment method verified
Member since Sep 3, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.