+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 - SQL srv connection failed with spaces in tablename

  1. #1
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Excel 2007 - SQL srv connection failed with spaces in tablename

    Hi there ,

    I would like to get some data from an SQL server and found this code from MS.
    I just adjusted it for my needs , but it fails when opening the table Historic - Full.
    The tablename has a space before and after the - (minus sign).
    This is the tablename : "Historic - Full"

    Can someone help me how to fix this pls.
    Renaming the table on SQLserver is not an option.

    thanks in advance
    Mario

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Excel 2007 - SQL srv connection failed with spaces in tablename

    Hmmm, you should never have spaces in a table name.

    However, try this:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: Excel 2007 - SQL srv connection failed with spaces in tablename

    Hi Kyle123 ,

    I know about the spaces in names , but this DB has been made by an external company.
    Your adjustment works like a charm.

    Thanks a lot
    Mario

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Excel 2007 - SQL srv connection failed with spaces in tablename

    I hope they weren't paid for their services!

    Glad it's working

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1