How to import legacy SolidWorks files in PDMWorks® Enterprise vault and maintain their existing revision numbers?

See also: S-09541

I got this error message:

An insufficient number of arguments were supplied for the procedure or function dbo.fnCallRevNum.

I need a updated version of this SQL script to EPDM 2011 SP2

SolidworksSolidworks Pdm enterprise Pdm