If you want fgrep all files ending with .sql, use
fgrep -ircl --include=*.sql -- -- *
or (note the comma in {sql,}:
fgrep -ircl --include=*.{sql,} -- -- *
If you want fgrep more than one type of extension, use something like
fgrep -ircl --include=*.{sql,txt} -- -- *
As already mentioned, the first --tells fgrep to stop searching for flags and options. The second --is a fixed-line pattern.