LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default ADO connection Steps

Harish,
One way to generate connection strings is:
- Create a new text file somewhere suitable called "ConnTesrt.udl"
- Double click it.
- Make the required setting on the tabs, test the connection. OK.
-Open the file in a text editor to see the Connection string.

NickHK

"Harish" wrote in message
...
Hi all

I retrieve the data from database using folllwing Code and which works

fine.

With Selection.QueryTable
.Connection = "ODBC;DSN=XYZ;UID=abc;PWD=abc;SERVER=PQRS;"
.Refresh BackgroundQuery:=False
End With

But Now I want to use ADO retrieval method for data extraction. I am new

to
ADO technique, so if someone could help me to generate the connection

string
to my database through ADO would be great.

Your help would be greatly appreciated.

Kind Regards
Harish




 
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
always recheck data connection library for latest connection strin FurmanGG Excel Discussion (Misc queries) 0 September 14th 07 04:48 PM
Jumping five steps Arne Hegefors Excel Discussion (Misc queries) 7 August 3rd 06 04:24 PM
making steps damorrison Excel Discussion (Misc queries) 1 April 19th 06 01:04 PM
steps to eM URL? [email protected] Excel Discussion (Misc queries) 1 March 5th 06 08:02 PM
Automating Add-In Steps Mokey Excel Programming 0 June 2nd 04 08:53 PM


All times are GMT +1. The time now is 07:21 AM.

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"