SqlCeRemoteDataAccess クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SqlCeRemoteDataAccess クラスの意味・解説 

SqlCeRemoteDataAccess クラス

SqlCeRemoteDataAccess オブジェクト新しインスタンス初期化します。リモート データ アクセス詳細については、SQL Server Mobile Books Online参照してください

名前空間: System.Data.SqlServerCe
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)
構文構文

Public NotInheritable Class
 SqlCeRemoteDataAccess
    Implements IDisposable
Dim instance As SqlCeRemoteDataAccess
public sealed class SqlCeRemoteDataAccess :
 IDisposable
public ref class SqlCeRemoteDataAccess sealed
 : IDisposable
public final class SqlCeRemoteDataAccess implements
 IDisposable
public final class SqlCeRemoteDataAccess implements
 IDisposable
使用例使用例

SqlCeRemoteDataAccess オブジェクト新しインスタンス初期化する方法次の例に示します

' Connection String to the SQL Server
'
Dim rdaOleDbConnectString As String
 = "Data Source=MySqlServer;Initial Catalog=AdventureWorks; "
 & _
    "User Id=username;Password = <password>"

' Initialize RDA Object
'
Dim rda As SqlCeRemoteDataAccess = Nothing

Try
    ' Try the Pull Operation
    '
    rda = New SqlCeRemoteDataAccess( _
        "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll",
 _
        "MyLogin", _
        "<password>", _
        "Data Source=MyDatabase.sdf")

    rda.Pull("Employees", "SELECT
 * FROM DimEmployee", rdaOleDbConnectString, _
        RdaTrackOption.TrackingOnWithIndexes, "ErrorTable")

    ' or, try one of these overloads:
    ' rda.Pull("Employees", "SELECT * FROM DimEmployee",
 rdaOleDbConnectString, _
    '     RdaTrackOption.TrackingOnWithIndexes)
    '
    ' rda.Pull("Employees", "SELECT * FROM DimEmployee",
 rdaOleDbConnectString)

Catch
    ' Handle errors here
    '
Finally
    ' Dispose of the RDA object
    '
    rda.Dispose()
End Try
// Connection String to the SQL Server
//
string rdaOleDbConnectString = "Data Source=MySqlServer;Initial
 Catalog=AdventureWorks; " +
    "User Id=username;Password = <password>";

// Initialize RDA Object
//
SqlCeRemoteDataAccess rda = null;

try
{
    // Try the Pull Operation
    //
    rda = new SqlCeRemoteDataAccess(
        "http://www.adventure-works.com/sqlmobile/sqlcesa30.dll"
,
        "MyLogin",
        "<password>",
        "Data Source=MyDatabase.sdf");

    rda.Pull("Employees", "SELECT * FROM DimEmployee", rdaOleDbConnectString
,
        RdaTrackOption.TrackingOnWithIndexes, "ErrorTable");

    // or, try one of these overloads:
    //
    // rda.Pull("Employees", "SELECT * FROM DimEmployee",
 rdaOleDbConnectString,
    //     RdaTrackOption.TrackingOnWithIndexes);
    //
    // rda.Pull("Employees", "SELECT * FROM DimEmployee",
 rdaOleDbConnectString);
}
catch (SqlCeException)
{
    // Handle errors here
    //
}
finally
{
    // Dispose of the RDA object
    //
    rda.Dispose();
}
継承階層継承階層
System.Object
   System.Data.InternalDataCollectionBase
    System.Data.SqlServerCe.SqlCeRemoteDataAccess
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlCeRemoteDataAccess メンバ
System.Data.SqlServerCe 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SqlCeRemoteDataAccess クラス」の関連用語

SqlCeRemoteDataAccess クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SqlCeRemoteDataAccess クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS