我有一个访问前端和SQL Server后端.我想知道哪些用户当前正在使用该数据库.这可以使用access或sql-server吗?
是否可以在access-2007中检测是否存在使用VBA的打开查询?
我正在打开这样的查询:
stDocName = "Meeting_Reasons_Frequency"
DoCmd.OpenQuery stDocName
Run Code Online (Sandbox Code Playgroud)
是否可以检测它是否开放?
我需要循环遍历我的数据表的一列,并对它进行一些字符串操作.有人可以给我一个例子,说明我将如何遍历表格并更新一些数据?
我想通过写日期获取目录中所有文件的列表:
private void Form1_Load(object sender, EventArgs e) {
DateTime LastCreatedDate =
Properties.Settings.Default["LastDateTime"].ToDateTime();
string [] filePaths = Directory.GetFiles(@"\\Pontos\completed\", "*_*.csv")
.OrderBy(p => System.IO.File.GetLastWriteTime(p))
.Where(p>=LastCreatedDate);
}
Run Code Online (Sandbox Code Playgroud)
问题
string []不适合这个,因为它不知道如何进行转换.我应该使用哪种数据类型?我正在打开这样的excel文件:
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
Excel.Worksheet xlWorkSheet;
Excel.Range range;
string str;
int rCnt = 0;
int cCnt = 0;
xlApp = new Excel.ApplicationClass();
xlWorkBook = xlApp.Workbooks.Open("csharp.net-informations.xls", 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0);
xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
Run Code Online (Sandbox Code Playgroud)
我想知道:
如何遍历所有行并删除字符串SomeString未出现的每一行column A?
我知道如何遍历每个值:
for (rCnt = 1; rCnt <= range.Rows.Count; rCnt++)
{
for (cCnt = 1; cCnt <= range.Columns.Count; cCnt++)
{
str = (string)(range.Cells[rCnt, cCnt] as Excel.Range).Value2;
MessageBox.Show(str);
}
}
Run Code Online (Sandbox Code Playgroud)
但我不知道如何删除整行
我想在我的报告中隐藏在特定字段集中不包含任何值的行。
这个问题很有帮助
我不明白如何检查多个字段是否为空。
目前,我正在这样做:

并在可见性下:

我输入了这个表达式:
=iif(fields!Jan.Value
+fields!Feb.Value
+fields!Mar.Value
+fields!April.Value
+fields!May.Value
+fields!June.Value
+fields!July.Value
+Fields!Aug.Value
+Fields!Sept.Value
+Fields!Oct.Value
+Fields!Nov.Value
+Fields!Dec.Value="",TRUE,FALSE)
Run Code Online (Sandbox Code Playgroud)
但我收到此错误:

如果值为空或空白,我如何隐藏一行?
我insert在我的azure函数中运行以下代码到azure sql server 2014数据库:
private static void Command(SqlConnection sqlConnection, string query)
{
var sqlCommand = new SqlCommand(query, sqlConnection);
try
{
sqlConnection.Open();
sqlCommand.ExecuteNonQuery();
}
finally
{
sqlConnection?.Close();
}
}
Run Code Online (Sandbox Code Playgroud)
并获得以下异常:
此平台不支持System.Data.SqlClient
以下是它使用的依赖链:
如何从我的应用程序运行简单的sql命令?我究竟做错了什么?
我们如何将XML有效负载内部的数据保存到Blob存储?
输入
<root>
<alexIsAwesome>yes he is</alexIsAwesome>
<bytes>sdfsdfjijOIJOISJDFQPWORPJkjsdlfkjlksdf==</bytes>
</root>
Run Code Online (Sandbox Code Playgroud)
理想的结果
<root>
<alexIsAwesome>yes he is</alexIsAwesome>
<bytes>/blob/path/toSavedPayload</bytes>
</root>
Run Code Online (Sandbox Code Playgroud)
我们如何使用数据工厂从XML中提取节点并将其保存到Blob?
是否可以更改触发的默认事件blobcreated?
存储帐户具有在删除/创建Blob时触发事件的功能:
如果添加新的事件订阅,则可以在以下三个选项之间进行选择:
我希望能够使用“ 自定义输入模式”。但是,没有有关如何使用它的文档。
我们如何自定义自定义输入模式?
默认模式如下所示:
{
"topic": "/subscriptions/xxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/mystoraccount",
"subject": "/blobServices/default/containers/xmlinput/blobs/myj.json",
"eventType": "Microsoft.Storage.BlobCreated",
"eventTime": "2019-05-20T18:58:28.7390111Z",
"id": "xxxxxxxxxxxxxxxx",
"data": {
"api": "PutBlockList",
"clientRequestId": "xxxxxxxxxxxxxxxx",
"requestId": "xxxxxxxxxxxxxxxx",
"eTag": "0x8D6DD55254EBE75",
"contentType": "application/json",
"contentLength": 874636,
"blobType": "BlockBlob",
"url": "https://mystoraccount.blob.core.windows.net/xmlinput/myj.json",
"sequencer": "00000000000000000000000000005FAC0000000000614963",
"storageDiagnostics": {
"batchId": "xxxxxxxxxxxxxxxx"
}
},
"dataVersion": "",
"metadataVersion": "1"
}
Run Code Online (Sandbox Code Playgroud)
我想只返回文件名,在这种情况下,它是一个字符串subject,myj.json。
我们如何自定义要触发的事件?
所需结果:
{
"filename": "myj.json"
}
Run Code Online (Sandbox Code Playgroud)