473,385 Members | 1,396 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.

SQL Server <=> MS Access Project

48
Hello-

This field is new for me, and I've looked elsewhere for tutorials.

I was recently given an SQL Server (IP) Address, username, and password. I need to work with the data in Access, and don't quite know how to get the two to speak to one another.

I've made a new project from existing data, and got to the Data Link properties. It's clear where the username and password goes, and I took a guess that the IP address goes in the "Select of enter server name" box. In fact, testing the connection with those gave me the following error:
"Test connection failed because of an error in initializing provider. Login failed for user 'myUserName'."

I didn't know if I was doing something completely wrong or not, but putting in a bogus address gave me:
"Test connection failed because of an error initializing provider. [DBNETLIB][ConnectionOpen (Connect()).]SQL
Server does not exist or access denied."

This leads me to believe I put the server address in the right place, but for some reason I'm still stuck on the outside. Am I doing something wrong? Or is my username/password incorrect?
Oct 25 '07 #1
4 6883
Jim Doherty
897 Expert 512MB
Hello-

This field is new for me, and I've looked elsewhere for tutorials.

I was recently given an SQL Server (IP) Address, username, and password. I need to work with the data in Access, and don't quite know how to get the two to speak to one another.

I've made a new project from existing data, and got to the Data Link properties. It's clear where the username and password goes, and I took a guess that the IP address goes in the "Select of enter server name" box. In fact, testing the connection with those gave me the following error:
"Test connection failed because of an error in initializing provider. Login failed for user 'myUserName'."

I didn't know if I was doing something completely wrong or not, but putting in a bogus address gave me:
"Test connection failed because of an error initializing provider. [DBNETLIB][ConnectionOpen (Connect()).]SQL
Server does not exist or access denied."

This leads me to believe I put the server address in the right place, but for some reason I'm still stuck on the outside. Am I doing something wrong? Or is my username/password incorrect?
You don't say what version of SQL server you are using or connecting to but in brief there are two methods for authenticating against an SQL Server login one is using standard windows integrated security and the other is using SQL servers own built in security. (integrated security will be SQL servers acceptance of your windows login to validate your connection whereas SQL servers 'own' security is where you are logging in directly to the SQL server itself using a user name stored on the SQL server together with a password. IN EITHER case you must have an account on the SQL server itself as a user who is entitled to gain access to the SQL server. If your impression is that just using a datalink will give you access then you will mistaken (if I have perceived your post correctly). You need to speak with whoever it is who administers the SQL server machine to make sure you have a user account name on the SQL server itself

If you are on a networked computer in a domain connecting to another computer on which SQL server is hosted then any 'named' instances of standard installations of SQL Server 'should' appear in the dropdown on the datalink connection tab. (if it has been setup correctly). The same applies if the SQL server is mounted on your own machine of course.

If you do not see a named instance of SQL server in that dropdown then it could be any number of reasons but without knowing more about your set up the complexities are such ie is it on mapped drive/share at logon, or a VPN client ,server communication protocols in place etc etc

You are trying to access the SQL server using an ADP project file using datalink but which seems to be giving you a connection problem currently.... as an alternative try seeing if you can connect using an MDB file using ODBC as the connection method see if that gives issues (my own preference is ADP by the way so good choice :) but be ware MDB is favoured it seems for Access 2007

Jim :)
Oct 26 '07 #2
isoquin
48
You don't say what version of SQL server you are using or connecting to but in brief there are two methods for authenticating against an SQL Server login one is using standard windows integrated security and the other is using SQL servers own built in security. (integrated security will be SQL servers acceptance of your windows login to validate your connection whereas SQL servers 'own' security is where you are logging in directly to the SQL server itself using a user name stored on the SQL server together with a password. IN EITHER case you must have an account on the SQL server itself as a user who is entitled to gain access to the SQL server. If your impression is that just using a datalink will give you access then you will mistaken (if I have perceived your post correctly). You need to speak with whoever it is who administers the SQL server machine to make sure you have a user account name on the SQL server itself

If you are on a networked computer in a domain connecting to another computer on which SQL server is hosted then any 'named' instances of standard installations of SQL Server 'should' appear in the dropdown on the datalink connection tab. (if it has been setup correctly). The same applies if the SQL server is mounted on your own machine of course.

If you do not see a named instance of SQL server in that dropdown then it could be any number of reasons but without knowing more about your set up the complexities are such ie is it on mapped drive/share at logon, or a VPN client ,server communication protocols in place etc etc

You are trying to access the SQL server using an ADP project file using datalink but which seems to be giving you a connection problem currently.... as an alternative try seeing if you can connect using an MDB file using ODBC as the connection method see if that gives issues (my own preference is ADP by the way so good choice :) but be ware MDB is favoured it seems for Access 2007

Jim :)
Jim-

I greatly appreciate the reply. The SQL server is completely remote (as in, not on this computer, and not anywhere on my domain/LAN). I was just given an IP address for it. I was also given a specific username and password setup by the admin of that SQL server.

I also don't quite understand what MDB file using ODBC is. I've used access when building DBs from scratch, but I've never done *this* before, and as such I really need broken down instructions.

