473,513 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I change the SQL server for Access ADP?

I have MS SQL Server 2000 evaluation version on my desktop PC. I have
the SQL Server client tools (only) on the laptop. The two computers are
networked. I had an Access MDB database on my laptop, but I converted
it with the Access upsizing wizard to an Access ADP database with the
Access front-end on the laptop connecting to the SQL Server on the
desktop. Now I want to move from this test environment to the "real"
server. How do I go about this? Do I make the change from the laptop or
the desktop? Do I use the Access drop-down menu, Tools > Database
Utilities > Transfer Database? Or maybe from the desktop with: SQL
Server Enterprise Manager > Copy Database Wizard?

Nov 13 '05 #1
4 14007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You change the connection string on the .adp file.

Try this in the Debug window of the .adp file:

? currentproject.BaseConnectionString

It will return something like this:

PROVIDER=SQLOLEDB.1;INTEGRATED SECURITY=SSPI;PERSIST SECURITY
INFO=FALSE;INITIAL CATALOG=Database_Name;DATA SOURCE=Server_Name;Use
Procedure for Prepare=1;Auto Translate=True;Workstation ID=WorkSta_Name

Just replace the Database_Name and the Server_Name w/ the names of your
db on SQL Server and server (computer) where it resides. You don't need
the Workstation parameter.

strConnect = CurrentProject.BaseConnectionString
strConnect = Replace(strConnect, "Old_DB_Name", "New_DB_Name")
strConnect = Replace(strConnect, "Old_Server", "New_Server")

After getting the old connection string & replacing the db name & server
name, you can close the connection using CloseConnection:

CurrentProject.CloseConnection

Then open a new connection to the "real" SQL Server db:

CurrentProject.OpenConnection strConnect

If you use SQL Login's instead of NT Authentication, get rid of the
INTEGRATED SECURITY=SSPI parameter in the connection string and use
this:

CurrentProject.OpenConnection strConnect, <user_id>, <password>

Substitute your user_id name and password.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQed59oechKqOuFEgEQL+gACg9JTJlFbi09tumHCXWUisKj AtOC4AoLDt
PQfiwvUoyJElSurJtgjC74wy
=oD4o
-----END PGP SIGNATURE-----
rc*********@yahoo.com wrote:
I have MS SQL Server 2000 evaluation version on my desktop PC. I have
the SQL Server client tools (only) on the laptop. The two computers are
networked. I had an Access MDB database on my laptop, but I converted
it with the Access upsizing wizard to an Access ADP database with the
Access front-end on the laptop connecting to the SQL Server on the
desktop. Now I want to move from this test environment to the "real"
server. How do I go about this? Do I make the change from the laptop or
the desktop? Do I use the Access drop-down menu, Tools > Database
Utilities > Transfer Database? Or maybe from the desktop with: SQL
Server Enterprise Manager > Copy Database Wizard?

Nov 13 '05 #2
Thanks, after I manage to transfer/copy the database from the desktop
PC to the server, I will change the connection string in the ADP file.
As far as moving the actual SQL database, I'm not sure if I should use
the "Transfer Database" feature of Access or if I should use the "Copy
Database" wizard from the SQL Server Enterprise Manager. Or some other
way?

MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You change the connection string on the .adp file.

Try this in the Debug window of the .adp file:

? currentproject.BaseConnectionString

It will return something like this:

PROVIDER=SQLOLEDB.1;INTEGRATED SECURITY=SSPI;PERSIST SECURITY
INFO=FALSE;INITIAL CATALOG=Database_Name;DATA SOURCE=Server_Name;Use
Procedure for Prepare=1;Auto Translate=True;Workstation ID=WorkSta_Name
Just replace the Database_Name and the Server_Name w/ the names of your db on SQL Server and server (computer) where it resides. You don't need the Workstation parameter.

strConnect = CurrentProject.BaseConnectionString
strConnect = Replace(strConnect, "Old_DB_Name", "New_DB_Name")
strConnect = Replace(strConnect, "Old_Server", "New_Server")

After getting the old connection string & replacing the db name & server name, you can close the connection using CloseConnection:

CurrentProject.CloseConnection

Then open a new connection to the "real" SQL Server db:

CurrentProject.OpenConnection strConnect

If you use SQL Login's instead of NT Authentication, get rid of the
INTEGRATED SECURITY=SSPI parameter in the connection string and use
this:

CurrentProject.OpenConnection strConnect, <user_id>, <password>

Substitute your user_id name and password.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQed59oechKqOuFEgEQL+gACg9JTJlFbi09tumHCXWUisKj AtOC4AoLDt
PQfiwvUoyJElSurJtgjC74wy
=oD4o
-----END PGP SIGNATURE-----
rc*********@yahoo.com wrote:
I have MS SQL Server 2000 evaluation version on my desktop PC. I have the SQL Server client tools (only) on the laptop. The two computers are networked. I had an Access MDB database on my laptop, but I converted it with the Access upsizing wizard to an Access ADP database with the Access front-end on the laptop connecting to the SQL Server on the
desktop. Now I want to move from this test environment to the "real" server. How do I go about this? Do I make the change from the laptop or the desktop? Do I use the Access drop-down menu, Tools > Database
Utilities > Transfer Database? Or maybe from the desktop with: SQL
Server Enterprise Manager > Copy Database Wizard?


