Trusted Connection

Results 1 to 2 of 2

Thread: Trusted Connection

  1. #1
    Join Date
    Dec 1969

    Default Trusted Connection

    Here&#039;s how I would do it in C++<BR>"strConn.Format("Provider=sqloledb;Driver=( SQL Server);Server=%s;Trusted_Connection=Yes;Database= %s", m_strDBServer, m_strDBName);"<BR><BR>Please can someone help me with how the connection string would look in VBScript. Doing the same thing as above doesn&#039;t work.<BR>Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default String concatenation..

    .. you are going to want to do some reading in VBScript. If I understand correctly, this is quite simple.<BR><BR>strConn = "Provider=sqloledb;Driver=(SQL Server);Server=" & m_strDBServer & ";Trusted_Connection=Yes;Database=" & m_strDBName<BR><BR>-Doug

Posting Permissions

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