Sql server 无法访问MacOS上的所有adventure works表

Sql server 无法访问MacOS上的所有adventure works表,sql-server,mssql-jdbc,adventureworks,dbvisualizer,dbeaver,Sql Server,Mssql Jdbc,Adventureworks,Dbvisualizer,Dbeaver,我在本地docker容器和sql server上进行了冒险工作。当我尝试访问冒险作品时,我只有3张桌子。 在windows上它可以工作。 我使用DBeaver和DBvisualizer进行连接。 已解决:在新版本的DBeaver中,它已解决,这是来自ms sql驱动程序的错误。但是在DBvisualizer中它仍然不起作用。我注意到在MacOS上使用jTDS驱动程序不会列出SQL Server数据库中的所有模式,因此我认为这个问题也可能扩展到表。切换到MS JDBC驱动程序,看看是否可以解决问

我在本地docker容器和sql server上进行了冒险工作。当我尝试访问冒险作品时,我只有3张桌子。 在windows上它可以工作。 我使用DBeaver和DBvisualizer进行连接。


已解决:在新版本的DBeaver中,它已解决,这是来自ms sql驱动程序的错误。但是在DBvisualizer中它仍然不起作用。

我注意到在MacOS上使用jTDS驱动程序不会列出SQL Server数据库中的所有模式,因此我认为这个问题也可能扩展到表。切换到MS JDBC驱动程序,看看是否可以解决问题。

我注意到在MacOS上使用jTDS驱动程序不会列出SQL Server数据库中的所有模式,因此我认为这个问题也可能扩展到表。切换到MS JDBC驱动程序,看看是否可以解决问题。

使用此docker命令:

sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'myStrongP@ssw0rd' -Q "select table_schema,table_name,table_type from AdventureWorks2012.Information_Schema.Tables order by table_type, table_schema, table_name" | tr -s ' '
以下是我得到的表格列表:

table_schema table_name table_type
-------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- ----------
dbo AWBuildVersion BASE TABLE
dbo DatabaseLog BASE TABLE
dbo ErrorLog BASE TABLE
HumanResources Department BASE TABLE
HumanResources Employee BASE TABLE
HumanResources EmployeeDepartmentHistory BASE TABLE
HumanResources EmployeePayHistory BASE TABLE
HumanResources JobCandidate BASE TABLE
HumanResources Shift BASE TABLE
Person Address BASE TABLE
Person AddressType BASE TABLE
Person BusinessEntity BASE TABLE
Person BusinessEntityAddress BASE TABLE
Person BusinessEntityContact BASE TABLE
Person ContactType BASE TABLE
Person CountryRegion BASE TABLE
Person EmailAddress BASE TABLE
Person Password BASE TABLE
Person Person BASE TABLE
Person PersonPhone BASE TABLE
Person PhoneNumberType BASE TABLE
Person StateProvince BASE TABLE
Production BillOfMaterials BASE TABLE
Production Culture BASE TABLE
Production Document BASE TABLE
Production Illustration BASE TABLE
Production Location BASE TABLE
Production Product BASE TABLE
Production ProductCategory BASE TABLE
Production ProductCostHistory BASE TABLE
Production ProductDescription BASE TABLE
Production ProductDocument BASE TABLE
Production ProductInventory BASE TABLE
Production ProductListPriceHistory BASE TABLE
Production ProductModel BASE TABLE
Production ProductModelIllustration BASE TABLE
Production ProductModelProductDescriptionCulture BASE TABLE
Production ProductPhoto BASE TABLE
Production ProductProductPhoto BASE TABLE
Production ProductReview BASE TABLE
Production ProductSubcategory BASE TABLE
Production ScrapReason BASE TABLE
Production TransactionHistory BASE TABLE
Production TransactionHistoryArchive BASE TABLE
Production UnitMeasure BASE TABLE
Production WorkOrder BASE TABLE
Production WorkOrderRouting BASE TABLE
Purchasing ProductVendor BASE TABLE
Purchasing PurchaseOrderDetail BASE TABLE
Purchasing PurchaseOrderHeader BASE TABLE
Purchasing ShipMethod BASE TABLE
Purchasing Vendor BASE TABLE
Sales CountryRegionCurrency BASE TABLE
Sales CreditCard BASE TABLE
Sales Currency BASE TABLE
Sales CurrencyRate BASE TABLE
Sales Customer BASE TABLE
Sales PersonCreditCard BASE TABLE
Sales SalesOrderDetail BASE TABLE
Sales SalesOrderHeader BASE TABLE
Sales SalesOrderHeaderSalesReason BASE TABLE
Sales SalesPerson BASE TABLE
Sales SalesPersonQuotaHistory BASE TABLE
Sales SalesReason BASE TABLE
Sales SalesTaxRate BASE TABLE
Sales SalesTerritory BASE TABLE
Sales SalesTerritoryHistory BASE TABLE
Sales ShoppingCartItem BASE TABLE
Sales SpecialOffer BASE TABLE
Sales SpecialOfferProduct BASE TABLE
Sales Store BASE TABLE
HumanResources vEmployee VIEW 
HumanResources vEmployeeDepartment VIEW 
HumanResources vEmployeeDepartmentHistory VIEW 
HumanResources vJobCandidate VIEW 
HumanResources vJobCandidateEducation VIEW 
HumanResources vJobCandidateEmployment VIEW 
Person vAdditionalContactInfo VIEW 
Person vStateProvinceCountryRegion VIEW 
Production vProductAndDescription VIEW 
Production vProductModelCatalogDescription VIEW 
Production vProductModelInstructions VIEW 
Purchasing vVendorWithAddresses VIEW 
Purchasing vVendorWithContacts VIEW 
Sales vIndividualCustomer VIEW 
Sales vPersonDemographics VIEW 
Sales vSalesPerson VIEW 
Sales vSalesPersonSalesByFiscalYears VIEW 
Sales vStoreWithAddresses VIEW 
Sales vStoreWithContacts VIEW 
Sales vStoreWithDemographics VIEW
所有的表都在docker容器中,在它们指定的模式下

