Unix Technical Forum

Cannot find data type xml

This is a discussion on Cannot find data type xml within the SQL Server forums, part of the Microsoft SQL Server category; --> I am getting this error when running on my local instance of SQL server, but it is not an ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-12-2008, 05:22 PM
Justin
 
Posts: n/a
Default Cannot find data type xml


I am getting this error when running on my local instance of SQL
server, but it is not an issue when running on our development SQL
Server box.

Code:
--variable declarations
declare @XmlDocument xml --2GB limit
declare @docHandle int

Msg 2715, Level 16, State 3, Line 14
Column or parameter #-1: Cannot find data type xml.
Parameter '@XmlDocument' has an invalid data type.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-12-2008, 05:22 PM
Plamen Ratchev
 
Posts: n/a
Default Re: Cannot find data type xml

The XML data type was added in SQL Server 2005. You need to make sure
your local instance is SQL Server 2005/2008. If the database was
upgraded, then you can check the compatibility level (under Database
properties, Options) and make sure it is set to SQL Server 2005 (90) or
SQL Server 2008 (100).

--
Plamen Ratchev
http://www.SQLStudio.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-12-2008, 05:22 PM
Justin
 
Posts: n/a
Default Re: Cannot find data type xml


Thank you. I mistakenly connected to a SQL 2000 instance.

On Sep 8, 11:33*am, Plamen Ratchev <Pla...@SQLStudio.com> wrote:
> The XML data type was added in SQL Server 2005. You need to make sure
> your local instance is SQL Server 2005/2008. If the database was
> upgraded, then you can check the compatibility level (under Database
> properties, Options) and make sure it is set to SQL Server 2005 (90) or
> SQL Server 2008 (100).
>
> --
> Plamen Ratchevhttp://www.SQLStudio.com


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

Similar Threads for: Cannot find data type xml

Thread Thread Starter Forum Replies Last Post
find/nfsfind failure ..Value too large for defined data type.. Jan Dreyer Sun Managers 1 06-29-2008 11:15 AM
Informix Serial Data type to Integer Data Type Sarat Informix 11 04-20-2008 11:07 AM
Re: Informix Serial Data type to Integer Data Type Jonathan Leffler Informix 0 04-20-2008 11:04 AM
RE: Informix Serial Data type to Integer Data Type Savio Pinto \(s\) Informix 0 04-20-2008 11:04 AM
Index creation causes error "The conversion of a char data type to a datetime data type resulted..." Amir SQL Server 1 02-29-2008 06:51 AM


All times are GMT. The time now is 05:58 PM.


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