Re: SQLPutData against MSSQL view
- From: "KM" <zenge@xxxxxxxxxx>
- Date: Thu, 18 Jan 2007 01:14:39 +0900
Hi, Thank you for your response.
From your description, I understand that:
You application failed to insert data by using SQLPutData against view
column with MDAC; however you could do that with SQL Native Client.
If I have misunderstood, please let me know.
Yes, you are right. But binding text column with SQL_LONGVARCHAR caused same problem with SQL Native Client also.
a) What is the version of your SQL Server?Using SQL Server 2000 when connecting with MDAC, SQL Server 2005 for SQL Native Client.
b) Could you manage to perform the insert operation by specifying the
parameter with SQL_LONGVARCHAR?
Yes, I did the testing and binding the parameter with SQL_LONGVARCHAR is causing the problem.
I believe that SQL_VARCHAR cannot be used on text/binary/image columns in
MDAC. SQL Native Client can support varchar(max), so it most likely support
using SQL_VARCHAR on text columns. However I have not found any public
documents clearly talking about this. I will consult product team to
confirm this and let you know the result as soon as possible.
I could not find the documentation either.
I would appreciate if you could contact product team if this is a limitation for SQL Server ODBC.
Thank you very much for your help,
KM
.
- Follow-Ups:
- Re: SQLPutData against MSSQL view
- From: Charles Wang[MSFT]
- Re: SQLPutData against MSSQL view
- From: Charles Wang[MSFT]
- Re: SQLPutData against MSSQL view
- References:
- SQLPutData against MSSQL view
- From: KM
- RE: SQLPutData against MSSQL view
- From: Charles Wang[MSFT]
- SQLPutData against MSSQL view
- Prev by Date: RE: SQLPutData against MSSQL view
- Next by Date: Named Pipe ODBC reverts back to TCP/IP in ODBC Data Source Admin
- Previous by thread: RE: SQLPutData against MSSQL view
- Next by thread: Re: SQLPutData against MSSQL view
- Index(es):
Relevant Pages
|