Solved

Cannot access SQL Server after Install Shield Installation

Posted on 1998-10-30
5
701 Views
Last Modified: 2006-11-17
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.
0
Comment
Question by:emidiod
5 Comments
 
LVL 9

Expert Comment

by:david_levine
ID: 1090934
Isn't the connect string just specifying the ODBC connection to use?

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.
0
 

Author Comment

by:emidiod
ID: 1090935
I am not using a DSN, I am sending the connection info at run-time as shown below:

Set mObjRDOConnection = mObjRDOEnvironment.OpenConnection("", rdDriverNoPrompt, False, msConnectString)

Where msConnectString is
 "Driver={SQL Server};SERVER=ServerName;DATABASE=DatabaseName;
  UID=UserID;PWD=Password;DSN="

Notice that the DSN is blank.  

0
 
LVL 9

Expert Comment

by:david_levine
ID: 1090936
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?
0
 
LVL 2

Expert Comment

by:mkmccreary
ID: 1090937
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
0
 
LVL 3

Accepted Solution

by:
TheAnswerMan earned 100 total points
ID: 1090938
Your DSN is fine.. you are using a DSN-less connection.
can you connect to your database using those parameter in any other fashion?   you can try creating a DSN on your client machine an make sure you use those specific parameters and nothin more.   then see if you can link an access table to your SQL Server.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hyperlink data type in SQL 3 23
TSQL - How to declare table name 26 29
Sql Server group by 10 26
Inserting oldest record into new table. 5 22
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question