Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default SQL Server Login

I just upgraded to Office 2003 and I had been using a script in Excell
2000 to import data from a ODBC connection. Everything worked fine in
2000 but in 2003, there seems to be a new option of "use trusted
connection", which seems to be turned on by default. Is there some
option to turn this option off, or can I add something to the trusted
source connection? If not can I add something to my script to recognize
the trusted source? TIA

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default SQL Server Login

It's in the connection string.

The best way I have found to edit is via VBA. Make sure your cursor is
in the Query Table, and then go into the VBA Editor and hit Control-G.
The following will show you what it is, or allow you to reset it:

To fetch the connection:
? selection.querytable.connection

To change the connection:
selection.querytable.connection = "new connection string"

Also, this addin makes working the ODBC Queries via Excel much easier:

http://www.dicks-blog.com/archives/2...editor-add-in/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default SQL Server Login

Bill, thanks that did the trick...............

Greg

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
SQL Server Login Ronald Excel Discussion (Misc queries) 14 December 2nd 08 11:27 AM
SQL Server -- Bulk Insert from Excel to SQL Server Madhan Excel Discussion (Misc queries) 0 December 12th 06 03:08 PM
Excel 2003 Error Cannot Locate the Internet Server or Proxy Server Seabee Excel Discussion (Misc queries) 0 November 20th 05 12:03 AM
Login Name - VBA Sri Excel Programming 1 October 24th 05 07:01 PM
problem updating link from Novell server to windows server #REF er Ellen Excel Discussion (Misc queries) 0 May 10th 05 09:18 PM


All times are GMT +1. The time now is 05:33 PM.

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

About Us

"It's about Microsoft Excel"