Are you sure that you are asking a SharePoint questions?
SharePoint cannot crawl SQL Server database directly, but it can be crawled as BDC, it may involve codes.
With BDC and rules, you can crawl different tables under different credentials.
上善若水
Lambert Qin [秦磊] | 博客(Blog): SharePoint in My Eyes
中文 /
LinkedIn
Posting is provided "AS IS" with no warranties, and confers no rights.