... be a full JWT: base64 encoded, URL-safe, three part string delimited by a period/dot:
// Generate assertion/signature of JWT
$api['jwt']['assertion'] = rtrim(strtr(base64_encode(json_encode($api['jwt']['header'])) ...
... the data for the POST
foreach($fields as $key=>$value)
rtrim($fields_string, '&');
// open connection
$ch = curl_init();
// set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, ...
... VARCHAR(10)
SET @StringInput = RTRIM(LTRIM(@StringInput))
WHILE LEN(@StringInput) > 0
BEGIN
SET @StringValue = LEFT(@StringInput,
ISNULL(NULLIF(CHARINDEX(' ...
... spaces
SET @Ret = LTRIM(RTRIM(@Ret));
-- capitalize first character of data irrespective of previous rules
SET @Ret = UPPER(SUBSTRING(@Ret,1,1)) + SUBSTRING(@Ret,2,LEN(@Ret));
...
What?
Some methods of removing trailing spaces, tabs, carriage returns and line feeds (new lines).
How?
First in Transact-SQL:
SELECT
RTRIM( REPLACE( REPLACE( REPLACE( @myString, CHAR(9), ...
... = 'myPayrollSystem'
Yes well obvious to some but then you google the above and you get half a million results. That's a lot of reading so here's the simple fix for my issue:
Returning an error:
LTRIM(RTRIM(rm.Name ...
...
,SQLStatement VARCHAR(MAX)
,Execstatus BIT
)
DECLARE @sql VARCHAR(MAX)
DECLARE @tmpTblname sysname
IF LTRIM(RTRIM(@Tablenames)) IN ('' ,'%')
BEGIN ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.