How to create a Visual Expert Project With T-SQL SQL Server Code

Step 1 – Specify a source of code

  • Go to [file – New Project]
  • Select "SQL Server Transact-SQL"
    SQL Server Transact-SQL Code
     
  • Specify where your Oracle code is located
    Source of SQL Server source code analysed with Visual Expert

Step 2 – Select the objects you wish to analyze

  • Important: if you're connecting to a database, Visual Expert will analyze all the objects accessible from this connection, including all schemas, tables, procedures, system objects, etc. In this case, it is highly recommended to filter the DB objects you wish to analyze:
    DB objects listed by default by Visual Expert
  • If you click on "More Filters" you get the following options:
    Filter the DB objects you wish to analyze with Visual Expert
  • Once your Oracle object selection is completed, click "next" > select "Continue Setup" Continue Visual Expert project Setup
  • Name your Visual Expert project
  • Set the scheduler to refresh your code analysis automatically on a regular basis
  • Select "Launch the analysis"
  • After analysis, you will see SQL Server and Transact-SQL objects in the treeview

Step 3 – Remove ambiguities and duplicate tables

Why this step?

Select  firstname,  lastname  from  employee 
Select firstname, lastname from myschema.employee

This basic example may create an ambiguity:
By default, the Visual Expert code parsers cannot know whether employee and myschema.employee refer to the same table. Unless we remove this ambiguity, Visual Expert will duplicate the table employee.

Please read this article to remove possible ambiguities in your project.