我只需要大学里的冒险作品。我如何使用这些库 我不明白你这是什么意思。上面列出表格的docker命令是使用它的一种方法。您还可以使用sqlcmdshell在docker容器中运行它。也许你应该更好地解释你想做什么。
在Mac或Linux上使用FWIW,我会简单地使用类似postgreSQL的东西

使用此docker命令:

sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'myStrongP@ssw0rd' -Q "select table_schema,table_name,table_type from AdventureWorks2012.Information_Schema.Tables order by table_type, table_schema, table_name" | tr -s ' '
以下是我得到的表格列表:

table_schema table_name table_type
-------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------- ----------
dbo AWBuildVersion BASE TABLE
dbo DatabaseLog BASE TABLE
dbo ErrorLog BASE TABLE
HumanResources Department BASE TABLE
HumanResources Employee BASE TABLE
HumanResources EmployeeDepartmentHistory BASE TABLE
HumanResources EmployeePayHistory BASE TABLE
HumanResources JobCandidate BASE TABLE
HumanResources Shift BASE TABLE
Person Address BASE TABLE
Person AddressType BASE TABLE
Person BusinessEntity BASE TABLE
Person BusinessEntityAddress BASE TABLE
Person BusinessEntityContact BASE TABLE
Person ContactType BASE TABLE
Person CountryRegion BASE TABLE
Person EmailAddress BASE TABLE
Person Password BASE TABLE
Person Person BASE TABLE
Person PersonPhone BASE TABLE
Person PhoneNumberType BASE TABLE
Person StateProvince BASE TABLE
Production BillOfMaterials BASE TABLE
Production Culture BASE TABLE
Production Document BASE TABLE
Production Illustration BASE TABLE
Production Location BASE TABLE
Production Product BASE TABLE
Production ProductCategory BASE TABLE
Production ProductCostHistory BASE TABLE
Production ProductDescription BASE TABLE
Production ProductDocument BASE TABLE
Production ProductInventory BASE TABLE
Production ProductListPriceHistory BASE TABLE
Production ProductModel BASE TABLE
Production ProductModelIllustration BASE TABLE
Production ProductModelProductDescriptionCulture BASE TABLE
Production ProductPhoto BASE TABLE
Production ProductProductPhoto BASE TABLE
Production ProductReview BASE TABLE
Production ProductSubcategory BASE TABLE
Production ScrapReason BASE TABLE
Production TransactionHistory BASE TABLE
Production TransactionHistoryArchive BASE TABLE
Production UnitMeasure BASE TABLE
Production WorkOrder BASE TABLE
Production WorkOrderRouting BASE TABLE
Purchasing ProductVendor BASE TABLE
Purchasing PurchaseOrderDetail BASE TABLE
Purchasing PurchaseOrderHeader BASE TABLE
Purchasing ShipMethod BASE TABLE
Purchasing Vendor BASE TABLE
Sales CountryRegionCurrency BASE TABLE
Sales CreditCard BASE TABLE
Sales Currency BASE TABLE
Sales CurrencyRate BASE TABLE
Sales Customer BASE TABLE
Sales PersonCreditCard BASE TABLE
Sales SalesOrderDetail BASE TABLE
Sales SalesOrderHeader BASE TABLE
Sales SalesOrderHeaderSalesReason BASE TABLE
Sales SalesPerson BASE TABLE
Sales SalesPersonQuotaHistory BASE TABLE
Sales SalesReason BASE TABLE
Sales SalesTaxRate BASE TABLE
Sales SalesTerritory BASE TABLE
Sales SalesTerritoryHistory BASE TABLE
Sales ShoppingCartItem BASE TABLE
Sales SpecialOffer BASE TABLE
Sales SpecialOfferProduct BASE TABLE
Sales Store BASE TABLE
HumanResources vEmployee VIEW 
HumanResources vEmployeeDepartment VIEW 
HumanResources vEmployeeDepartmentHistory VIEW 
HumanResources vJobCandidate VIEW 
HumanResources vJobCandidateEducation VIEW 
HumanResources vJobCandidateEmployment VIEW 
Person vAdditionalContactInfo VIEW 
Person vStateProvinceCountryRegion VIEW 
Production vProductAndDescription VIEW 
Production vProductModelCatalogDescription VIEW 
Production vProductModelInstructions VIEW 
Purchasing vVendorWithAddresses VIEW 
Purchasing vVendorWithContacts VIEW 
Sales vIndividualCustomer VIEW 
Sales vPersonDemographics VIEW 
Sales vSalesPerson VIEW 
Sales vSalesPersonSalesByFiscalYears VIEW 
Sales vStoreWithAddresses VIEW 
Sales vStoreWithContacts VIEW 
Sales vStoreWithDemographics VIEW
所有的表都在docker容器中,在它们指定的模式下

