473,387 Members | 3,810 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,387 software developers and data experts.

Issue with connecting to SQL Server

171 100+
Hi,

I am trying to connect to an SQL Server Express 2005 Back End with an Access mdb front end. I realise mdb's are not the best to link to a SQL Server.

Reasons for not using an adp file: not able to transfer my queries from the mdb to the adp file.

Attempt to use accdb file: I tried to convert the mdb to an accdb file but the same error (listed below) also occured with the accdb file, so I suspect the issue isn't because I am using an mdb file.


The error is:
Connection Failed
SQL State:'28000'
SQL Server Error:18456
[Microsoft][ODBC Server Driver]login failed for user 'KAMAL\Guest'
the error message box only gives me the option to click 'ok', when I click 'ok' another box opens with the Server Name and a ticked check box called 'use trusted connection' and below it are windows logon details, if I untick the check box I am able to enter the SQL Server Authentication Details,and the error goes away, but then when I close and reopen the database the error happens again.

I have attached file with screenshots that may be usefull (the file is a .zip file contianing a .doc file).

Other Info:
Authentication: SQL Server Authentication
Remote Connections: Enabled
Shared Memory: Enabled
TCPIP: Enabled
Named Pipes:Enabled
VIA : Disabled
Firewall( Client & Server side) : Disabled


Thanks
Attached Files
File Type: zip Screen_Print_SQL_Mgt_Utility.zip (121.6 KB, 51 views)
Nov 23 '09 #1
3 2076
NeoPa
32,556 Expert Mod 16PB
I'm not sure what to tell you.

I know of no way to encode a SQL Server Username & Password into your link (If you find a way then I'll borrow it from you ;)). The only other way that is usually available is Windows Authentication (which clearly isn't set up to work correctly for you). This can only work from a machine on the same or a trusted Windows Domain.

A less used (Great idea but few seem to implement it somehow - even commecially) is Application Security. It was available in the full version of SQL Server 2000, but I don't know about 2005 Express Edition. It may be worth looking at for software access, as that's fundamentally what it was set up for. On the other hand security is there for a reason. What you seem to be trying to do is to circumvent it (I know - probably just for convenience rather than any nefarious purpose). This should be discussed with the DB Server Admin. They will need to set something up for this before you can use it anyway.
Nov 23 '09 #2
iheartvba
171 100+
Well actually, I don't mind using windows authentication, I am only using SQL Authention because otherwise the client app (also on the lan) isn't able to connect to the SQL server.

Another thing which may clarify a few things is that the access front end which is on the local machine hosting the SQL Server doesn't give any issues, but I don't really know what to make of that...

My mind is just boggled, and I need to get this thing up and running on the network :S

I will try the App. Automation you suggested, hopefully it works

Thx
Nov 23 '09 #3
NeoPa
32,556 Expert Mod 16PB
@iheartvba
Windows Authentication is no good for you unless it lets through who you want it to let through. There's no good being happy with using it if it doesn't work.
@iheartvba
I suspect the machine the server runs on is already logged in with an account that has the required permissions. That would be usual on the PC itself. Clearly it must be a PC that is a member of the correct domain in this case.
@iheartvba
Sorry. I just reread my post and it did actually say that. i've corrected it now to read Application Security. A feature available in SQL Server 2000 certainly. Sorry for the misdirection.
Nov 23 '09 #4

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

Similar topics

4
by: inline_four | last post by:
We've been running a database on a shared server. The traffic on our site has been picking up steadily and it seems as though we're running into sporadic downtime on the database. Sometimes when...
5
by: Brian Piotrowski | last post by:
Hi All, I almost have the connection working for my connection to the AS/400 from an ASP page. However, I have an error appearing, and I'm not sure how to fix it. The code I have for...
7
by: Jenbo | last post by:
I know this has come up frequently but I can't seem to put my finger on the precise problem as it applies to me. I have a workgroup with a 2003 box with Sql server on it. Also, on this, I have an...
3
by: muldoon | last post by:
I'm having quite a fuss with my two MySQL DB servers lately. I'm trying to establish replication between a MySQL 4.0.20 server (master) and a MySQL 4.1.11 server (slave). From what I read,...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
6
by: Palvinder Singh | last post by:
Hello google group peeps, I am new to remoting, but have a grasp of it. I am trying to create a server/client application, which will be deployed over an intranet. I have upwards of five...
3
by: prajithgg | last post by:
Hi, I am facing some problem while inserting some non English characters to DB2 server from my java application. We are not able to retrieve the same record when searched with the same non English...
0
by: etnaelk | last post by:
Hi all, I have a real bugger of a problem that I just haven't been able to figure out. I am working on writing my own proxy server in C# using TcpListener, TcpClient, HttpWebRequest/Response and...
2
by: Nicolas Le Gland | last post by:
Hello everyone here. This is my first post in this newsgroup, I hope I won't be to much off-topic. Feel free to redirect me to any better group. I am getting strange timing issues when...
6
by: SRK | last post by:
Hi, I have installed free TDS ODBC driver on Linux and from there I am trying to connect to MS SQLSERVER installed on Windows machine. But it gives me following error - tsql -H ps6312 -p 1433...
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: 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
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...

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.