Nov 13 '05 #3
On Fri, 14 Jan 2005 07:52:51 GMT, MGFoster <me@privacy.com> wrote:

The last part of your message is incorrect. For SQL Login, use:

strConnect = strConnect & ", User ID= <user_id>, Password=<password>"
CurrentProject.OpenConnection strConnect

I typically use this web page for connection strings:
http://www.able-consulting.com/ADO_Conn.htm

-Tom.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You change the connection string on the .adp file.

Try this in the Debug window of the .adp file:

? currentproject.BaseConnectionString

It will return something like this:

PROVIDER=SQLOLEDB.1;INTEGRATED SECURITY=SSPI;PERSIST SECURITY
INFO=FALSE;INITIAL CATALOG=Database_Name;DATA SOURCE=Server_Name;Use
Procedure for Prepare=1;Auto Translate=True;Workstation ID=WorkSta_Name

Just replace the Database_Name and the Server_Name w/ the names of your
db on SQL Server and server (computer) where it resides. You don't need
the Workstation parameter.

strConnect = CurrentProject.BaseConnectionString
strConnect = Replace(strConnect, "Old_DB_Name", "New_DB_Name")
strConnect = Replace(strConnect, "Old_Server", "New_Server")

After getting the old connection string & replacing the db name & server
name, you can close the connection using CloseConnection:

CurrentProject.CloseConnection

Then open a new connection to the "real" SQL Server db:

CurrentProject.OpenConnection strConnect

If you use SQL Login's instead of NT Authentication, get rid of the
INTEGRATED SECURITY=SSPI parameter in the connection string and use
this:

CurrentProject.OpenConnection strConnect, <user_id>, <password>

Substitute your user_id name and password.


Nov 13 '05 #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All that matters is the back-end, not where the Access front-end
(interface) is. Therefore, just use the Enterprise Manager (EP) Copy
Database Wizard on the PC/Server that has SQL Server.

You can also detach & attach db files. See BOL "Attaching and Detaching
a Database" for more info.

If you're going into production, don't you think you should have more
than just an evaluation version of SQL'r?

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQehNGoechKqOuFEgEQKEhwCg/PhHLWx9dIGxiLKxywTGtXFZX04AoIfm
TA+xg5btouYfsbJ6Yu7cMFln
=skeq
-----END PGP SIGNATURE-----
rc*********@yahoo.com wrote:
Thanks, after I manage to transfer/copy the database from the desktop
PC to the server, I will change the connection string in the ADP file.
As far as moving the actual SQL database, I'm not sure if I should use
the "Transfer Database" feature of Access or if I should use the "Copy
Database" wizard from the SQL Server Enterprise Manager. Or some other
way?

Nov 13 '05 #5

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

Similar topics

1
2603
by: Bennett Haselton | last post by:
I want to get an ASP.Net hosting account with my ISP, and I'm trying to find out what level of access to the server is requried in order for me to view the server in Server Explorer in Visual...
1
10963
by: 9628 | last post by:
error while trying to run project: Unable to start debugging on the web server. Access is denied. Would you like to disable future attempts to debug ASP.NET pages for this project? I have tried...
3
2388
by: Colin Finck | last post by:
Hello! I need to backup a MySQL database (MySQL 4.0). But it is on a shared-hosting web server and so I don't have direct server access. I also have no phpMyAdmin installed. How can I backup the...
5
1787
by: Scott McDaniel | last post by:
I have a VB app which stores information in an Access 2000 db. The VB app handles multiple users (it's a logbook type of application, users share lookup tables but don't share information among...
1
1857
by: Viswanathan S | last post by:
HI ALL! When user try to debug an Asp Web application, He got error "Unable to start debugging on the web server. Access is denied." The IIS server installed locally on the pc with Windows...
1
1455
by: ganesh | last post by:
I installed dotnet and when i try to run a web application i get the error messagebox saying "Unable to debug on server,Access is denied.Would you like to disable the future attempts to debug".
3
1721
by: Jerry J | last post by:
Hi, My asp.net application must access a file that can be anywhere on the server's LAN. I am having a problem because the server, doesn't have access to files that are not on the server's local...
1
985
by: marks | last post by:
Hello, I did a install and re-install of VS.NET v1.1 and get the above. Web page runs, but no debugging. I tried MSDN listed fixes with no change. What 'access' does it want if I'm already...
2
1565
by: Nuno | last post by:
How can i change the access modifier of a control from protected to public if the designer code is not visible to the developer? I tryed declaring it on the page but it throws a compile error...
0
1162
by: asefa | last post by:
hello friends there, i need your help. at the moment i am trying to develope a website using asp.net. But i am tuckled with the following error message while trying to start run the programm....
0
7388
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
7547
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
7114
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
7541
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...
1
5098
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
3230
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.