473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access97 -> SQL Server - ODE tools

I've posted this in the middle of an older thread but it seems to have
gone unnoticed. I apologize for repeating myself.

We are converting an existing Access97 split database to an Access front
end with a SQL Server back end so that its users, who live all over the
state, can all use it without mailing the back end back and forth
throughout the year.

I am trying to set up the installation package with the ODE tools so
that the users can install the front end on their machines without
having to manually set the registry keys.

Here's my special trouble spot: the connection has to be made to
an SQL Server "named instance". These run on non-default port numbers;
I know the fixed port number and the server has an internet DNS
hostname. I've used cliconfg.exe running on the remote machine to
manually establish a working connection via TCP/IP by entering the
hostname and port number into the appropriate controls. This builds a
"server alias" on the client so that the ODBC Data Source can connect.
I've observed the registry keys this adds, and I found only two:

HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\ Client\ConnectTo
contains a <server alias> key with value "DBMSSOCN,<hostname>,<port#>"

HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\ Client\TDS
contains a <server alias> key with value "7.0"
{it's SQL 2000, though - should I worry?)

I then use this <server alias> in place of the <server name> in the
ODBC.INI keys. I'm getting 99.44% of the connection effect. On the
positive side, the "SQL Server ODBC Data Source Test" sequence on such
clients PASSES!- the ODBC data source believes it exists, and I believe
it since it rejected bad passwords and allowed only good passwords -
which only the server could have told it. I'm assuming that this test
sequence also verified that the network library version numbers are
compatible. It reported them so it must have considered them as test
criteria.

Now if the .mdb or .mde file would work I probably wouldn't be posting.

It doesn't. When I run the .mde file, the SQL Server login dialogue
takes 30 seconds after I enter the password and then coughs up an error
string from the Socket library Connect() saying that the SQL Server
could not be found.

Reviewing I see the Linked Table has a Connect string:
"ODBC;DSN=<odbcsource>;..." Which names my validated data source,
and also gives the right database name (same code works on the LAN).

The ODBC Data Source passes its connection test. There is no encryption
specified for the SQL server traffic. Do you pros have any idea why the
full client won't connect?

I'd dearly like to ship installation CDs that make these Registry keys
(and then clean them up when you uninstall). I believe they should
work. They don't.

The only small diff I've noted is that when I bring up cliconfg.exe on
a client whose keys were built by setup.exe, I don't see TCP/IP as
an enabled protocol for the SQL Network Client. The ODBC connection
test could only have used TCP/IP. It is happy, so why not Access 97?
The firewall lets both TCP and UDP get through on the port# in question.

The one time I got a good connection front to back was in early
experiments. I'd tried using "hostname:port#\SQLServerInstanceName" as
the ODBC SQL Server name. It didn't know what to make of this. So I
used cliconfg to make an alias whose spelling exactly matched that
string. It worked! So I went home and wrote tidier looking aliases into
my keys and came back only to find egg on my face. Does cliconfg.exe do
something the key settings alone cannot do? If so, is there a command
line way to get cliconfg to do this during an installation sequence?

Thanks for any hand holding you can offer.

Greg (& Rebecca)

Nov 13 '05 #1
0 2762

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: NullRef | last post by:
Hello - I'm trying to create an ACCESS97 database MDB as well as tables w/in the db all programatically from VB.NET -- is this possible? I've seen examples for creating Access2000 database using...
2
by: William Ortenberg | last post by:
I have a client who can't get off of Access97. I want to use the InStrRev function, but it's not available in 97. Is the function's code available? Is there any equivalent functions for 97? ...
1
by: Internet Arrow Limited | last post by:
Hi, I have an access application that uses the code: > Me!txtCreationDate = Format(Date, "Long Date") & " " & Format(Time, "hh:mm:ss") This works fine under access 2000 and access97 on...
1
by: Mario Crevits | last post by:
My name is Mario Crevits, I'm from Belgium (Roeselare) and I'm working with Access97 for several years now. We are in an Access97-2000 migration project. I'm writing a wizard for the end-users to...
0
by: Bob Hynes | last post by:
Hi All, In one of my Access97 db applications I created a report which I output to a RichTextFormat file attach it to an Email and send it out, that has worked just fine for a couple of years now....
4
by: sean | last post by:
Hi all, Is there something wrong with my access97 SR-2 installation ? 1) Under MACRO, when I choose action SendObject, I could select Snapshot Format for "Output Format". (BTW Is there a way to...
0
by: Jack Gordon via AccessMonster.com | last post by:
I am having a problem with charts on reports and forms in Access97. When a runtime version is created with Sagekey's MSI Wizard for Access97 and then installed on another computer and real data...
4
by: Paul | last post by:
Is it possible to run an Access 2000 database on a PC with only Access97 installed? I.e. Could you use a Access 2000 runtime ?
1
by: IamKJVonly | last post by:
I have office 97 which includes access97 and have built many access97 databases and use VB4 as the front end. I have just gotten a new computer which has 1 gig of memory on it and when I try to...
2
by: Roger | last post by:
I've got two tables in sql2005 which have an 'ntext' field when I linked the first table in access97 last week using an odbc data source the access-field type was 'memo' when I link the 2nd...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.