Giter Site home page Giter Site logo

Comments (15)

ErikEJ avatar ErikEJ commented on June 5, 2024

Try to change data source when creating the connection

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

It is caused by differences in connection strings between System.Data.SqlClient and Microsoft.Data.SqlClient

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

@PawelFojt Ping?

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

I was able to repro, I will get this fixed

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

I added a fix for this in the latest daily build from VSIX gallery, could you try it and let me know?

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

See bc7eb88

from sqlcetoolbox.

PawelFojt avatar PawelFojt commented on June 5, 2024

Now, when connected to the database, there's no issue, and I can even see that database under "Data Connections." However, when I try to right click on my DB -> script database -> Script schema.., the same error pops up. Additionally, I don't see a single table under the icon of my database.
image
So I think this issue occurs in multiple places within the application.

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

Where are you right clicking?

from sqlcetoolbox.

PawelFojt avatar PawelFojt commented on June 5, 2024

On the icon of the database I connected to.

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

@PawelFojt OK, you are basically asking for support for Microsoft.Data.SqlClient - it was never added. I will look into it,

In the meantime you can create a connection using the legacy Provider:

image

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

@PawelFojt I added a fix for this in the latest daily build from VSIX gallery, could you try it and let me know?

from sqlcetoolbox.

PawelFojt avatar PawelFojt commented on June 5, 2024

The database connection is working, and there are no errors popping up when using the 'Script schema..' command. However, I don't see any tables. When I connect to the same database using SSMS, I can see several tables.
image

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

I am not able to repro, can you share a sample schema?

from sqlcetoolbox.

PawelFojt avatar PawelFojt commented on June 5, 2024

Right click on Data Connections -> Add SQL Server Connection.. -> fill Server name -> change Authentication to SQL Server Authentication -> fill User name and Password -> check Trust Server Certificate -> Test Connection is OK -> Click OK -> now I see myDb below Data Connections (but I don't see any table) - right click on myDb -> Script Database.. -> Script Schema -> here I also don't see any table

from sqlcetoolbox.

ErikEJ avatar ErikEJ commented on June 5, 2024

Data Connections (but I don't see any table)

Correct, the tool does not list any server tables - this is by design

I am unable to repro - I see tables listed.

from sqlcetoolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.