Little background:
I recently updated SQL Server 2005 Management Studio by applying the fix from the MS link http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=7218
So, I can access the newly created database server, which is in the version of SQL Server 2008.
I have a link to a server created on a 2008 Db server that connects to an Oracle database. I did not encounter any problem before, but after applying the control studio patch, when I launch the request using the server link, as shown below
select top 10 * from [server]..DBNAME.TABLENAME
OR
select * from [server]..DBNAME.TABLENAME
I get an error
An error occurred while executing the package. Error message: GetBytes attempted in colname 'column incorrectly. The GetBytes function can only be used for columns of type Text, NText, or Image. "
But if I changed the request to
select top 10 col1,col2 from [server]..DBNAME.TABLENAME
OR
select distinct col1, col2, col3 from [server]..DBNAME.TABLENAME
It works great without any problems.
I'm not sure, but I think this is related to Management Studio ... some settings in Management Studio are probably causing this problem.
Does anyone have any ideas or have run into this problem before. Can you help.
EDIT: if I run a problem request using sqlcmd , it works fine.
Thanks.
Rahul
source share