用xp_cmdshell,例如:exec master..xp_cmdshell 'ping 100.100.100.100'

解决方案 »

  1.   

    exec master..xp_cmdshell 'dir d:\'
    exec master..xp_cmdshell 'notepad.exe'
    ...
      

  2.   

    你还可以用sp_OACreate,sp_OAMethod...调用一些OLE OBJECTS.
      

  3.   

    exec master..xp_cmdshell 'dir d:\'
    千万不要调用需要与用户交互的程序:
    不要执行:exec master..xp_cmdshell 'notepad.exe'执行后,你在任务管理器中可以看到该进程,但即不能用,又不能结束它.这是我在win2000下测试过的.
      

  4.   

    怎样在程序中连接数据库,ODBC和ADO方法各有那些?急救。谢谢!!!