Executing SQL programmatically [message #25149] |
Tue, 09 January 2007 09:02 |
|
Hi!
I'm in the process of migrating from WTP to DTP. The problem is that
some easy to use API seems to be missing for connecting to a database
and executing some sql statements contained in a file.
Any ideas where I should start looking? I don't want to start messing
around with profile name or ids or other sort of settings. In WTP I had
a ConnectionSelectionDialog which I could use to obtain a ConnectionInfo
just having a Shell.
Cu, Gunnar
--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
|
|
|
|
Re: Executing SQL programmatically [message #25310 is a reply to message #25149] |
Thu, 11 January 2007 02:59 |
Eclipse User |
|
|
|
Originally posted by: hcao.sybase.com
Hi Gunnar,
In DTP, there's a similiar ConnectionInfoDialog which can give you an
instance of ISQLEditorConnectionInfo. This dialog can be invoked via the
context menu "Set connection info" and the ISQLEditorConnectionInfo object
will be associated with the sql file. Is this what you're looking for?
Regards,
Max (Hui) Cao
Sybase Inc.
"Gunnar Wagenknecht" <gunnar@wagenknecht.org> wrote in message
news:envlmo$vqv$1@utils.eclipse.org...
> Hi!
>
> I'm in the process of migrating from WTP to DTP. The problem is that
> some easy to use API seems to be missing for connecting to a database
> and executing some sql statements contained in a file.
>
> Any ideas where I should start looking? I don't want to start messing
> around with profile name or ids or other sort of settings. In WTP I had
> a ConnectionSelectionDialog which I could use to obtain a ConnectionInfo
> just having a Shell.
>
> Cu, Gunnar
>
> --
> Gunnar Wagenknecht
> gunnar@wagenknecht.org
> http://wagenknecht.org/
|
|
|
Re: Executing SQL programmatically [message #25467 is a reply to message #25310] |
Thu, 11 January 2007 20:04 |
|
Hui Cao wrote:
> In DTP, there's a similiar ConnectionInfoDialog which can give you an
> instance of ISQLEditorConnectionInfo. This dialog can be invoked via the
> context menu "Set connection info" and the ISQLEditorConnectionInfo object
> will be associated with the sql file. Is this what you're looking for?
Yes, probably. I'll comment in bug 170130.
Cu, Gunnar
--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
|
|
|
|
|
Re: Executing SQL programmatically [message #583955 is a reply to message #25310] |
Thu, 11 January 2007 20:04 |
|
Hui Cao wrote:
> In DTP, there's a similiar ConnectionInfoDialog which can give you an
> instance of ISQLEditorConnectionInfo. This dialog can be invoked via the
> context menu "Set connection info" and the ISQLEditorConnectionInfo object
> will be associated with the sql file. Is this what you're looking for?
Yes, probably. I'll comment in bug 170130.
Cu, Gunnar
--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
|
|
|
Powered by
FUDForum. Page generated in 0.02768 seconds