Question: I am trying to share my app (link having data and metatags) with the following code

```
String s = "http://www.myapp.com"
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String linkt = "<a href=" + s + ">"+ s + "</a>" ;
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(linkt));
startActivity(Intent.createChooser(sharingIntent,"Share using "));

```

(1)
When I click on facebook in the share options, it crashes with the following error.

"The application facebook (process com.facebook.katana) has stopped unexpectedly. Please try again." What is the reason for this crash ?

(2) when I click google+ , only the link is shown and not with all meta tag data from the link where it will extract image and description etc. 
Ofcourse, if I go to google+ from the PC browser and post the same link , I get all the meta data extracted and shown. Is there a known problem with the Android share utility or am I not getting something right ?

(3) if I use sharingIntent.setType("text/html"), then only Gmail, Bluetooh, Docs show up in the sharing list omitting others(facebook, google+ etc). Why is this so ?

Thanks for the help.

Answer: 
You opened a file in Mac format, with Carriage Returns ('\r') newlines.

The SQL parser behaves inconsistently on CR newlines.
It supports them for some queries, like "select 1 go", but fails on others, like "drop function f go".

Convert all your sql files to windows encoding.
I am too facing the same issue, but not sure about what causes it. When copy paste the in query editor, able to execute it.

Thorough procedure only it failing

Scripts generated from my procedure.
------------------------------------

Msg 102, Level 15, State 1, Line 366
Incorrect syntax near 'GO'.
Msg 156, Level 15, State 1, Line 370
Incorrect syntax near the keyword 'CREATE'.
Msg 102, Level 15, State 1, Line 371
Incorrect syntax near 'GO'.

CREATE TABLE dbo.[SolutionAssessmentBPF]
( businessprocessflowinstanceid uniqueidentifier NOT NULL , StatusReasonCode int NULL , TimeZoneRuleVersionNumber int NULL , TraversedPath nvarchar (1250) NULL , UTCConversionTimeZoneCode int NULL , TenantId int NOT NULL , OdsCreatedDate datetime NOT NULL DEFAULT GETUTCDATE() , OdsModifiedDate datetime NOT NULL DEFAULT GETUTCDATE() , OdsStatus tinyint NULL DEFAULT 0 , VersionNumber bigint DEFAULT -1
, CONSTRAINT [PK\_SolutionAssessmentBPF] PRIMARY KEY CLUSTERED
(
businessprocessflowinstanceid,TenantId ASC ))
GO

CREATE UNIQUE INDEX [UQX\_SolutionAssessmentBPF\_bpf\_incidentid\_OdsStatus] ON [dbo].[SolutionAssessmentBPF] ([bpf\_incidentid], [OdsStatus])
GO
CREATE NONCLUSTERED INDEX [NCI\_SolutionAssessmentBPF\_OdsModifiedDate] ON [dbo].[SolutionAssessmentBPF] ([OdsModifiedDate])
GO
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This issue is got fixed after removing GO statement from dynamic SQL generated. Please remove GO statement and any non printable character which is not compatible with windows format. That should fix this kind of issues.