MichaelRed
Programmer
How do i start (the question).
I have attempted ever so many approaches and encountered ever so many objections (e.g. Errors).
Perhaps the best help would be a pointer to the kinds of things which belong in the varions terms.
the immediate issue seems to be ye olde:
this is in concert with:
What I really think i need is a brain transplant, but would gladly settle for just what the (*&^(*&%^*&^ belong on the right of the "=" signs - not the specifics, because they are obviously specific to the app, but where does it say that the datasource is one of the .mdf files or an instance of the version of sql server or the name of the ODBC thing ...
Next, given that Only a few of these are actually known (at least to me), where/ how does one ferrett them out of the system?
lost in the land of new beginnings!
MichaelRed
I have attempted ever so many approaches and encountered ever so many objections (e.g. Errors).
Perhaps the best help would be a pointer to the kinds of things which belong in the varions terms.
the immediate issue seems to be ye olde:
Code:
[Microsoft][ODBC Driver Manager] _
DataSource not found and no default driver specified
this is in concert with:
Code:
Public Function basDToolsSample()
'<add name="DTools.SystemIntegrator.SDK.Properties.Settings.DToolsMasterTableConnectionString1" _
connectionString="Data Source= LOCAL\DTOOLSV5;Database=DToolsProducts50; _
User Id=DToolsData;Password=d7uL8Da7a;Persist Security Info=True;" _
providerName="System.Data.SqlClient" />
Dim cnn As New ADODB.Connection
Dim cmd As New ADODB.Command
Dim rs As ADODB.Recordset
Dim strCnn As String
Dim iCtr As Integer
strCnn = "Data Source=C:My Documents\DToolSV5;" _
& "DataBase=DToolsProducts50;" _
& "User ID=\[i]UserId[/i];" _
& "Password=[i]pwd[/i];" _
& "Persist Security Info=True;" _
& "ProviderName=System.Data.SQLClient;" _
& "ServerName:= (Local)\SQLEXPRESS;"
''' _
& "Driver={DTools};"
' _
& "Initial Catalog=C:\My Documents\D-Tools_SDK\SI5;" _
& "Data Source=Local\DToolsV5;" _
& "Use Procedure for Prepare=1;" _
& "Auto Translate=True;" _
& "Packet Size=4096"
cnn.Open strCnn
'[Microsoft][ODBC Driver Manager] _
DataSource not found and no default driver specified
cmd.CommandText = "SELECT * FROM Products"
cmd.CommandType = adCmdText
Set rs = cmd.Execute
Do While Not rs.EOF
For iCtr = 0 To rs.Fields.Count - 1
'OutPuts Name and Value of each field
Debug.Print rs.Fields(iCtr).Name & ": " & _
rs.Fields(iCtr).Value
Next
rs.MoveNext
Loop
Set rs = Nothing
Set cmd = Nothing
cnn.Close
Set cnn = Nothing
End Function
What I really think i need is a brain transplant, but would gladly settle for just what the (*&^(*&%^*&^ belong on the right of the "=" signs - not the specifics, because they are obviously specific to the app, but where does it say that the datasource is one of the .mdf files or an instance of the version of sql server or the name of the ODBC thing ...
Next, given that Only a few of these are actually known (at least to me), where/ how does one ferrett them out of the system?
lost in the land of new beginnings!
MichaelRed