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

  • SEARCH
  • Home
  • 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 8817583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:53:01+00:00 2026-06-14T04:53:01+00:00

I have a SQL Server and I want to import data from a view

  • 0

I have a SQL Server and I want to import data from a view into Excel via Microsoft Query.

Sounds easy right? Well it isn’t as some of the columns are of a user-defined data type.

tblSeller:

  • ID: int
  • Name: nvarchar(50)
  • Country: CountryName:nvarchar(50)

tblBuyer:

  • ID: int
  • Name: nvarchar(50)
  • Country: CountryName:nvarchar(50)

tblSale:

  • ID: int
  • SellerId: int
  • BuyerId: int

vSales:

SellerName, SellerCountry, BuyerName, BuyerCountry

(I think you get the idea that I have joined tblSale with tblSeller and tblBuyer and want to get names and countries – and since this is just an example I have left out all other stuff which would make it a useful view!!!)

The view vSales works like a charm on my server: It shows me all my information. The problem occurs when I want to import it into Excel 2010 via “From Microsoft Query” (Data => From Other Sources => From Microsoft Query). All columns with a user-defined data type are not available!

Only if I import data directly via “From SQL Server” (Data => From Other Sources => From SQL Server) I get my data. But as my real view contains hundreds of columns and nearly 200.000 rows that is not and option as I need to specify which columns I want to import.

So to put it short: how to import data from a SQL Server view into Excel using a Microsoft Query in order to be able to limit number of columns?

  • 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-14T04:53:02+00:00Added an answer on June 14, 2026 at 4:53 am

    Sorry for misinforming you… I tried to simplify my question – which also removed the problem!

    The definition of the countries was: st_CountryName:nvarchar(50).

    And it seems as if Excel is not able to import types where the underscore is a part of the “name”. Sorry for misleading you all in my question – but hope someone else will find this answer helpful!

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

Sidebar

Related Questions

I want to import data from Excel worksheet into SQL Server database (2008). I
I have powershell version 2.0.0.1082 on my server. I want to import data from
I have an old SQL Server 2000 database that I want to get into
I have a view in SQL Server 2008 that I want to use for
I want to import data from an Excel file - assume Excel 2003 /
What I try is to import several tables programmatically from Microsoft SQL Server to
I need to import a lot of data into a sql server database. Some
i am preparing myself for importing data from excel sheet to sql server 2005.I
I'm exporting data programatically from Excel to SQL Server 2005 using SqlBulkCopy. It works
I ran into a issue about Import/Export on SQL Server. I have a database

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.