Re: SQL Server connection

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 04/30/04


Date: Thu, 29 Apr 2004 21:40:28 -0500


>I just want to know why does the following error come up:
>"[DBNETLIB][Connection Open(Connect()].SQLServer does not exit or access denied". What does it mean Connection Open?
>
You are trying to connect to an SQL server that does not exist or is not running
or the network connection to it is down.

>Also I want verify my ADO Connection Linking. I usually, open my ADO Connection when the main form creates itself. I use the following convention:
>
>Try
> ADOConnection.Open;
>Except
>On E:Exception do
> ADOConnection.Close;
>End;
>
>Is this the standard way to connect the ADOConnection, if it is not how do you all connect the ADO to SQL Server 2000?
If you get an exception on opening you don't have to close. You want to
generate an error. Next your Except will trap any errors when your code is run
except when you run out of the IDE so it isn't good code.

--
Brian Bushay (TeamB)
Bbushay@NMPLS.com


Relevant Pages

  • Re: Field width
    ... In SQL server the following code will populate AdoDataset1 with the field ... Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: XP_CmdShell and OLE provider
    ... First is the Foxpro Oledb driver installed on the machine where SQL server is ... Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: Update Query
    ... >This syntax should work for SQL server and Access ... >Brian Bushay (TeamB) ... Prev by Date: ...
    (borland.public.delphi.database.ado)
  • RE: Help!!! [Microsoft][ODBC SQL Server Driver]Timeout expired
    ... If network connection issues occur, ... > SQL Server: Microsoft SQL Server 2000 ... > once this error occurrs, all other components which are using "transaction" ... > SQL Server Database. ...
    (microsoft.public.sqlserver.odbc)
  • Re: Avoid application hanging
    ... // valid network connection ... "Tim De Vogel" wrote: ... I developed a pocketpc application that connects directly to a SQL Server ...
    (microsoft.public.dotnet.framework.compactframework)