Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    bangalore
    Posts
    3

    Unanswered: 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

  2. #2
    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

  3. #3
    Join Date
    Mar 2006
    Posts
    163
    And if you need code for that turn on the macro recorder.(Tools>Macro>Record new macro...)

Posting Permissions

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