The easiest way would be to get our CVI Enterprise Connectivity toolkit which includes a library for SQL programming to access the database. You can see the details of that toolkit
here.
If you don't want to do this you can access it through ActiveX and Microsoft's Data Access Components. You can use the Tools->Create ActiveX Controller... to create a instrument driver to program the Data Access Components (MDAC). It will be harder to program this way, but you can find documentation for MDAC from Microsoft on MSDN (msdn.microsoft.com).
Best Regards,
Chris Matthews
National Instruments