Results 1 to 6 of 6

Thread: RESOLVED - automatically setup a DSN connection with application set-up

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    RESOLVED - automatically setup a DSN connection with application set-up

    Hi

    I have used the package and deploy wizard to compile a set-up
    file of my VB application. Now My application needs to be
    installed on several PC's.....The problem I have is that I know the
    PC's do not contain a DSN to our SQL server....What I want to
    know is, is it possible I could code the set-up of a DSN??? so on
    installing my application it would automatically set-up the appropriate
    DSN!!!

    I bet the answer is NO!!

    Thanks

    Last edited by holly; Oct 10th, 2003 at 03:20 AM.
    ** HOLLY **

  2. #2
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    Hmm, I don't think there is. In saying that, if all your connection code is in a module / class, then you could just add a DSN-less connection which would solve your problem.
    I don't know the extent of your program and therefore don't know how much work this would be for you.

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

  3. #3

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    then you could just add a DSN-less connection which would solve your problem.


    Could you be a bit more explicit!!

    All the security information is stored in a *.ini file......You will have to excuse my ignorance but Would I still need to create a DSN if
    the information is stored in a INI file? the application needs to be installed on a approx. 100 PC's... if the answer to the above is
    YES then I dont fancy installing a DSN on every PC....
    ** HOLLY **

  4. #4
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    VB Code:
    1. Connection.Open "Driver={SQL Server};" & _
    2.                             "Server=MyServerName;" & _
    3.                             "Database=myDatabaseName;" & _
    4.                             "Uid=myUsername;" & _
    5.                             "Pwd=myPassword"
    This is an example that doesn't need a DSN. You can still have your SQL server IP in the INI file and use what it returns in the above example.

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

  5. #5

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Thanks a million you have answered my question!!

    Thanks again Mega-Man

    ** HOLLY **

  6. #6
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    No problem
    Glad I could help.

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

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