TextReport
asked on
SQL Server Trusted Connections with FULL STOP in User Name
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.surna me. 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.surna me.TableNa me
[DOMAINNAME\firstname.surn ame].Table Name
"DOMAINNAME\firstname.surn ame".Table Name
DBName.DOMAINNAME\firstnam e.surname. TableName
DBName.[DOMAINNAME\firstna me.surname ].TableNam e
DBName."DOMAINNAME\firstna me.surname ".TableNam e
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
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.surna
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.surna
[DOMAINNAME\firstname.surn
"DOMAINNAME\firstname.surn
DBName.DOMAINNAME\firstnam
DBName.[DOMAINNAME\firstna
DBName."DOMAINNAME\firstna
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
ASKER
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.Surna me.
I need to connect an attached table as i need to do a BULK INSERT from a local Access table.
Cheers, Andrew
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.Surna
I need to connect an attached table as i need to do a BULK INSERT from a local Access table.
Cheers, Andrew
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
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.
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.
ASKER
puppydogbuddy, usful link but no indication of the issue, I already have the connect string and it works for DBO owned objects.
Cheers, Andrew
Cheers, Andrew
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
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_surna