Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2012
»
SQL Server 2012 - T-SQL
»
DateValue Function missing in SQL Server 2012...
DateValue Function missing in SQL Server 2012 Express
Rate Topic
Display Mode
Topic Options
Author
Message
tonyevans
tonyevans
Posted Tuesday, January 29, 2013 2:02 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 6:55 AM
Points: 3,
Visits: 6
Hi All
I am trying to use the DateValue function on a table in SQL Server Express 2012 but it says that it is 'not a recognized built-in function name'. Has it been removed from the express version or have I done something wrong in the installation?
Thanks
Post #1412819
Eugene Elutin
Eugene Elutin
Posted Tuesday, January 29, 2013 3:14 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 8:22 AM
Points: 2,540,
Visits: 4,363
DateValue is not SQL Server T-SQL function. It is a DAX one. You need SSAS in order to use it.
_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)
How to post your question to get the best and quick help
Post #1412857
tonyevans
tonyevans
Posted Tuesday, January 29, 2013 4:30 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 6:55 AM
Points: 3,
Visits: 6
Thanks SSCrazy, as express doesn't support SSAS I will have to do this a different way.
Post #1412903
Eugene Elutin
Eugene Elutin
Posted Tuesday, January 29, 2013 4:51 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 8:22 AM
Points: 2,540,
Visits: 4,363
You are welcome Forum Newbie
Such a strange nick name you have...
_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)
How to post your question to get the best and quick help
Post #1412926
anthony.green
anthony.green
Posted Tuesday, January 29, 2013 4:54 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
Look at cast or convert using a date style
http://msdn.microsoft.com/en-us/library/ms187928.aspx
, style 100 or 109 may be the ones to go for.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1412931
tonyevans
tonyevans
Posted Tuesday, January 29, 2013 5:18 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 6:55 AM
Points: 3,
Visits: 6
Eugene
Message to self, 'Must read whats on screen before replying'
Anthony.
Thanks for the link will have a play.
Post #1412948
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.