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

Posted only to Programming. (No need to multi-post)

Your best bet would be to incorporate some code to open the file on the
server and then check the version on the sheet here with the version on the
user's machine. (This would still mean a complete user refresh with the file
that incorporates code to check your master file on the server

The querying of sql server in Excel should not need code however, but your
code may be doing other stuff post import???
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Doctorjones_md" wrote in message
...
Is there an easy way to accomplish the following?

Over the past 6 months I have made modification to an Excel Workbook that
resides on the File Server. I have added Field Names in the Final Version
(which coincide with Field Names on SQL Server) that don't exist in
earlier version of the Excel Workbook. Unfortunately, many users have
copied the Master Workbook from the File Server down to their C Drive, and
now the VBA code doesn't roll up the data correctly to SQL Server.

Here's that I'd like to be able to do -- is there an easy way to have SQL
Server query Excel and check to see if a specified version is being used
(say I have a worksheet named "version", and the latest version is use is
2007_02_08_07), and pop a Message Box to notify the user of an incorrect
version.

How would I go about doing this?

Thanks in advance for any help with this one.


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
Excel with SQL Query (*.sql) and SQL Server Kode Excel Discussion (Misc queries) 2 May 8th 07 01:10 PM
Query SQL Server from Excel Doctorjones_md Excel Discussion (Misc queries) 1 January 6th 07 08:35 AM
Query SQL Server from Excel Doctorjones_md Excel Worksheet Functions 1 January 6th 07 08:35 AM
Query SQL Server from Excel Doctorjones_md Excel Programming 1 January 6th 07 08:35 AM
Execute a query against an excel doc and a sql server db Rick[_14_] Excel Programming 1 August 30th 03 02:50 PM


All times are GMT +1. The time now is 09:06 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"