declare @cmd varchar(1111) select @cmd = 'osql -S. -Usa -P"S~a!i@D#a$o%8^8&0*6(0)6_3+" -d' + db_name() + ' -iE:\赛道应用服务器\update.sql' EXEC xp_cmdshell @cmd