<script language=vbscript> function LaunchSQL( cServer, cDatabase ) Set oShell = CreateObject( "wscript.shell" ) oShell.Run "isqlw.exe -S " & cServer & " -d " & cDatabase, 1 end function </script> <a href='vbscript:LaunchSQL( "{servname}", "{dbname}" )'><img src="isqlw50.gif" border="0" /></a>>I know this has anything to do with VFP but I'm sure you'll help me :-)