Results 1 to 3 of 3

Thread: How to execute Multiple Sql Statements?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    1

    How to execute Multiple Sql Statements?

    Hello I am new to VB programming, Currently I am facing one Problem in executing multiple SQL Queries through Connection Object.

    My situation is like this,
    i want to transfer records from one Mdb file to another. for that i have created one transfer function that calls other functions. now while tranferring, if i debug the entire code, then it transfers records from one Mdb to another, but if i run code directly onPress of command button, records remains as it is in the same Mdb without transfer,

    its really strange for me that code runs perfectly in debug mode but not while running program. i think there should be some buffer or other properties or attributes that i have to set for that, but i dont know how to solve this problem,
    please anybody help in this problem.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to execute Multiple Sql Statements?

    Welcome to the forums.

    If you could please post the code you are using to do the record transfer, perhaps a solution will present itself. Without knowing how you are doing what you are doing, any comments would be pure speculation.
    Last edited by Hack; Apr 4th, 2005 at 06:13 AM.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: How to execute Multiple Sql Statements?

    From what I've seen of my own bugs, when something doesn't work in .EXE that works while stepping through code in IDE, then it's event related - some event is firing or not firing properly.

    Does it always work in the IDE - even if RUN without stepping?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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



Click Here to Expand Forum to Full Width