Results 1 to 6 of 6

Thread: MS Access and SQL 2000 stored procedures

  1. #1
    Join Date
    Aug 2003
    Location
    In a galaxy far, far away...
    Posts
    28

    MS Access and SQL 2000 stored procedures

    Gents,

    before I go mad tell me how is it possible to execute stored procedures in MS Access like in Query analyzer (exec sp_name prams)?

    I've tried so many things such as .execute but with no success.

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Before that.

    1. Do you want to execute procedures that are stored in MSSQL2000 from MS-Access

    or

    2. you are looking for feature similar to MSSQL2000 procedures in MS-Access

  3. #3
    Join Date
    Aug 2003
    Location
    In a galaxy far, far away...
    Posts
    28
    I want to execute procedures that stored in MS SQL 2000 server

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

  5. #5
    Join Date
    Aug 2003
    Location
    In a galaxy far, far away...
    Posts
    28
    Thanks MAK but this is exactly I want to avoid. I mean to create QueryDefs in the database, because those are saved in the Access database and therefore will increase its size even if I delete those. Am I right?

  6. #6
    Join Date
    Feb 2003
    Posts
    102
    What are you trying to do?

    I would say as a general rule if you can keep the functionality provided by the sproc as a sproc do so. Don't do the processing client side (using Access). Access can be efficent processing queries (eg only drag back indexes not whole tables in some instances so I've read on the NGs, but don't bet on it)

    You're better off doing as much processing as possible on the server and then firing the results down to the client side(MS Access) for display/manipulation etc.

    a. the Server should be faster at doing the same job

    b. you are tying up less network bandwith


    If you are trying to bind a results set to a A97 or A2000 form then I don't know of any other way apart from an Access QueryDef.

    Peter

Posting Permissions

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