Hi,
I have a problem on a database name ('Planning Groupe RDI'). This database name contains space in the name and when i try to connect with the TZComponent (i use Lazarus), i have this error :
"....
Impossible to find entry in sysdatabases for the database 'Planning'.
..."
It seems that the name of the database is truncated on the first space character.
I've do the same test with the same component in the same project, with a database which named 'Test', and i have no error. I can open the database.
Please, if someone can help me
I use :
- Lazarus 0.9.29
- ZeosLib 6.6.6-stable
Error to connect to SQL SERVER 2005 EXPRESS with Lazarus
Moderators: gto, cipto_kh, EgonHugeist
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Sorry,
I don't have an idea right now. I can't test and debug this myself.
BTW : you best test this with runtime connection, not using design time connections.
Mark
I don't have an idea right now. I can't test and debug this myself.
I suppose this is the message coming from the server. Best thing to do is add a TZSQLMonitor to the project and log all statements sent to the server into a file when you try using different 'quoting systems'.But i've got an error which tell me that this is an unknown or invalid database.
BTW : you best test this with runtime connection, not using design time connections.
Mark
I've found the solution . The problem was in SQL Server 2005 configuration.
To solve this connection problem, we need two properties :
- first, in the TZConnection, you must put the database name between double quote like this : "Planning Groupe RDI"
- next, on the SQL Server 2005, in the properties of the instance, on the Connexion page, you must active the properties "quoted identifiers"
Bye.
To solve this connection problem, we need two properties :
- first, in the TZConnection, you must put the database name between double quote like this : "Planning Groupe RDI"
- next, on the SQL Server 2005, in the properties of the instance, on the Connexion page, you must active the properties "quoted identifiers"
Bye.
The solution is the same in SQL Server 2008.Inka wrote:I've found the solution . The problem was in SQL Server 2005 configuration.
To solve this connection problem, we need two properties :
- first, in the TZConnection, you must put the database name between double quote like this : "Planning Groupe RDI"
- next, on the SQL Server 2005, in the properties of the instance, on the Connexion page, you must active the properties "quoted identifiers"
Bye.