Re: Using a connection opened by another application.

From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 01/06/05


Date: Thu, 6 Jan 2005 10:04:58 -0800

We have established that this is a Sybase rig which works very much like SQL
Server.
Like SQL Server, Sybase databases can be "stopped" and "started" and might
be in the "stop" or "pause" mode when you try to connect. While I don't know
what interfaces Sybase supports, I do know that SQL DMO can start/stop the
server as can calls to Windows Services APIs. In some cases, it makes sense
to stop the server when the last application that needs it shuts down. In
this case, your code needs to figure out the conundrum: how do you know if
another application is loaded that intends to use the server (but might not
have a connection open). In a simple configuration, you can leave the server
running (and consuming resources) waiting for an application to use it.
However, this often makes users buy more RAM and faster systems to
compensate--an expensive solution to a problem that can be solved with a bit
of code (albeit complex).

hth

-- 
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
<ajitgoel@gmail.com> wrote in message 
news:1105005001.583138.241870@c13g2000cwb.googlegroups.com...
> Hi Everyone;
>
> I have a application (application 1) which is connected to a sybase
> database. I have another application (application 2) which will be
> issuing sql commands on the same database. However when I try to open a
> connection against the same database, I get the error "Request to
> Start/Stop Database denied.".
>
> What I want to do is:
>
> a) create and use a database connection, if the database is not
> started(either by application 1 or application 2).
> b) use the created database connection, if the database is
> started(either by application 1 or application 2).
>
> Pointers to how to go about doing this are welcome.
> Kind Regards;
> Ajit Goel
> 


Relevant Pages

  • RE: Backups have Shadow Copy Problems
    ... and restarted the server. ... suggested and changed the recovery model to simple on the one database called ... I understand the issue to be: the backup task failed ... You back up data from a volume that contains a Microsoft SQL Server ...
    (microsoft.public.windows.server.sbs)
  • Re: upsizing to sql 2005
    ... the word SERVER in it, ... You can access to the database by multiple means (Access, ... and how does it update the SQL database with the new records in Access? ... Query Name: Arcadia - ARC ...
    (microsoft.public.access.queries)
  • Re: Linked Tables in Access
    ... any use of SQL Passthru, Linked Tables or any other use of MDB / MDE ... server, or would I also need to convert *those* queries to passthrough ... I've been trying to understand why Access database files become corrupt. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Trouble Getting VS.Net 2003 WalkThroughs MSDE Connection
    ... Config Tool of SQL Server? ... > link to download the PUBs database. ... >>> Setup and they directed me to install MSDE and they attached a ...
    (microsoft.public.sqlserver.msde)
  • Re: Leveling by ID vs. "Standard"
    ... of this trade called Project Management. ... a database for the "Project Tables," ... to write reports on data from the server database. ... product supporting queries created with SQL. ...
    (microsoft.public.project)

Quantcast