Connection to MSSQL
Moderators: gto, cipto_kh, EgonHugeist
Connection to MSSQL
Hi,
ich try to connect to an MSSQL 2000 Server with Zeos 6.1.5.
Now I get this Error Message:
Test_Connection: EZSQLException
at $004A0B63
Requested database driver was not found
Do I need an DLL file like i needed it for MySQL or Postgre? If so, where can I get it, there was noone in the Zeos package.
Is use
ZDbcADO;
to connect
Are that the right Connection classes for MSSQL or are there any other? I couldn't find any other files for MSSQL out of the ZDBc* category.
regards
musicones
ich try to connect to an MSSQL 2000 Server with Zeos 6.1.5.
Now I get this Error Message:
Test_Connection: EZSQLException
at $004A0B63
Requested database driver was not found
Do I need an DLL file like i needed it for MySQL or Postgre? If so, where can I get it, there was noone in the Zeos package.
Is use
ZDbcADO;
to connect
Are that the right Connection classes for MSSQL or are there any other? I couldn't find any other files for MSSQL out of the ZDBc* category.
regards
musicones
Hi,
thanks for your Information.
After I had to see that mdac is part of WinXP Prof (that is what i use), I set up ZDbcAdo with ado as protocol this time. This was wrong, I had mssql as protocol using ZDbcAdo, ok now I know that couldn't work.
Now I've tried both with ADO and with DBLIB.
Error using ADO:
Test_Connection: EAccessViolation
at $004E9245
when trying to
in unit ZDbcAdo.
Error using DBLIB:
<it's translated from german, so it's not original message>
Test_Connection: EDBConnectionError
at $004A12CA
Connection wrong.
Error connecting user 'musicones'. Reason:
no confident SQL Server-Connection assigned.
<original german message>
Test_Connection: EDBConnectionError
at $004A12CA
Anmeldung falsch.
Fehler bei der Anmeldung für den Benutzer 'musicones'. Ursache: Keiner vertrauten SQL Server-Verbindung zugeordnet.
I'm a bit helpless. ADO doesn't work at all. I hope it's a small error using DBLIB, maybe wrong declaration of DBname?
Database := 'test_Data'; <-- maybe wrong here, I tried different but no reaction at all
HostName := 'localhost';
Password := 'xxxxxxx';
Port := 0;
UserName := 'musicones';
thanks a lot till now and regards
musicones
thanks for your Information.
After I had to see that mdac is part of WinXP Prof (that is what i use), I set up ZDbcAdo with ado as protocol this time. This was wrong, I had mssql as protocol using ZDbcAdo, ok now I know that couldn't work.
Now I've tried both with ADO and with DBLIB.
Error using ADO:
Test_Connection: EAccessViolation
at $004E9245
when trying to
Code: Select all
{**
Destroys this object and cleanups the memory.
}
destructor TZAdoConnection.Destroy;
begin
[B] Close;[/B]
FAdoConnection := nil;
inherited Destroy;
end;
Error using DBLIB:
<it's translated from german, so it's not original message>
Test_Connection: EDBConnectionError
at $004A12CA
Connection wrong.
Error connecting user 'musicones'. Reason:
no confident SQL Server-Connection assigned.
<original german message>
Test_Connection: EDBConnectionError
at $004A12CA
Anmeldung falsch.
Fehler bei der Anmeldung für den Benutzer 'musicones'. Ursache: Keiner vertrauten SQL Server-Verbindung zugeordnet.
I'm a bit helpless. ADO doesn't work at all. I hope it's a small error using DBLIB, maybe wrong declaration of DBname?
Database := 'test_Data'; <-- maybe wrong here, I tried different but no reaction at all
HostName := 'localhost';
Password := 'xxxxxxx';
Port := 0;
UserName := 'musicones';
thanks a lot till now and regards
musicones
Hi folks,
after a hard work I found out the reason for my connection problems, it su..s.
OK, here we are for all others who might find that there isn't enough good information:
Database := 'test'; <- ONLY Alias name, not filename
HostName := 'myPCNameInNetwork';
Password := 'sadmin';
Port := 0;
UserName := 'sa';
On MSSQL Installation I could choose the authentication type. I used Windows authentication. OK for MSSQL not OK for Zeos, why ever, I couldn't get it work.
Changing it to mixed authentication, username and password or Windows, I could connect to MSSQL test DB, after changing from filename to alias DB name also.
You see, not real a big problem but took me about one week to find the solution, what the hell...
regards
musicones
after a hard work I found out the reason for my connection problems, it su..s.
OK, here we are for all others who might find that there isn't enough good information:
Database := 'test'; <- ONLY Alias name, not filename
HostName := 'myPCNameInNetwork';
Password := 'sadmin';
Port := 0;
UserName := 'sa';
On MSSQL Installation I could choose the authentication type. I used Windows authentication. OK for MSSQL not OK for Zeos, why ever, I couldn't get it work.
Changing it to mixed authentication, username and password or Windows, I could connect to MSSQL test DB, after changing from filename to alias DB name also.
You see, not real a big problem but took me about one week to find the solution, what the hell...
regards
musicones
Hi,
I tried this but I keep getting the error message
[Microsoft][ODBC Driver Manager] Der Datenquellenname wurde nicht gefunden, und es wurde kein Standardtreiber angegeben.
which translates roughly into
[Microsoft][ODBC Driver Manager] name of data source not found, and no standard driver entered
I use XP home.
Any ideas?
ste_ba
I tried this but I keep getting the error message
[Microsoft][ODBC Driver Manager] Der Datenquellenname wurde nicht gefunden, und es wurde kein Standardtreiber angegeben.
which translates roughly into
[Microsoft][ODBC Driver Manager] name of data source not found, and no standard driver entered
I use XP home.
Any ideas?
ste_ba
Made it! :-)
After I entered the ODBC data source, I discovered that I had to enter more than the database name as "database" property. The button next to the property led me to a wizard which generated the property value
However, I wonder how I should know what my customers will have to enter here, especially for "Provider". Is it always SQLOLEDB.1?
ste_ba
After I entered the ODBC data source, I discovered that I had to enter more than the database name as "database" property. The button next to the property led me to a wizard which generated the property value
Code: Select all
Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=MY_DB_NAME;Data Source=MY_PC_NAME
ste_ba