我想在 VB.NET 应用程序中使用以下 SQL 语句:
select * from information_schema.parameters
where specific_name='GetTaskEvents'
SELECT *
FROM
INFORMATION_SCHEMA.ROUTINES
WHERE
ROUTINE_NAME= 'GetTaskEvents'
我今天和 DBA 谈了这件事,他似乎不高兴,但没有给出理由。这样做是不好的做法吗?
我希望能够做这样的事情
public sub Delete()
'loop around about ten databases
'Call the delete function in each of the databases (check that the stored procedure exists first)
'Each database has different output parameters. Deal with them differently e.g. if there is an email parameter, then email the person to say the record was deleted.
End Sub
这样做的原因是我可以对每个数据库一视同仁。