Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
tariq2
Posting Yak Master
125 Posts |
Posted - 2012-01-03 : 08:48:50
|
| Hi, I am trying to run the following, thank you in advance:select * from BIProd.dbo.BIRefreshLog where Object = 'ETL' ANDDURATION >'7200' AND MID(StartDateTime,7,2) = '01'and receive the following:Msg 195, Level 15, State 10, Line 2'MID' is not a recognized built-in function name. |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2012-01-03 : 09:03:16
|
| MID is not a T-SQL function (assuming you are using Microsoft SQL Server). Use SUBSTRING instead. http://msdn.microsoft.com/en-us/library/ms187748.aspxThat is assuming that StartDateTime is of character type. If it is one of the datetime types, use DATEPART function. |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|
|
|