As every post to Twitter is limited to 140 characters it’s important we are able to squeeze as much as we can out of it. To help users of Tweet-SQL with this I’ve integrated TinyURL into version 2 of the product. Here’s how you use it;

DECLARE @long_url NVARCHAR(1000),
	@short_url NVARCHAR(100);

SET @long_url = '';

-- Make the long url short!
EXEC dbo.tweet_util_shortenUrl @long_url, @short_url OUTPUT;

SELECT @short_url AS TinyURL;

Using TinyURL with Tweet-SQL