Solved

SQL Server Trusted Connections with FULL STOP in User Name

Posted on 2006-07-05
9
824 Views
Last Modified: 2012-06-27
Dear All

Have you come accross a problem, and more to the point resolved a problem, with Access 2000 trying to link the Microsoft SQL Server 2000. We are using trusted connections and the user appears as DOMAINNAME\firstname.surname. When I try to connect to the table as the user it will either create the attached table but fail to open or it will fail to attach.

Option 1: I have tried connecting through the connection manager and this creates the attached table but fails to open it.
Option 2: I have tried using my standard code that I use to create the attached tables with the folowing options all to no avail.
TableName
DOMAINNAME\firstname.surname.TableName
[DOMAINNAME\firstname.surname].TableName
"DOMAINNAME\firstname.surname".TableName
DBName.DOMAINNAME\firstname.surname.TableName
DBName.[DOMAINNAME\firstname.surname].TableName
DBName."DOMAINNAME\firstname.surname".TableName

I am 100 Percent convinced this is a problem with the FULL STOP and as you can see I have tried all combinations of using [ ] and "".

Just to confirm I need to have the table owned by the User not DBO
I need to have an attached table in MS Access 2000 to this table.

Cheers, Andrew
0
Comment
Question by:TextReport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 17045057
actually, the issue is that Access connected with ODBC and not with OLEDB, and ODBC is not able to handle this.
if you connect with Query Analyser, you will be able to do this.

to solve this, you have to create USER accounts in the database that do NOT have "\", "." or similar things in their names. note that the USER name does NOT need to be the same as the LOGIN name they are based on!
So, you could create a USER like this:
DOMAINNAME_firstname_surname
0
 
LVL 28

Author Comment

by:TextReport
ID: 17045199
AngelIII, thanks for the prompt reply, however, as stated we are using TRUSTED CONNECTION and it would be an huge job to either change the Domain User Names or to move away from the TRUSTED CONNECTIONS.

It is the FULL STOP rather than the BACKSLASH as when tracing the problem it puts sqaure brackets around DOMAINNAME\FirstName rather than around DOMAINNAME\FirstName.Surname.

I need to connect an attached table as i need to do a BULK INSERT from a local Access table.

Cheers, Andrew
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 17045270
I guess you misunderstood my comment.

In SQL Server, you have

Security -> Logins
  here you define the LOGINS for the server, ie the Windows-Authenticated NT Accounts.
  the LOGIN-names need to be identical to the NT domain names, so you keep them as they are.
  they are stored in master.dbo.syslogins

Databases -> <YOURDATABASE> -> Users
   Here you define the USERS for your database, which are based on the LOGINS defined above.
   the USER-name defaults to the LOGIN-name, but you can put there WHATEVER you want basically.
   so, for LOGIN-name = "DOMAIN\User.Name"  you can define the USER-name to be "Barney"
    they are stored in <YOURDATABASE>.dbo.sysusers

   the LINK between the USER and the LOGIN is done using SID columns.
   
Hope this clarifies
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 28

Author Comment

by:TextReport
ID: 17045558
OK understand, this is a possibility that I will discuss with the DBA's tomorrow. I am sure this could achieve what I am ultimately after but I am very keen to see if there is a ODBC / DAO / OLEDB solution to do the bulk insert without having to create a work around that will require maintenance by the DBA's

Just to re-itterate. I have data in a local access table that I want to BULK INSERT into a table OWNED by the Domain User, the domain user has a full stop in it and this is causing a problem creating the attached table.

Cheers, Andrew
0
 
LVL 38

Expert Comment

by:puppydogbuddy
ID: 17046264
TextReport,
See if a connection string at this link will work for you. Click on the connection object to expand a list of string formats for that object.

http://www.connectionstrings.com/

Hope this helps.
0
 
LVL 28

Author Comment

by:TextReport
ID: 17046393
puppydogbuddy, usful link but no indication of the issue, I already have the connect string and it works for DBO owned objects.

Cheers, Andrew
0
 
LVL 38

Assisted Solution

by:puppydogbuddy
puppydogbuddy earned 250 total points
ID: 17046739
Ok.  Has the SQL Server Fixed Server Role of "bulkadmin" been assigned as part of your security? According to the attached, the bulkadmin role allows users to insert the contents of any local file into a table. The link also notes that sql server roles, permissions, and passwords are an important aspect of SQL Server security that is too often overlooked.  

 
 
                       See SQL Server Roles, Permissions, and Passwords
                http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlops3.mspx
0
 
LVL 27

Expert Comment

by:jjafferr
ID: 17258964
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    Split: angelIII {http:#17045270} & puppydogbuddy {http:#17046739}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

jjafferr
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question