Board index » delphi » Windows 2000, SQL Server 2000 and ADO Problem?
Garry
![]() Delphi Developer |
Sun, 27 Jun 2004 07:04:54 GMT
|
Garry
![]() Delphi Developer |
Sun, 27 Jun 2004 07:04:54 GMT
Windows 2000, SQL Server 2000 and ADO Problem?Hello, We have an application dev. in Delphi 5 that operates fine in Win. 95-98 However when we try to run the app in Windows 2000 using ADO SQL 2000 on We get the following error message "Cannot open database requested login Any ideas? |
Alain Quesne
![]() Delphi Developer |
Sun, 27 Jun 2004 11:00:26 GMT
Re:Windows 2000, SQL Server 2000 and ADO Problem?What kind of security are you using? (SQL Server authentication or Integrated NT Security) -- Alain Quesnel Quote"Garry" <gar...@inhousepension.com> wrote in message Quote
|
Garr
![]() Delphi Developer |
Mon, 28 Jun 2004 01:45:52 GMT
Re:Windows 2000, SQL Server 2000 and ADO Problem?SQL Server authentication. Quote"Alain Quesnel" <cinqsanss...@compuserve.com> wrote in message Quote> What kind of security are you using? (SQL Server authentication or |
Alain Quesne
![]() Delphi Developer |
Mon, 28 Jun 2004 01:53:13 GMT
Re:Windows 2000, SQL Server 2000 and ADO Problem?Are you using a TADOConnection component? It is difficult to answer with the little information you gave us. How does your application try to log on? Is the user prompted to supply username and password? -- Alain Quesnel Quote"Garry" <gar...@inhousepension.com> wrote in message Quote> SQL Server authentication. |
Garr
![]() Delphi Developer |
Mon, 28 Jun 2004 20:22:20 GMT
Re:Windows 2000, SQL Server 2000 and ADO Problem?Thanks Alain, We are using TADOConnection and TADODataSet components. The following connection string was used for a database named PEN_ASSIST ADOConnect.Connectionstring := Quote"Alain Quesnel" <cinqsanss...@compuserve.com> wrote in message Quote> Are you using a TADOConnection component? It is difficult to answer with |
Alain Quesne
![]() Delphi Developer |
Mon, 28 Jun 2004 23:41:58 GMT
Re:Windows 2000, SQL Server 2000 and ADO Problem?I see in your connection string that you are using "sa" as a user. For a "final" release, I would suggest getting rid of that. Also, your server name (" DAta Source") and database name ("Initial Catalog") are hard coded into the connection string. You might want to make those variables, in case you change the location and/or name of your database at a client location (the name of the server is likely to change). Is TADOConnection.LoginPrompt set to False? -- Alain Quesnel Quote"Garry" <gar...@inhousepension.com> wrote in message Quote> Thanks Alain, |
1. ADO Refresh with Ado Table and ADO Query on a network application with SQL Server 2000
2. Controlling of Cache with SQL Server 7 and Delphi on Windows 2000 server
3. windows 2000 server to connect SQL server 6.5
4. Upgrade from Access 2000 to SQL Server 2000 - table values are padded with spaces
5. SQL server 2000 SQL problem - TOP doesn't work
7. Error with Win2000, SQL Server 2000 and ADO
8. Delphi 5 - ADO - MS SQL Server 2000