Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8586005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:12:18+00:00 2026-06-11T22:12:18+00:00

If You run this script on sql server 2008, works fine. declare @tab table(

  • 0

If You run this script on sql server 2008, works fine.

declare @tab table(
id_emp int,
FIL_ROT_WID xml
)

insert into @tab
select 0, '<xml></xml>'

declare @xml_rot_widget xml
set @xml_rot_widget = '<ati id="1123" val="new()" />'

update @tab
set FIL_ROT_WID.modify('insert sql:variable("@xml_rot_widget")
                    as last
                    into (/xml)[1]')
where id_emp = 0

select * from @tab

But Im using SQL Server 2005 with SQLSMS2008 and this scripts works fine too. But with the same level of databse em SQLSMS2005 I receive the following error:

XQuery: SQL type 'xml' is not supported in XQuery.

Im already solve the problem, but my question is:
How to configure the SQLSMS2008 to run script and parse them for DB 2005?

Ah, Tools > Options > SQL Server Object Explorer > Scripting > Script for server version
does not work. It keep running like 2008.

Tks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:12:19+00:00Added an answer on June 11, 2026 at 10:12 pm

    Blockquote But Im using SQL Server 2005 with SQLSMS2008

    There is no way this script would run on SQL 2005 no matter what version of Management Studio you were using. You must have been connected to the SQL 2008 server? Use

    SELECT @@VERSION
    

    to doublecheck if you’re not sure of the version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have table a and table b . (SQL Server 2008) Both tables have
I need to write a script that disables SQL Server Express 2008 from running.
I'm running SQL Server 2008, and trying to run some queries on some poorly
On SQL Server 2008 R2, I have a script that explicitly begins with USE
I would like to run this script (embed drive list in a site) that
I'm trying to run this script that basically reads/interprets text in from a textfile
I'm trying to run this script: import re, os def build_pool(cwd): global xtn_pool, file_pool
well i run this script , which is written to do some screenshots of
well i run this script , which is written to do some screenshots of
I'm trying to run this script on Mac OS 10.7 (Lion) and I'm getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.