on 01-31-2011 4:01 PM
Dear Experts,
I need to add to an @prompt condition in the universe, the default value getdate() but SQL Server is not recognizing that function.
How am I able to create a dimension with select getdate()?
thanks in advance,
Inê
getdate() is fine.
It will not parse because getdate() does not come from a table.
Designer tries to parse it as "SELECT getdate() FROM", which obviously fails.
Don't associate a table with it just to get it to parse though.
Try it in a query before changing it.
If you are still struggling, there is a good article by Dave Rathbun:
http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the error message like "Statement could not be prepared"?
It doesn't matter you can use getdate(), anyway. It's just what me map says. Just ignore that error message but make sure that your logic is oK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.