I have tried adding this to the .gitattributes:
* text=auto
*.sql diff
But it still shows like this:
BIN  WebRole/Sql/Objects/dbo.Content.Table.sql →
WebRole/Sql/dbo.Content.Table.sql Binary file not shown
Would appreciate help with this.
I have tried adding this to the .gitattributes:
* text=auto
*.sql diff
But it still shows like this:
BIN  WebRole/Sql/Objects/dbo.Content.Table.sql →
WebRole/Sql/dbo.Content.Table.sql Binary file not shown
Would appreciate help with this.
 
    
    The only method I found that worked was to change the encoding of .sql files from the default UTF16 encoding to UTF8. The below outlines three approaches based on your circumstances:

If you have many files to change and are comfortable with running Powershell scripts you may want to try the following:
In order to prevent having to convert files in the future you can alter the template for the new queries created in SSMS by using the approach outlined in this link
 
    
    Git usually guesses correctly whether a blob contains text or binary data by examining the beginning of the contents. In your case, however, git is getting confused and treating the file as binary, possibly due to binary data somewhere in the file.
From the git-diff manpage:
-a, --text Treat all files as text.
So you can still get the text diff quite easily as follows:
git diff -a WebRole/Sql/Objects/dbo.Content.Table.sql
To override git incorrect guess add the following to .gitattributes in the same directory as the file:
*.sql diff
and commit this file. This will force git to treat every .sql file as text from now on, wether or not it contains binary data.
 
    
    GitHub can very well decide how it manages its diff (for example, they have custom diffs for 3D renderings, maps or images).
GitHub support will be able to say exactly how .sql files are treated and diffed.
But check also the encoding of your sql files in your GitHub repo.
As I mentioned in "Why does git think my cs file is binary?", UTF-16 files could be problematic.
Make sure at least the sql files are in UTF-8.
It looks like a file encoding problem, what encoding are you using?
cf. following SO questions: Why does Git treat this text file as a binary file? and Can I make git recognize a UTF-16 file as text?.
You are able to force your local git to permit textual diffs on the file, but not GitHub.
Check your encoding and replace your file with UTF-8 should fix the situation.