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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-12-04 : 08:15:29
|
| raju writes "hai i am using sustring function and charindex function to split a string this query working fine but when i amtrying to get values based on the date it throughing an error saying that "Invalid length parameter passed to the substring function. ..." can u please suggest me on this problem?" |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-12-04 : 08:23:44
|
| convert datetimevalue to varchar first.Peter LarssonHelsingborg, Sweden |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-12-04 : 08:24:33
|
| Probably passing a negative length to the substring.Try selecting the min start and length rather than running the substring.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|