emidiod
asked on
Cannot access SQL Server after Install Shield Installation
I have developed a client-server application which uses VB as the front end and SQL Server as the back end. I built an install using install shield. When i run the app on the target machine, i receive the error "[Microsoft][ODBC Driver Manager]Data Source name not found and no default driver specified". I am not using a DSN to connect to my data source, i am sending a connect string at run time. I am using RDO in VB5.0.
ASKER
I am not using a DSN, I am sending the connection info at run-time as shown below:
Set mObjRDOConnection = mObjRDOEnvironment.OpenCon nection("" , rdDriverNoPrompt, False, msConnectString)
Where msConnectString is
"Driver={SQL Server};SERVER=ServerName; DATABASE=D atabaseNam e;
UID=UserID;PWD=Password;DS N="
Notice that the DSN is blank.
Set mObjRDOConnection = mObjRDOEnvironment.OpenCon
Where msConnectString is
"Driver={SQL Server};SERVER=ServerName;
UID=UserID;PWD=Password;DS
Notice that the DSN is blank.
Does the machine have the MS SQL Client software installed? Can it do a database ping of your target db? Can it log-in using the id / password / database / server you have specified?
Try removing the DSN parameter at the end of the connect string. It might work on your machine because you have the database you are connecting to set as the default datasource. Right now your connect string is trying to connect to a DSN with a empty name.
Good Luck,
Martin
Good Luck,
Martin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Does your machine have an ODBC connection already defined? If so, try adding by hand, the connection to the other machine. If that fixes the issue, you will need to do this in the setup program.