+ Reply to Thread
Results 1 to 4 of 4

Using SQL or saved queries to retrieve data from db's?

  1. #1
    Registered User
    Join Date
    09-26-2008
    Location
    Mississauga, Ontario
    Posts
    3

    Using SQL or saved queries to retrieve data from db's?

    Hi All,

    I have been doing a fair bit of coding for an application that extracts data from a MS Access database into various Excel workbooks. I have tradtionally written SQL and passed it onto DAO to extract the data. This has worked quite well in the past however I am now trying to use other databases like SQLServer and MySQL. Those apps use slightly different syntax then Access. Obviously this cause me problems in that I have to create multiple type of SQL strings.

    My question really is about the pros/cons of writing the SQL and passing it through to DAO or calling a stored query and passing parameters through DAO.

    Is either method faster or more secured than the other?

    Here's an example of my 2 different but similar methods:

    Passing SQL:
    Please Login or Register  to view this content.
    Using a stored query:
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    09-26-2008
    Location
    Mississauga, Ontario
    Posts
    3
    No ideas anyone?

    Anyone have a place they can point me to?

    Is the question/problem understsood?

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    This may help a little?

    Please Login or Register  to view this content.
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  4. #4
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Oops

    Sorry sammy i really didn't read the question did i!! forget that stuff above lol!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SQL Server data and conditional formatting
    By cduwel in forum Excel General
    Replies: 3
    Last Post: 09-19-2008, 09:06 AM
  2. External data queries...
    By tangcla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2008, 01:49 AM
  3. DDE Macros and data formatting
    By JMann in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-28-2008, 05:33 AM
  4. Preparing data to insert into SQL table
    By godonnygo in forum Excel General
    Replies: 3
    Last Post: 10-07-2007, 02:27 PM
  5. Data Access String to SQL DB
    By Chamark in forum Excel General
    Replies: 1
    Last Post: 04-17-2007, 03:29 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1