can we connect to sql server database through macro..?

if possible can anyone tell the syntax for that...

thanks in advance
vasa hemanth saikumar.