index > SQL Server Everywhere Edition > SQL Everywhere, ntext & ADO Classic

SQL Everywhere, ntext & ADO Classic

Hello!

I'm trying to move from MSDE to SQL Everywhere in my project, which requires using of ADO classic and i have some problems storing ntext data in SQLEv database using parametrized command.

Could it be that the problem is because of ADO classic? Is it ok to use old ADO with SQLEv OLEDB provider and will compatibility with old ADO be maintained in SQLEv?

Below is JScript code illustrating the situation:
-------------------------------
var oConn = new ActiveXObject("ADODB.Connection");
oConn.Open(sConnStr);
var oCmd = new ActiveXObject("ADODB.Command");
oCmd.ActiveConnection = oConn;
var sText = "test text";
oConn.Execute("create table tblTest(sText ntext)");
oCmd.CommandText = "insert into tblTest(sText) values(?)";
oCmd.Parameters(0).Value = sText;
oCmd.Parameters(0).Size = sText.length;
oCmd.Execute();
-------------------------------
It gives me 'Microsoft SQL Server 2005 Everywhere Edition OLE DB Provider: The given type name was unrecognized. [,,,,,]'.

If i remove 'oCmd.Parameters(0).Size = sText.length;' error changes to 'Insufficient memory to complete the operation.'

The same code works ok for MSDE and SQLExpress.
OS:Windowx XP SP2
MDAC version: 2.8

Many thanks!
lysy95

As of today, we dont support SQL Server Everywhere with ADO. We support only OLEDB and ADO.NET. The problem comes with the property sets in OLEDB that are specific to SQL Server Everywhere which cant be accessed via ADO.

Thanks,

Laxmi Narsimha Rao ORUGANTI, SQL Server Everywhere, Microsoft Corporation




Please hit "Yes", if my post answered your question(s). All postings are as-is and confer no rights.
Laxmi Narsimha Rao ORUGANTI MSFT

Thank you for your reply!

Have you plans to support ADO in future releases of OLEDB provider for SQL Everywhere?

lysy95
reply 3

You can use google to search for other answers

 

More Articles

• 0x80040e21 error running SQLCE 2.0 on Windows Mobile 5.0 device
• ISNULL ( ) support in SQL Server mobile?
• SQL Server Mobile Merge Replication walkthrough, cant find the .N...
• Adding Table to Dataset for SQL Server Mobile causes VS 2005 to l...
• Newbie: "Sql mobile" or it is "Sql Server Everywhe...
• Using SqlCeEngine to verify/Restore a database
• Accessing Mobile SQL Databases in VB2005 - Windows Apps
• Conflict Management
• Create New SQL Server Mobile Edition Database
• Accessing SQL Mobile Databases in VB2005 - Pocket PCApp
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Is there a limit to Number of SqlCeParam
• creating tables
• CE upgrade tool?
• sql mobile question
• SQL Express --Windows Authentication pro
• ResultSet in Avalon (WinFX-WPF-.net3.0)
• SOS, please help
• Help setting up replication on remote IIS
• *.mdf to *.sdf
• Loading data in SQL Mobile 2005 from the
• Header Corruption Error
• General Network error....
• How do I install SQL Server Management S
• RAPI fails on CeMountDBVol (WinMobile 5)
• Sync sql server 2005 mobile edition with

Hot Articles

• The path is not valid. Check the directo
• Open connection in sql server
• Connecting SQL SERVER to SQL EVEREWHERE
• How to make synchronize once instead of
• Creating and deploying sql mobile databa
• any one know whats wrong with it
• Visual Studio 2005 The remote connection
• Everywhere Edition and VS Express
• Problem in using EDB
• SQL Server Mobile - Latest Version?
• SDF Creation on Desktop
• Relations Error -
• sql server CE supported classes
• Views not working
• Alter statement to create foreign key re

Recommend Articles

• I have the same problem
• IIS error on New Subscription
• RDA SQL MOBILE ERROR 28037 HResult = -2
• Error when applying snapshot
• Rapi SecurityPolicy on Windows Mobile 5
• VS 2005 + sdf + foreign key
• SQL Mobile Connection problems
• Debuggin on PDA
• Open SqlCeConnection from an ASP.NET Web
• an error while trying to read .sdf file
• duplicated data display
• Create New SQL Server Mobile Edition Dat
• access SQL2005 MOBILE database in a VS20
• SqlCe Memory issue
• Recover SDF-File