Im having an error where I could'nt use SQL on VS2015

Kabunian 1 Reputation point

This pops up every time:
Could not load file or assembly 'microsoft.sqlserver.batchparser.dll' or one of its dependencies. is not validwin32 application. (Exception from HRESULT: 0x800700c1)

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,318 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,869 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,461 Reputation points

    Hi @Kabunian ,

    You are trying to load a 32-bit dll into a 64-bit process. That's not possible.
    Since you don’t know your sql server version, please see this link, there are multiple SMO download addresses:

    Best regards,

    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments