Above and beyond the lack of pre-2008 SQL-Server support in 10.2.x, you've
got two issues:
1) ArcGIS 9.3/9.3.1 is now in Retired support status
2) Storing rasters in databases is old-school
I suggest using the older tools to migrate all your 9.x data into 10.x geodatabases,
and look into raster datasets for the raster data.
- V