我只需要大学里的冒险作品。我如何使用这些库 我不明白你这是什么意思。上面列出表格的docker命令是使用它的一种方法。您还可以使用sqlcmdshell在docker容器中运行它。也许你应该更好地解释你想做什么。

在Mac或Linux上使用FWIW,我会简单地使用类似postgreSQL的东西

这是vanilla AdventureWorks数据库吗?IE刚刚下载,没有任何更改?是的,这是一个普通的..看看图片,你正在dbo方案中查看表格。AW有多个方案,可能docker上的版本只有dbo?@CetinBasoz,我在所有方案中都找到了。但实际上不是在docker上,我在看sql server。当我在ms sql management studio上连接同一台服务器时,它拥有所有表。你是说DBeaver和DBvisualizer不显示它们?我不使用它们:只需使用t_SQL进行检查。我使用Go和Go MSSQL库从Mac访问SQL Server表没有问题。这是vanilla AdventureWorks数据库吗?IE刚刚下载,没有任何更改?是的,这是一个普通的..看看图片,你正在dbo方案中查看表格。AW有多个方案,可能docker上的版本只有dbo?@CetinBasoz,我在所有方案中都找到了。但实际上不是在docker上,我在看sql server。当我在ms sql management studio上连接同一台服务器时,它拥有所有表。你是说DBeaver和DBvisualizer不显示它们?我不使用它们:只需使用t_SQL进行检查。我使用Go和Go MSSQL库从Mac访问SQL Server表没有问题。我们正在研究select,不需要对adventure works db做任何更改。我必须做家庭作业,但在家里,我没有任何windows pc来学习ms sql management studio的选择指令。我需要在mac os上进行冒险工作。我尝试了AdventureWorksDW,这一个正在工作,我创建了自己的db,它也可以工作。但我需要使用adventure works 2012/2014。好的,只要使用它,您就可以运行如下命令:Select*from HumanResources.Employee。从docker image sqlcmd shell中运行会更容易。也许在您的工具中,也有一个显示其他模式的选项,即:在Jetbrains datagrip中,默认情况下使用mysql jdbc只显示dbo模式。我在DBeaver中的连接中使用了选项show all schema,我有几个新模式,但它们也是空的。很抱歉,我通常不使用工具,只编写SQL命令。我们正在研究select,不需要对AdventureWorks数据库做任何更改。我必须做家庭作业,但在家里,我没有任何windows pc来学习ms sql management studio的选择指令。我需要在mac os上进行冒险工作。我尝试了AdventureWorksDW,这一个正在工作,我创建了自己的db,它也可以工作。但我需要使用adventure works 2012/2014。好的,只要使用它,您就可以运行如下命令:Select*from HumanResources.Employee。从docker image sqlcmd shell中运行会更容易。也许在您的工具中,也有一个显示其他模式的选项,即:在Jetbrains datagrip中,默认情况下使用mysql jdbc只显示dbo模式。我在DBeaver中的连接中使用了选项show all schema,我有几个新模式,但它们也是空的。很抱歉,我通常不使用工具,只编写SQL命令。