Hello All,
I note a lot of these questions have not been answered for awhile. Hope this forum has not been forgotten.
I am attempting to set up a system DSN for a SQL2K database using WSH (Windows Scripting Host) or any other programming language native to Windows 2K and XP.
I have been through so many different possibilities these last few days, I am in a haze.
Scenario:
- SQL 2K ODBC drivers on all clients
- Mix of 2K and XP clients
- ODBC connection with SQL server authentication...
Need to use something programmatic so I do not have to touch about 100 or so clients.
In most cases the ODBC connection can be set up using a program call "TrackIT Deploy". The problem is it does not set up the password, (SQL server authent...) so I still have to touch each client.
This calls for a late night.
SO! Would anyone be able to assist with some suggestions as to how to go about this?
I have some code written but it does nothing, as far as I can tell. See below:
Function LinkToLiaison()
strDVR = "SQL Server"
strSVR = "SomeSQL2KServer"
strDSN = "Some description"
strUID = "sa"
strPWD = "sa"
strdB = "master"
strConnect = "driver="& strDVR & _
";SERVER=" & strSVR & _
";DSN=" & strDSN & _
";Database=" & strdB & _
""
Conn.Open strConnect, strUID, strPWD
End Function
Any suggestions, assistance will be greatly appreciated.
rnpIII
I note a lot of these questions have not been answered for awhile. Hope this forum has not been forgotten.
I am attempting to set up a system DSN for a SQL2K database using WSH (Windows Scripting Host) or any other programming language native to Windows 2K and XP.
I have been through so many different possibilities these last few days, I am in a haze.
Scenario:
- SQL 2K ODBC drivers on all clients
- Mix of 2K and XP clients
- ODBC connection with SQL server authentication...
Need to use something programmatic so I do not have to touch about 100 or so clients.
In most cases the ODBC connection can be set up using a program call "TrackIT Deploy". The problem is it does not set up the password, (SQL server authent...) so I still have to touch each client.
This calls for a late night.
SO! Would anyone be able to assist with some suggestions as to how to go about this?
I have some code written but it does nothing, as far as I can tell. See below:
Function LinkToLiaison()
strDVR = "SQL Server"
strSVR = "SomeSQL2KServer"
strDSN = "Some description"
strUID = "sa"
strPWD = "sa"
strdB = "master"
strConnect = "driver="& strDVR & _
";SERVER=" & strSVR & _
";DSN=" & strDSN & _
";Database=" & strdB & _
""
Conn.Open strConnect, strUID, strPWD
End Function
Any suggestions, assistance will be greatly appreciated.
rnpIII