Unix Technical Forum

'Optional feature not implemented' in SQL Server

This is a discussion on 'Optional feature not implemented' in SQL Server within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hello, Can anybody help me out....I am getting following error 'Optional feature not implemented' when i try to connect ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 10:03 PM
meet2nish@gmail.com
 
Posts: n/a
Default 'Optional feature not implemented' in SQL Server

Hello,

Can anybody help me out....I am getting following error 'Optional
feature not implemented' when i try to connect to SQL Server database
using SQL Server ODBC Driver Version 2000.85.1117.0. I am using SQL
Server 2000. Following code is a place where actually the output
returned is -1. All the parameters are passed correctly. Still i am
getting this error.

I have changed this piece of code since my application is UNICODE
enabled application.
Type of m_strQualifierParam, m_strOwnerParam, m_strNameParam,
m_strTypeParam is CString.


TRY
{
OnSetOptions(m_hstmt);
AllocStatusArrays();

// call the ODBC catalog function with data member params

AFX_SQL_ASYNC(this, (::SQLTables)(m_hstmt,
(m_strQualifierParam.IsEmpty()? (_TUCHAR FAR *)NULL: (_TUCHAR FAR
*)(const _TCHAR*)m_strQualifierParam), SQL_NTS,
(m_strOwnerParam.IsEmpty()? (_TUCHAR FAR *)NULL: (_TUCHAR FAR
*)(const _TCHAR*)m_strOwnerParam), SQL_NTS,
(m_strNameParam.IsEmpty()? (_TUCHAR FAR *)NULL: (_TUCHAR FAR
*)(const _TCHAR*)m_strNameParam), SQL_NTS,
(m_strTypeParam.IsEmpty()? (_TUCHAR FAR *)NULL: (_TUCHAR FAR
*)(const _TCHAR*)m_strTypeParam), SQL_NTS));



if (!Check(nRetCode))
ThrowDBException(nRetCode, m_hstmt);

// Allocate memory and cache info
AllocAndCacheFieldInfo();
AllocRowset();

// Fetch the first row of data
MoveNext();

// If EOF, result set is empty, set BOF as well
m_bBOF = m_bEOF;
}

This code works fine when i connect with ORACLE but fails with SQL
Server.
Guidance from anybody would be highly appreciated.

Thanks
Nishith Sheth

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com