Results 1 to 2 of 2

Thread: which open connection?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    which one is better, why, whats the difference
    Code:
            .Open "SELECT * FROM LoggedUsers", MeterInfo
                      OR 
            .Open "LoggedUsers", MeterInfo, , , adCmdTable

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    In essence there isn't really any difference between the two methods. both will open recordsets containing all the records in the table. The real difference is in their use, using a select statement you can be more selective. Also with an SQL query you can retrieve data from more than one table.

    It is also best practise to pass all the parameters and specify a cursor location and lock type.


    Things I do when I am bored: DotNetable

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