Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    String connection... difference (6.0)

    I have 2 userform in vb one use a string conn and one other but wath is the difference...
    I other case work all correctly...

    cnt.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=GCD01F4500DATIPUBBLICAINPS_WEBUSER.MDB;"
    rst.Open "SELECT CAUSALI FROM SERVIZIO ORDER BY CAUSALI", cnt

    cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=GCD01F4500DATIPUBBLICAINPS_WEBSTORICO_INPS. MDB;Persist Security Info=False"
    rs.Open " select * from INPS_02 ", cn, adOpenStatic, adLockReadOnly

    if one is the best... wath is from the 2?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: String connection... difference (6.0)

    Apart from the name of the database, the connection strings are equivalent. In the second one, you have Persist Security Info=False, but since False is the default, you can omit that.

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: String connection... difference (6.0)

    Tks.... as usual clear and professional.

Posting Permissions

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