现在我有一个 SSIS 包,它每天早上运行并给我一份关于前一天失败或成功的包数.这些包的信息部分包含在 SQL Server 2005.
Right now I have an SSIS package that runs every morning and gives me a report on the number of packages that failed or succeeded from the day before. The information for these packages is contained partly within the sysjobs table (a system table) within the msdb database (a system database) in SQL Server 2005.
当尝试将包移动到 C# 可执行文件时(主要是为了通过发送的电子邮件获得更好的格式),我无法找到一种方法来创建允许我通过以下方式访问这些表的 dbml 文件LINQ.我试图寻找可以使这些表可见的任何属性,但我运气不佳.
When trying to move the package to a C# executable (mostly to gain better formatting over the email that gets sent out), I wasn't able to find a way to create a dbml file that allowed me to access these tables through LINQ. I tried to look for any properties that would make these tables visible, but I haven't had much luck.
这是否可以使用 LINQ to SQL?
如果您在服务器资源管理器中,可以通过以下方式使它们可见:
If you're in Server Explorer, you can make them visible this way:
这篇关于使用 LINQ to SQL 访问系统数据库/表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
为什么我不应该总是在 C# 中使用可空类型Why shouldn#39;t I always use nullable types in C#(为什么我不应该总是在 C# 中使用可空类型)
C# HasValue vs !=nullC# HasValue vs !=null(C# HasValue vs !=null)
C# ADO.NET:空值和 DbNull —— 有没有更高效的语法C# ADO.NET: nulls and DbNull -- is there more efficient syntax?(C# ADO.NET:空值和 DbNull —— 有没有更高效的语法?)
如何在c#中将空值设置为int?How to set null value to int in c#?(如何在c#中将空值设置为int?)
使用 Min 或 Max 时如何处理 LINQ 中的空值?How to handle nulls in LINQ when using Min or Max?(使用 Min 或 Max 时如何处理 LINQ 中的空值?)
在 C# 中如果不为 null 的方法调用Method call if not null in C#(在 C# 中如果不为 null 的方法调用)