Excuse me, I tried out an SQL statement on the MSSQL management tool to return the data set, but when I put this statement into the metabase new query, I can't get the dataset and show no result. What's the matter, thank you
Hi @zqycn
Post "Diagnostic Info" from Admin > Troubleshooting.
And it would be helpful if you provided the query to better understand the problem.
Excuse me, I tried out an SQL statement on the MSSQL management tool to return the data set, but when I put this statement into the metabase new query, I can't get the data set and show no result. What's the matter, thank you
{
"browser-info": {
"language": "zh-CN",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.37",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "1.8.0_282-b08",
"java.vendor": "Red Hat, Inc.",
"java.vendor.url": "https://www.redhat.com/",
"java.version": "1.8.0_282",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "25.282-b08",
"os.name": "Linux",
"os.version": "3.10.0-1062.el7.x86_64",
"user.language": "zh",
"user.timezone": "Asia/Shanghai"
},
"metabase-info": {
"databases": [
"h2",
"sqlserver"
],
"hosting-env": "unknown",
"application-database": "mysql",
"application-database-details": {
"database": {
"name": "MySQL",
"version": "5.7.32-log"
},
"jdbc-driver": {
"name": "MariaDB Connector/J",
"version": "2.6.2"
}
},
"run-mode": "prod",
"version": {
"tag": "v0.39.3",
"date": "2021-05-27",
"branch": "release-x.39.x",
"hash": "598a112"
},
"settings": {
"report-timezone": null
}
}
}
@zqycn Post your query.
Excuse me, how to post
select * FROM Ft_采购明细_合并('2020-1-1','2021-05-31')
where 1=1
and PATINDEX('%促黄体生成素检测试剂盒(化学发光法)%',商品名称)>0
@zqycn So first step is to figure out what is failing.
Do you get results with this ?
select * FROM Ft_采购明细_合并('2020-1-1','2021-05-31')
Check your MSSQL query log to see what MSSQL is getting from Metabase.
When I came back from my vacation, I found that I could get the data:sweat_smile:
@zqycn Then it would be helpful if you write what the problem was and how you resolved it, so others can learn from it.