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 6190367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:34:38+00:00 2026-05-24T02:34:38+00:00

Little background: Recently I upgraded SQL server management studio 2005 by applying the patch

  • 0

Little background:

Recently I upgraded “SQL server management studio 2005” by applying the patch from MS link
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=7218

So that, I can access the recently built DB server which are in SQL Server 2008 version.

I have a server link created on the 2008 Db server which connects to a Oracle DB. earlier I didn’t faced any issue but after applying the management studio patch whenever I run a query using the server link as below

select top 10 * from [server]..DBNAME.TABLENAME 

OR

select * from [server]..DBNAME.TABLENAME 

I get the error

An error occurred while executing batch. Error message is: Invalid
attempt to GetBytes on column colname’. The GetBytes
function can only be used on columns of type Text, NText, or Image.”

But if I change the query to

select top 10 col1,col2 from [server]..DBNAME.TABLENAME 

OR

select distinct col1, col2, col3 from [server]..DBNAME.TABLENAME 

It runs fine without any issue.

I am not sure but my believe is it’s something to do with Management Studio … some setting in Management Studio probably causing this issue.

Does anyone have any idea Or have faced this issue before. Can you please help.

EDIT: If I run the problem query using sqlcmd it runs fine.

Thanks.

  • 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-05-24T02:34:39+00:00Added an answer on May 24, 2026 at 2:34 am

    I’ve got that error before when using SQL 2005 management studio to a SQL 2008 server and querying a table with the DATE datetype in it.

    Essentially it means that SSMS doesn’t understand one of the column data types coming back to it. You said SELECT * doesn’t work but SELECT col1, col2, col3 does. How many columns in the table? Try expanding the select column by column until you find the one that’s confusing Management Studio . Then you can use CAST in the select clause to turn it into something Management Studio does understand.

    What’s probably happening here is that one of the columns is being returned from SQL 2008 as DATE, TIME, DATETIME2 or one of the other new SQL 2008 data types. While Management Studio 2005 can connect to a SQL 2008 server, it doesn’t understand the new data types and cannot display them.

    It’s a limitation of Management Studio.

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

Sidebar

Related Questions

A little background first - When I do apt-get install downloads from my company
A little background: I'm creating a set of adapters to allow communication with mobile
For a little background, I work for a firm that develops web-based enterprise social
First, a little background: I'm displaying a data set with 288 rows and 8
Background: I have a little video playing app with a UI inspired by the
My little site should be pooling list of items from a table using the
A little while ago I managed to get Visual Studio 2008 (C++) into a
A little background: I'm using Spring and Hibernate to create a really simple domain/dao/service
How do, I've been teaching myself a little basic jQuery recently, doing so I
little background: currently putting together a website that is selling products, many of which

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.