Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default MS Query automatically fully qualifying SQL Select Statement

Hi,

MS Query is fully qualifying my SQL Select statement which I am manually
creating using the Get External data function in Excel to get data from SQL
Server

e.g. select * from person changes to select * from dbo.databasename.person
person

Is it possible to stop this happening or is there a different way I can use
the Get External Data function to get data from SQL Server?

I want to distribute the xls file with the queries but the database name may
not be the same on other client machines. Table structure / login is always
the same.

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default MS Query automatically fully qualifying SQL Select Statement

Hi,
if you distribute the file, the file paths might be
different meaning you would have to modify the query for
each user. to do .. on the external data tool bar, click
edit query. when the wizard come up got to page 3. click
veiw query edit query in microsoft query. the the query
comes up in design mode, click viewSQL. you can edit the
query including file path here.
but i might suggest that instead of distributing the file,
put the file on a public access drive.(if possible) This
way all would have access to the file and you would on
have 1 file to update.

-----Original Message-----
Hi,

MS Query is fully qualifying my SQL Select statement

which I am manually
creating using the Get External data function in Excel to

get data from SQL
Server

e.g. select * from person changes to select * from

dbo.databasename.person
person

Is it possible to stop this happening or is there a

different way I can use
the Get External Data function to get data from SQL

Server?

I want to distribute the xls file with the queries but

the database name may
not be the same on other client machines. Table

structure / login is always
the same.

Thanks



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
List of Qualifying Values abergman Excel Discussion (Misc queries) 1 January 6th 09 01:15 AM
Characters Qualifying a formula Tevuna Excel Discussion (Misc queries) 3 August 25th 07 12:22 AM
Qualifying a generated value as unique across worksheets jloos Excel Discussion (Misc queries) 3 August 1st 06 09:54 PM
copy qualifying rows to another spreadsheet acpharmd Excel Worksheet Functions 1 December 29th 04 09:45 PM
Qualifying sub names Bura Tino Excel Programming 2 April 21st 04 02:30 PM


All times are GMT +1. The time now is 05:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"