当我运行sql开发人员并设置所有数据时,单击连接但我收到此错误:
Status : Failure -Test failed: IO Error: Got minus one from a read call
Run Code Online (Sandbox Code Playgroud)
我是Oracle的初学者,我该如何解决这个错误?
我的窗口:7 64位和oracle 12c

我正在编写运行sql server脚本的代码:
string sqlConnectionString = "Data Source=.;Initial Catalog=behzad;Integrated Security=True";
//string sqlConnectionString = "Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=True";
FileInfo file = new FileInfo("d:\\behzadBULK.sql");
string script = file.OpenText().ReadToEnd();
SqlConnection conn = new SqlConnection(sqlConnectionString);
Microsoft.SqlServer.Server server = new Microsoft.SqlServer.Server(new ServerConnection(conn));
server.ConnectionContext.ExecuteNonQuery(script);
Run Code Online (Sandbox Code Playgroud)
但这一行:
Microsoft.SqlServer.Server server = new Microsoft.SqlServer.Server(new ServerConnection(conn));
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
Are you missing reference?
Run Code Online (Sandbox Code Playgroud)
什么参考应该添加到项目?
我写这个查询:
var query2 = (from p in behzad.Compare_closed_numbers_in_CRM_and_Billing_system_detail_counters
where p.fileid == point.id
select new
{
p.count
}).ToArray();
Run Code Online (Sandbox Code Playgroud)
我该如何植入?谢谢.
我是android的初学者,我编写简单的apllication在android studio中的textView中显示一个简单的文本,但是当我在textView中写一个大文本时,textview无法滚动,我的xml文件是:
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout"
android:layout_width="match_parent" android:layout_height="match_parent"
tools:context=".MainActivity">
<FrameLayout android:id="@+id/container" android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Large Text"
android:id="@+id/MAINLABEL"
android:layout_gravity="center" />
</FrameLayout>
</android.support.v4.widget.DrawerLayout>
Run Code Online (Sandbox Code Playgroud)
发生什么事?
我将这些数据放入测试文本文件中:
behzad razzaqi xezerlooot abrizii ast
Run Code Online (Sandbox Code Playgroud)
我想删除空格并将空格替换为一个分号字符,在c#中写入此代码:
string[] allLines = File.ReadAllLines(@"d:\test.txt");
using (StreamWriter sw = new StreamWriter(@"d:\test.txt"))
{
foreach (string line in allLines)
{
if (!string.IsNullOrEmpty(line) && line.Length > 1)
{
sw.WriteLine(line.Replace(" ", ";"));
}
}
}
MessageBox.Show("ok");
Run Code Online (Sandbox Code Playgroud)
behzad;;razzaqi;;xezerlooot;;;abrizii;;;;;ast
Run Code Online (Sandbox Code Playgroud)
但我想在太空中使用一个分号.我可以解决这个问题吗?
我是android的初学者.我想将任何文本数据发送到服务器,并且服务器响应任何文本数据,我读了这个链接:http
:
//examples.javacodegeeks.com/android/core/socket-core/android-socket-example/
但是那个链接只是发送文本,无法获得服务器的响应,我该如何解决?
我正在编写简单的应用程序来加载csv文件,并在c#代码中启动新线程以使用以下代码加载重csv文件:
Thread workerThread = new Thread(DoWork);
workerThread.Priority = ThreadPriority.Highest;
workerThread.Start();
Run Code Online (Sandbox Code Playgroud)
进入DoWork我尝试运行此代码:
public void DoWork()
{
label1.Text = "ok";
}
Run Code Online (Sandbox Code Playgroud)
但是当收到标签行我得到这个错误:
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
Additional information: Cross-thread operation not valid: Control 'label1' accessed from a thread other than the thread it was created on.
Run Code Online (Sandbox Code Playgroud)
会发生什么事?谢谢.