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 |
|
Lord Dubu
Starting Member
12 Posts |
Posted - 2004-05-17 : 08:47:18
|
| Our table stores text results of failed transactions I need to find the username, date and text string excluding certain known error results. Since group by and distinct won't work with text,ntext or image data, I'm getting a lot of duplicate rows. Can someone shed some light on how to get around this? My query follows:select date,name,text_resultfrom dbo.databasename dbnwhere dbn.text_result not like 'blahblahblah1' anddbn.text_result not like 'blahblahblah2' |
|
|
mohdowais
Sheikh of Yak Knowledge
1456 Posts |
Posted - 2004-05-17 : 10:40:51
|
| Do you really need all that data in the text column? If not, you could just cast it to varchar(8000), this will let you group by it.OS |
 |
|
|
|
|
|