Hello @LinkOne-Face Zhang-張東勝 ,
welcome to this moderated Azure community forum.
it seems you try to work though this tutorial.
In the past, I worked with SQL Server on Azure IoT Edge, as described on these blog posts (the docker image tag version should be ignored, newer versions are available).
Regarding the two Nuget packages, it depends on which .Net version you are basing your client code (.Net 6 vs. .Net 8).
Please have the Sql Server container running first with persisted storage on disk for the database (set in the container create options; see the blog posts).
You also need to expose the port in the container create options if you want to provide access to the database on the local network.
Once this is working, program against the database and move that working code to your target custom IoT Edge module.
If you still have issues, please share details so other community members have a good impression about what is happening.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.