Cassandra Oledb Provider Sample crashes

More
6 years 4 weeks ago #10983 by eugeneng
eugeneng created the topic: Cassandra Oledb Provider Sample crashes
HI, recently I downloaded and installed the trial version of Cassandra Oledb Provider. when I try to run the C# sample, it crashes at :

file : 02_SimpleQuery.cs
line 24
public static int Sample02_SimpleQuery(OleDbConnection conn)
{
ConsoleWriteSampleHeader("[Sample 2.1] Getting records from database using OleDbDataReader.");
String lastStmt = "";

try
{
// Read records from pgnp_samples.contact table.
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandText = lastStmt = "SELECT \"FirstName\",\"LastName\",active,\"HireDate\" FROM \"CasoTestEmployee\" LIMIT 5;";
[color=#FF4040:1bhf9q42] OleDbDataReader reader = cmd.ExecuteReader(); <
Crashes here!![/color:1bhf9q42]


with System Access Violation exception: {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."}

and I received similar error when I tried to use SSIS to import 10 rows of record into Cassandra database.

is this the limitation of the trial version?

Please Log in or Create an account to join the conversation.

More
6 years 3 weeks ago #10987 by Moderator
Moderator replied the topic: Re: Cassandra Oledb Provider Sample crashes
No, probably not. What is Cassandra version you use?

Please Log in or Create an account to join the conversation.

More
6 years 3 weeks ago #11038 by eugeneng
eugeneng replied the topic: Re: Cassandra Oledb Provider Sample crashes
[cqlsh 4.1.0 | Cassandra 2.0.4 | CQL spec 3.1.1 | Thrift protocol 19.39.0]

Please Log in or Create an account to join the conversation.

More
6 years 2 weeks ago #11088 by Moderator
Moderator replied the topic: Re: Cassandra Oledb Provider Sample crashes
We have fixed the Cassandra provider and updated C# Samples ( http://www.pgoledb.com/index.php?option ... &Itemid=68 )

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum