#1  
Old 14th September 2005, 03:25 AM
Petr Manas
 
Posts: n/a
Default WideString problem not solved

Hi,

there is still unsolved problem with WideString in NexusDB2 ODBC Beta 15.
ShortString, NullString and BlobMEMO fields are displaying ok, but
WideString display just 2 first chars of the field content.

protected void Page_Load(object sender, EventArgs e)
{
OdbcConnection oConn = new OdbcConnection("Dsn=NexusDB2");
oConn.Open();
DataSet oDataSet = new System.Data.DataSet("tab1");
OdbcDataAdapter oAdapter = new OdbcDataAdapter("select * from News",
oConn);
oAdapter.Fill(oDataSet, "tab1");
DataTable dt = oDataSet.Tables["tab1"];
GridView1.DataSource = dt;
GridView1.DataBind();
oConn.Close();

}

ASP.NET 2.0, MS Windows XP Pro SP2 Czech, VS 2005 Beta 2.

---------------------------------------------------------

It work's OK in PHP (including WideString fields) !!!

<?

$odbc_connection = ODBC_Connect("NexusDB2","","");

if (!$odbc_connection):
echo "Chyba pripojeni !!!";
else:

$vysledek = ODBC_Exec($odbc_connection, "SELECT * FROM News");

if (!$vysledek):
echo "Chyba vysledku !!!";
else:

$pocetvet = ODBC_Num_Rows($vysledek);
echo $pocetvet;

while ($n = ODBC_Fetch_Into($vysledek,&$x)):
for ($i=0;$i<$n;$i++)
echo "[".$x[$i]."] ";
echo "<br>\n";
endwhile;

endif;

ODBC_Free_Result($vysledek);
ODBC_Close($odbc_connection);

endif;

?>

===> there is probably some problem in cooperation of ODBC drivere and
ADO.NETNebo delam nekde chybu?

When will be available next beta of ODBC (and ADO.NET Provider)?

Thanks

Petr Manas
manas.info
Czech Republic


  #2  
Old 14th September 2005, 11:30 AM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: WideString problem not solved

> Hi,

Hi, please avoid multiposting the same question. Saves us from answering
multiple times.

--

Eivind Bakkestuen
Nexus Database Systems




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +11. The time now is 03:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.