Mikael,
The SQL toolkit is using a lot of native code. This code takes a while to run, but the profiler does not have timing control over it. That is probably where the timing differences come from.
Plus, there is always a little overhead in the profiler anyway, but I agree that it is not 3 seconds.
Randy Hoskin
Applications Engineer
Nationsl Instruments
http://www.ni.com/ask