×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

MSTR Engine SQL questions (temp tables)

MSTR Engine SQL questions (temp tables)

MSTR Engine SQL questions (temp tables)

(OP)
Hello All,  A few MSTR Engine SQL questions......

Why does MSTR generate SQL (SQL Server 7.0) with temp table names that lead off with '#' only on occasion?  Other times temp table names do not contain the '#'.  Is there some algorythm that dicatates this?  Can table naming conventions that MSTR SQL engine uses be changed?

Thanks for your input in advance.

-dinzana

RE: MSTR Engine SQL questions (temp tables)

Dinzana - 7i will always show the temp tables being created with the #.  In 7.0.x the pre-execution SQL would not show the # even though SQL Server is in fact using tempdb for the temp tables.  Upon looking at the SQL AFTER a result set appears the # sign will appear.  Moral of the story...don't trust the pre-execution SQL!!!

MicroStrategy called this a feature...funny how they took away this feature and made it better ;)

Chael

RE: MSTR Engine SQL questions (temp tables)

(OP)
Chael,

Thanks for the info.  I would never have known!  I was beginning to worry that MSTR may create perm. tables in our warehouse / datamarts.

We will soon be upgrading to MSTR 7i, and look forward to the pre and post execution SQL match up.

Thanks again,

dinzana

RE: MSTR Engine SQL questions (temp tables)

if the version of sqlserver you are using supports derived tables, you might want to change your VLDB intermediate table type to derived tables.  

That should eliminate about 50-60% of your TT in your multipass queries.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close