| |
Alan
Posts: 1
Score: 0
Joined: 10/6/2008
Status: offline
|
Hi All Can anyone help I have Microsoft Server 2005 installed, and would like to use VB script to attach to a database and edit one of the tables in the database. I believe that I can use the the ADODB object to do this but can't figure out how to use it, currently I'm stuck at establishing a connection. The following is as far as I have got Dim objConnection Dim objRecordset Dim strConnectionString strConnectionString = "Provider=SQLOLEDB.1; Data Source=C:\963Projects\Backup\Fujitsu\TempDataBase\i96X_data.mdf" Set objConnection = CreateObject("ADODB.Connection") Set objRecordset = CreateObject("ADODB.Recordset") objConnection.Open strConnectionString The Error message I get is Object Required 'Server' So I assume my connection string is incorrect can anyone help
|
|