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 |
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2008-05-06 : 01:44:52
|
| hii have one table their is two colomn one is name and second birhtdatehow to find name is born month name Maythank |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-05-06 : 01:55:03
|
| DATENAME(mm,birthdate) |
 |
|
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2008-05-06 : 02:05:46
|
| hi Visakh16i have write query toSelect * from tablenamewhere birthdate in(DATENAME('MM','2006-5-23'))dispaly errorInvalid parameter 1 specified for datename. |
 |
|
|
soorajtnpki
Posting Yak Master
231 Posts |
Posted - 2008-05-06 : 02:57:41
|
| hi try this Select * from table where DATENAME(month,dob)='may'ok |
 |
|
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2008-05-06 : 03:02:14
|
| thanks soorajtnpki it is work |
 |
|
|
|
|
|