When you say "test script" are you talking about scripts for manual tests or automated tests?
If you are talking about manual tests, then the "script" is the set of Design Steps associated with the test case, and the other forum post (where i am actually the person that posted the sample query) should work for you. If it isn't, please explain exactly how it didn't provide what you wanted.
If you are talking about automated tests, then the automated test script is not stored in any database table. Automated test scripts are stored in the ALM/QC Repository in the file system. You can't access those scripts using the Dashboard Excel Query feature.
So, please clarify what type of tests you are accessing and exactly how the results you are getting are not meeting your needs.