473,473 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access RUN time as frontend to SQL Server how?

5 New Member
I have a SQL server database on a server. Multiple PCs with Access Run time and one PC with Access developer. Have tried ODBC and all working on developer PC but do not know how to transfer the ODBC stuff to the other Run time only PCs. What is the recommended approach?
Jul 30 '14 #1
8 2443
zmbd
5,501 Recognized Expert Moderator Expert
When yu say you've "tried ODBC" what do you mean exactly?
Jul 30 '14 #2
TruePegasus
5 New Member
Hi,
I did not know anything about using access as front end to SQL Server so I looked on the internet and ended up using "linked tables".
When I look at the properties of a table it shows:

ODBC;DSN=MISLink;Description=MIS_Data_Link;APP=Mic rosoft Office 2013;DATABASE=MIS;QueryLog_On=Yes;QueryLogFile=C:\ MIS_QUERY.LOG;TABLE=dbo.M_Provider

in the description field.

I guess I would like to scrap what I have done sofar and just dop it the "right" way, whatever that is, so that I can develop on a PC with Office PRO (incl Access) and run the front end on PCs with just Office Home installed and using the free Microsoft Access run time module.
Jul 31 '14 #3
Seth Schrock
2,965 Recognized Expert Specialist
There are two methods to connect to SQL Server from Access and both use the ODBC drivers with linked tables. One is to use DSNs as you have done. The other is to use a DSN-less connection. Neither one is a bad way to do it. Using DSNs is easier to get things setup when you are creating the database, but then you have to put that DSN on each computer that you want the database to be on. DSN-less connections require more work to link that tables, but then nothing is required on the other PCs for the database to work. It is really up to you as to what you want to do.

If you choose the DSN-less connection method, I have written an article with some code already written to make it easier to attach the tables. See Managing DSN-Less Connections. If you choose to stay with what you have, then we can help with that too.
Jul 31 '14 #4
TruePegasus
5 New Member
Hi Seth, I had a look at your code and decided I would for now stay with my current method.
Can you guide me to some document please that explains how to copy the DSN to another computer?
Jul 31 '14 #5
Seth Schrock
2,965 Recognized Expert Specialist
I don't know of any document off hand, but I can certainly help you. Do you know if the systems you want the database on are 64 or 32 bit? If you have some 64-bit systems, are they running 32 or 64 bit version of Office? I actually written a vbscript file to automatically add a system DSN (available to all users). My script is currently setup for a mix of 64 and 32 bit systems that are all running 32-bit Office. If your environment matches this, then I can share the script with you.
Jul 31 '14 #6
TruePegasus
5 New Member
Hi Seth, All our machines are 64 bit but it's the 32 bit version of office. A vb scvript would be very C:):)L.
Jul 31 '14 #7
Seth Schrock
2,965 Recognized Expert Specialist
Just to let you know, my script uses a trusted connection so the Windows user information is passed onto SQL Server to verify permissions.

Open Notepad and go to File>Save As. Change the file type from Text File to All Files and then enter the file name that you want followed by .vbs to change it to a vbscript file. Here is the code that you need in it:
Expand|Select|Wrap|Line Numbers
  1. HKEY_LOCAL_MACHINE = &H80000002
  2. strComputer = "."
  3.  
  4. Set oReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
  5.  
  6.  
  7. strKeyPath = "SOFTWARE\Wow6432Node\ODBC\ODBC.INI\EmployeeDatabase"
  8. oReg.CreateKey HKEY_LOCAL_MACHINE, strKeyPath
  9.  
  10. oReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, "Driver", "C:\Windows\system32\SQLSRV32.dll"
  11. oReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, "Description", "Your Description"
  12. oReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, "Server", "SQL Server Name and Instance"
  13. oReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, "LastUser", "DatabaseUser"
  14. oReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, "Database", "Database Name"
  15. oReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, "Trusted_Connection", "Yes"
  16.  
  17. oReg.SetStringValue HKEY_LOCAL_MACHINE, "SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources", "Your Description"
At the end of the last seven lines is what you need to change.

Also note that this is a system DSN which is different than a User DSN. If you are using User DSNs then you would need to change the registry path. I don't know what that is off hand.
Jul 31 '14 #8
TruePegasus
5 New Member
Hi Seth, thanks very much for that.
I now need to digest and try out.
:)
Jul 31 '14 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Rich May | last post by:
Afternoon all, Apologies for cross-posting but as my query covers both Access and SQL Server I thought I'd send it both! I have inherited a project to migrate a fairly complex series of...
4
by: meyvn77 | last post by:
Background: I'm new at SQL Server (no experience, zip, nada) but getting pretty good with developing applications in Access(VBA) and in VB using ADO.... Currently I use access to and GIS...
4
by: Michael | last post by:
Hi, Simple question: A customer has an application using Access 2000 frontend and SQL Server 2000 backend. Data connection is over ODBC. There are almost 250 concurrent users and is growing....
0
by: Matthias Jürgens | last post by:
Ich habe eine Datenbank die vorher komplett in Access war. Jetzt habe ich die Tabellen von Access auf SQL-Server portiert und in die Access-Datenbank als Frontend verknüpft. Jetzt habe ich...
28
by: Gil | last post by:
can i have a client pc trigger access.exe to open on the server side pc? i want to have the server run special functions and return the output to the clients without having the clients run the...
15
by: Marcus | last post by:
I created a VB.Net 1.1 application that iterates through all the tables in any basic Access 2000 database passed to it and generates the same table structure in a SQL Server Express database. The...
1
by: ken | last post by:
Hi, Lets say we have a form that displays time card entries based on the calendar control date on the form. So the user clicks on a date and the form filters the table where the time card entries...
15
by: Wes Groleau | last post by:
When I try to import from Access, the DTS wizard only allows me to import tables and queries. OK, I'm not surprised the "macros" and reports don't come over. But it executes each query, and...
13
by: SQL Learner | last post by:
Hi, I have a table with 8 millions records. Some of the fields needed to be parse and modified. Example, "ABC DEF" will be parsed into two fields "ABC" and "DEF". And If there is "123" in the...
5
by: teddysnips | last post by:
I have upsized a client's application from Access BE/FE to Access FE/ SQL Server. All is fine with initial testing, and they want to run the systems in parallel prior to going live. The MD, who...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.