At the moment I'm somewhat of the belief that the username and password given to me might be incorrect (by the steps I mentioned in my first post).
Oct 26 '07 #3
Jim Doherty
897 Expert 512MB
Jim-

I greatly appreciate the reply. The SQL server is completely remote (as in, not on this computer, and not anywhere on my domain/LAN). I was just given an IP address for it. I was also given a specific username and password setup by the admin of that SQL server.

I also don't quite understand what MDB file using ODBC is. I've used access when building DBs from scratch, but I've never done *this* before, and as such I really need broken down instructions.

At the moment I'm somewhat of the belief that the username and password given to me might be incorrect (by the steps I mentioned in my first post).
Yes thats what I think could quite easily be the case too. I rather guessed that given you have an IP address and a user name and password that the sql server wouldnt be on your computer. you'd know about it :) I tried to reply generically in effect to cover a potential range.

The connectivity aspect should be a relatively simple process with UDL ('universal data link' as its called) is merely a text file saved with a udl file extension on your pc that is used to provide the necessary details to connect in line with the method for connection.

A description of that connectivity feature which is the standard built into the ADP format is described numerously on the web but heres a couple of examples here

http://msdn2.microsoft.com/en-us/lib...6(sql.80).aspx

and here

http://www.prezzatech.com/kb/article...on_strings.asp

Connection to SQL server and the ability for you to 'speak' too it comes in a couple of formats in Access you can either use the ADP Project file which is what you are doing, or a standard Access MDB file. This is where, if you chose the MDB method you would be setting up an ODBC connection string in the Control panel of your PC (Start..settings...control panel...Administrative tools...Data Sources) selecting the SQL server ODBC driver and entering a user name and password for a connection which would again be stored on your pc and used to connect to SQL Server by the MDB file.

You can sample this yourself... if you create a simple mdb database and then open it up you would have no tables. (You have no need for them essentially because the tables are stored in SQL server) you merely would link to any tables by 'Attaching' them to the tables interface screen in Access where they would appear with an icon of a the world globe. You can then query and act on those tables as though they were physically present in your local MDB file database. You can throw the data into visible tables stored locally and so on (something you can't do with ADP files.)

To all intents and purposes you'd be forgiven for thinking the tables were in Access as a newbie but they are not in actual fact. Try it out.. when in the database window of an mdb file go to the menubar ..File...Get External Data....Files of type dropdown select ODBC databases ...then select the ODBC connection you created earlier in control panel (and if you didnt you can create one). Access will then ask you if you want to save the connection string in the database. Click Yes and you then see the tables attached as mentioned.

I won't go into the differences between ADP and MDB because basically you could write a small book on it. Suffice it to say they are different, having connectivity features and benefits inherent in one and not the other and vice versa. Most of what you want to do can be done in either of them.

MS favoured ADP files when they were first introduced for communicating with SQL server and to a large extent one could quite easily understand how people invested substantial time programming them using ADO. now MDB files are back in favour again (research Access 2007 you'll understand why) thus making DAO flavour of the month again (as if it ever wasn't... it is powerfully native of Access)

I have only mentioned all of this to make you 'aware', given you are 'newly' connecting with I suspect a 'blank interface' any extra knowledge might give you a clearer understanding of whether or not you have selected the interface 'suitable' for your purpose (whatever that might be long term). None of us know whether MS intend to drop or retain ADP in any future release forewarned is forearmed... so to speak.

Hope this informs you just that 'little' bit better (as for the specific issue currently lets see what your admin person says as to your user name and password it may as you point out simply be wrong)

Regards

Jim :)
Oct 26 '07 #4
Hi,

I'm building an ADP for a client. The ADP that I used was linked to SQL Server 2005 Express on my machine, and when I sent them the ADP, they're having trouble connecting it to the server. They're SQL Server is also 2005 Express, and it's on another machine in the office. They have the IP Address (I can only assume it's correct, though maybe it's not), and have created a username and password.

They can make the connection when the ADP is on the same computer as SQL Server, but with the ADP on another machine, they cannot. They stick the IP address with \SQLEXPRESS in the "Select or enter server name" box, and enter the other info (username and password login, database name), and they get that same error message, "Server does not exist or access denied. Since the username/password is correct, and SQL Server is up and running fine, I'm thinking it's either the IP Address they've got is wrong, or the computer with SQL Server isn't open to the network (I don't know much about networking servers, so I don't really know the next step on that one). Any advice on how to know if the latter is the case? Am I missing something else?

Robin
Mar 17 '09 #5

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

Similar topics

1
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
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
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...
1
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
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
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...
0
by: Chad | last post by:
Hello All, Can anyone tell me how to reference an assembly from the GAC in a SQL Server Project (VS 2005)? Best Regards, Chad
0
by: oliviers | last post by:
Hi, I was wondering whether it was possible to reference and thus use an assembly compiled with version 1.1 of the framework from within a VS2005 SQL Server project? Is there a way to load...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
0
by: MarkusJNZ | last post by:
Hi, I have a bunch of VS2003 rdl files which exist in named folders and I want to import all these files and their associated folders into a new VS2005 report server project. So, I tried just...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.