If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > copy from sqlserver 2000

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-01-07, 05:50
oracle_corrgi oracle_corrgi is offline
Registered User
 
Join Date: Aug 2006
Location: bangalore
Posts: 3
copy from sqlserver 2000

hi
can any one let me know or is there any code to copy the sql server 2000 data (query out put to xls ) through macros eg: select maxdate from edi

output
2007-01-01 04:30:10.983

i want this in xls say a1 cell

if yes i have some query to which i will ask after i get this answer
thanxs
Reply With Quote
  #2 (permalink)  
Old 01-01-07, 08:42
RedNeckGeek RedNeckGeek is offline
Village Idiot
 
Join Date: Jul 2003
Location: Michigan
Posts: 1,941
If you are asking if you can query SQL Server data directly from Excel, the answer is yes. Look at Data-->Import External Data

You can set up a query, and have it refresh every time you open your workbook.
__________________
Inspiration Through Fermentation
Reply With Quote
  #3 (permalink)  
Old 01-01-07, 15:35
norie norie is offline
Registered User
 
Join Date: Mar 2006
Posts: 163
And if you need code for that turn on the macro recorder.(Tools>Macro>Record new macro...)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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