473,408 Members | 2,734 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,408 software developers and data experts.

Copy mde file to each pc?

Hi:

After migrate mdb database to sql server, I have created .mde and installed in each user's pc.

My question is: if I modify .mdb file later, and re-create a new .mde from my pc, can I copy the .mde to each user (replace the old one)? The main concern is: do you think those table links (tables from sql tables) will still work?(or I have to relink them manually?).

Thank you very much.

Jt
Jan 23 '08 #1
3 1848
Jim Doherty
897 Expert 512MB
Hi:

After migrate mdb database to sql server, I have created .mde and installed in each user's pc.

My question is: if I modify .mdb file later, and re-create a new .mde from my pc, can I copy the .mde to each user (replace the old one)? The main concern is: do you think those table links (tables from sql tables) will still work?(or I have to relink them manually?).

Thank you very much.

Jt
What connection method are you using to connect to the sql server? windows integrated security or a user name and password stored in sql server itself? remember the connection string is stored in the connect property for each table. (have a look at the system table Msysobjects table to see what I mean)

In short ....if you are using 'windows integrated security' and your network user name has appropriate server permissions then you will be fine (provided your users machine has the necessary requirements namely the ODBC driver installed), otherwise if you are using a dedicated user name and password (stored on sql server) as part of the connection string string then merely copying that to another machine (and you would be doing that by copying over YOUR mde file if your connection method is not windows integrated security) would subvert the purpose of user identification as your network user would be logging into the server as YOU if I am being clear to you on this?

With regard to the compatibility of a users machine in relation to the ODBC capability, one technique you might wish to consider is having an unbound checkmark mounted on your main form somewhere that is set to zero as a default.

When your main form or database opens you always create the ODBC connection programmatically on the fly. If it is successful in creating it (ie a driver is present) you can then set the checkmark to true. This then gives you a little something to pursue as an indicator when some user or other says "I cannot connect from my machine" if when you ask them "is the checkmark zero?" you instantly know they have no sql server odbc driver installed on that machine. (which irritatingly does happen from time to time depending on how frugal your installations are)

Regards

Jim
Jan 23 '08 #2
What connection method are you using to connect to the sql server? windows integrated security or a user name and password stored in sql server itself? remember the connection string is stored in the connect property for each table. (have a look at the system table Msysobjects table to see what I mean)

In short ....if you are using 'windows integrated security' and your network user name has appropriate server permissions then you will be fine (provided your users machine has the necessary requirements namely the ODBC driver installed), otherwise if you are using a dedicated user name and password (stored on sql server) as part of the connection string string then merely copying that to another machine (and you would be doing that by copying over YOUR mde file if your connection method is not windows integrated security) would subvert the purpose of user identification as your network user would be logging into the server as YOU if I am being clear to you on this?

With regard to the compatibility of a users machine in relation to the ODBC capability, one technique you might wish to consider is having an unbound checkmark mounted on your main form somewhere that is set to zero as a default.

When your main form or database opens you always create the ODBC connection programmatically on the fly. If it is successful in creating it (ie a driver is present) you can then set the checkmark to true. This then gives you a little something to pursue as an indicator when some user or other says "I cannot connect from my machine" if when you ask them "is the checkmark zero?" you instantly know they have no sql server odbc driver installed on that machine. (which irritatingly does happen from time to time depending on how frugal your installations are)

Regards

Jim
Hi: Jim
Thanks for your such detailed and professional response.

I am using window authentication, and I am using ODBC trusted connection, I have run the .mdb in each pc, and it's .mde also. Hopefully if I created a new .mde from my pc, I just copy and paste to each pc later on.

Thanks again.

jt
Jan 23 '08 #3
Megalog
378 Expert 256MB
Security issues aside, there was a similar question not long ago on MDE distribution that I answered here:

http://www.thescripts.com/forum/thread760986.html

Hope it gives you a few ideas!
Jan 23 '08 #4

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

Similar topics

11
by: Mike | last post by:
I want to be able to copy a directory of files (all .HTM files) from a network drive to a local drive on the machine c:\HTMFiles , How can i do that? I tried File.Copy(source, dest) but i need...
8
by: Chris Strobel | last post by:
I have 2 web servers where I need to write a PDF file and need to keep them in sync. In others words, If the Server1 is getting called to create the PDF, then it needs to copy the PDF to the other...
8
by: luis molina Micasoft | last post by:
it seems that when i do file.copy the svchost.exe is hanged, i mean if i make 40 threads of file.copy , 40 copys of files at same time the system is going down and stop responding, this is when i'm...
3
by: Martin Ho | last post by:
Can someone help me with this please? I wasn't very clear in my old post. I have a program to copy files from one location to another, now I want to copy only those files which were created on...
2
by: Clodoaldo Pinto Neto | last post by:
Hi all, I'm trying to copy a table with a text field column containing a new line char to a file: ksDesenv=# create table page(line text) without oids; CREATE TABLE ksDesenv=# insert into...
1
by: Rachel McConnell | last post by:
Hi, I am trying to import data using COPY, from a file containing thirty or so COPY commands each with 0 or more rows of data. Reason, I have a small data set I want to include into a database...
1
by: Dan | last post by:
I have an application that I want to use for copying files. My goal is to copy a files, if a file is in use or not accessible because of security reasons I want to make note of that file then...
0
by: Paul Brady | last post by:
I volunteer at a youth ministry agency and help them with their student database. They have two computers, both running Windows XP. Both have Office 2002 installed without Access, except that...
1
by: ajc308 | last post by:
I'm attempting to sort the <file>s within each <directory> in my XML according to their file extension, then write out the resulting sorted data back to XML format. I had it working before, and when...
4
by: Masta | last post by:
Hello Group. I have a directory with 3000 ".jpg" named like this: 1234_01.jpg 1234_09.jpg 1234_11.jpg 1234_12.jpg 2341_01.jpg 2341_05.jpg
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: 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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.