Sql-server – How to generate TPC-DS query for sql-server from templates

benchmarksql server

I know that dsqgen is used to transform the query templates into executable SQL. But when I type in the command line: "dsqgen /directory query_templates /template query1.tpl /dialect sqlserver /scale 5", there's an error that "Substitution 'STATE' is used before being initialized". I also copied the ansi.tpl and tpcds.idx files in the same directory as dsqgen.exe because dsqgen always read these two files. Anyone has any idea how can I solve this? Thanks in advance.

Best Answer

You can download fix error "STATE" and endcoding dump data to database at https://github.com/grahn/tpcds-kit