Login failed when connecting to SQL in local

RobySpain
Member Posts: 57
Hi,
I've a problem and need your help. ](*,)
I've install the SQL2005 and the NAV2009 (both classic sql and RTC). Cronus database is working fine: it connects and opens even the RTC without problems.
Now, I restore an other database in SQL. When I tryed to open the database in classic NAV with SQL give me an error:
- with Database Authentication: "The login failed when connecting to SQL Server NAMEINSTANCE"
- with Windows Authentication: "The user ID and password are invalid. Try again"
Please, could you help me with this problem?
How can I restore the new sql database in my server without these problems?? The sql server authentication is Windows and SQL Server.
Sorry but I am very new with SQL. :oops:
Wait for your help...
Robyn
I've a problem and need your help. ](*,)
I've install the SQL2005 and the NAV2009 (both classic sql and RTC). Cronus database is working fine: it connects and opens even the RTC without problems.
Now, I restore an other database in SQL. When I tryed to open the database in classic NAV with SQL give me an error:
- with Database Authentication: "The login failed when connecting to SQL Server NAMEINSTANCE"
- with Windows Authentication: "The user ID and password are invalid. Try again"
Please, could you help me with this problem?
How can I restore the new sql database in my server without these problems?? The sql server authentication is Windows and SQL Server.
Sorry but I am very new with SQL. :oops:
Wait for your help...
Robyn
0
Comments
-
with which database authentication you tried?
Did you try with SA?0 -
thanks Mohana to reply.
I tryed with both:
Windows authentication-> the error is: the user ID and password are invalid
Database Server Authentication -> the login failed when connecting to SQL Server
I tryed to use the SA too and the same fail.
Robyn0 -
have you done synchronization?0
-
I can't open the database. Then, I can't sincronize the users ](*,)0
-
I think it's because you haven't the current SQL-User in the database. If it's just at test environment you can delete all the users in the SQL Server and then you can log in to the database with the SA account(or another account which has the right permissions). To delete all the users you have to open SQL Server and delete all the entries in the tables 'dbo.users' and 'dbo.windows login'.0
-
Can you open the database in SQL management studio?
Navision enabled userIDs are stored in two tables on the SQL-server
If so check the content of [<replacewithNAVdatabasename>].[dbo].[Users] for database usernames
and [<replacewithNAVdatabasename>].[dbo].[Windows Login] for Windows-user SIDs
SELECT [User ID] FROM [<replacewithNAVdatabasename>].[dbo].[User]
SELECT [SID] FROM [<replacewithNAVdatabasename>].[dbo].[Windows Login]
[User ID] must have a datadabe-login created in SQL to work
[SID] must be either a member of a securitygroup or a windows-user with a windows-account in SQLRegards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 20090 -
Hi,
I solved the problem. Delete all the users in the dbo.users and dbo.windows login.
Now I can open the database.
Thanks a lot for all.
Roberto0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions