Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

XML Data Type Problems in SQL Server 2008 and Access 2003 ..

 
   Database Help (Home) -> ODBC RSS
Next:  Checking port status using php  
Author Message
WeaselAce

External


Since: Nov 03, 2008
Posts: 1



(Msg. 1) Posted: Mon Nov 03, 2008 4:18 pm
Post subject: XML Data Type Problems in SQL Server 2008 and Access 2003 (ODBC)
Archived from groups: microsoft>public>sqlserver>odbc (more info?)

I am using Access 2003 via ODBC to connect to tables in a SQL Server
database. (The database was created using SQL Server 2005. I'm using SQL
Server 2008 Express to connect to copies of the database files for
development purposes.)

Several of the tables have fields with XML data types. After linking to the
tables from Access, I note that the data type for these XML fields, as
reported by Access, is "text" and has a length of only 255 characters. As a
result, most of the ~2500 bytes of data in the XML field is lost and all that
I see is the last ~180 bytes.

What options are available for working around this problem? I'm new to SQL
server. Thanks for any help in advance.

 >> Stay informed about: XML Data Type Problems in SQL Server 2008 and Access 2003 .. 
Back to top
Login to vote
Ted McNeal

External


Since: Nov 16, 2008
Posts: 1



(Msg. 2) Posted: Sun Nov 16, 2008 2:21 am
Post subject: Re: XML Data Type Problems in SQL Server 2008 and Access 2003 (ODBC) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It appears that you will need to do one of two things.

First, you can try putting the database in 2005 compatibility mode...a
property of the database.

If that doesn't do the trick for you then cast the values as a varchar(max).

e.g.

SELECT t1.SomeID,
CAST(t1.SomeXML AS nvarchar(max)) AS SomeXML
FROM dbo.SomeTable t1

-Ted

"WeaselAce" wrote in message

>I am using Access 2003 via ODBC to connect to tables in a SQL Server
> database. (The database was created using SQL Server 2005. I'm using SQL
> Server 2008 Express to connect to copies of the database files for
> development purposes.)
>
> Several of the tables have fields with XML data types. After linking to
> the
> tables from Access, I note that the data type for these XML fields, as
> reported by Access, is "text" and has a length of only 255 characters. As
> a
> result, most of the ~2500 bytes of data in the XML field is lost and all
> that
> I see is the last ~180 bytes.
>
> What options are available for working around this problem? I'm new to
> SQL
> server. Thanks for any help in advance.

 >> Stay informed about: XML Data Type Problems in SQL Server 2008 and Access 2003 .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Access 2003 Pass through Qry to SQL Server 2005 - Hello I have Pass through queries that I can run successfully when opened directly in the Access Queries window, but when I try to run the queries from VBA code module I end up with ODBC -- Call Failed. I have increased the timeout values, I have..

how to mapped the ms access db data to ms sql server - I need to create an ASP.Net page that connects to an MS SQL server as its dbase. But the MS SQL server is really connecting to an MS Access db to get the data.How can I mapped the data of the ms access db so that when my ms sql server connects it can....

Problems calling an SP with SQL Server ( EXECUTE permissio.. -

SQL Server 2008 + ODBC SQL Driver 2000.85.1022 - Hello, Could machine having ODBC SQL Driver version 2000.85.1022 connect properly to SQL Server 2008 on other machine? This version of ODBC driver is default in windows 2000 and it works improperly with SQL Server 2008. It produces random errors in..

No Jet OLEDB provider to link an Access 2000 database to S.. - Hi all, I need to link a legacy Access 2000 database to SQL Server 2005 64 bits. My test server is a 32 bits XP running developer's version of SQL Server 2005 (32bits). In the object explorer Server/Server Objects/Linked Servers/Providers it lists..
   Database Help (Home) -> ODBC All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]