 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Luc Leduc Guest
|
Posted: Thu Jan 08, 2004 7:46 pm Post subject: DELPHI - INTERBASE - VIEW |
|
|
Hello!
I'm new to delphi and i try to connect my IBDataSet to a view in my
Interbase server.
When i made my connection to the database and choose the table in the
dataset generator, i only
see table in my server, not my view...
Is there any way to use a Remote Interbase Server Views with Delphi???
Thank you
Luc
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.559 / Virus Database: 351 - Release Date: 2004-01-07
|
|
| Back to top |
|
 |
Wayne Niddery [TeamB] Guest
|
Posted: Fri Jan 09, 2004 5:01 am Post subject: Re: DELPHI - INTERBASE - VIEW |
|
|
Luc Leduc wrote:
| Quote: |
I'm new to delphi and i try to connect my IBDataSet to a view in my
Interbase server.
When i made my connection to the database and choose the table in the
dataset generator, i only
see table in my server, not my view...
Is there any way to use a Remote Interbase Server Views with Delphi???
|
Yes. Doubleclick on the SelectSQL property of the IBDataset and manually
enter:
select * from MyView (replace MyView with name of one of your views).
You can now also rightclick on the IBDataset to bring up the dataset editor
which will generate update/insert/delete/refresh statements for you, however
the update/insert/delete SQL won't be valid unless you've provided triggers
on the view that make the view updateable (views are read-only by default).
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
|
| Back to top |
|
 |
Luc Leduc Guest
|
Posted: Mon Jan 12, 2004 5:00 pm Post subject: Re: DELPHI - INTERBASE - VIEW |
|
|
Hello!
Thank you very much for your help... I try what you tell me and it dosen't
works.. When i right click
to the IBDataset, i skip the error message and it work but when i active the
table it said Unknow Table. He
dont see my view...
I use EMS for creating Updatable view... it is ok? Or is there any
component who can do the job better than
Delphi?
Thanks...
"Wayne Niddery [TeamB]" <wniddery (AT) chaffaci (DOT) on.ca> a écrit dans le message de
news: 3ffe38ed$2 (AT) newsgroups (DOT) borland.com...
| Quote: | Luc Leduc wrote:
I'm new to delphi and i try to connect my IBDataSet to a view in my
Interbase server.
When i made my connection to the database and choose the table in the
dataset generator, i only
see table in my server, not my view...
Is there any way to use a Remote Interbase Server Views with Delphi???
Yes. Doubleclick on the SelectSQL property of the IBDataset and manually
enter:
select * from MyView (replace MyView with name of one of your views).
You can now also rightclick on the IBDataset to bring up the dataset
editor
which will generate update/insert/delete/refresh statements for you,
however
the update/insert/delete SQL won't be valid unless you've provided
triggers
on the view that make the view updateable (views are read-only by
default).
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.559 / Virus Database: 351 - Release Date: 2004-01-07
|
|
| Back to top |
|
 |
Wayne Niddery [TeamB] Guest
|
Posted: Mon Jan 12, 2004 5:51 pm Post subject: Re: DELPHI - INTERBASE - VIEW |
|
|
Luc Leduc wrote:
| Quote: |
Thank you very much for your help... I try what you tell me and it
dosen't works.. When i right click
to the IBDataset, i skip the error message and it work but when i
active the table it said Unknow Table. He
dont see my view...
I use EMS for creating Updatable view... it is ok? Or is there any
component who can do the job better than
Delphi?
|
Not sure what the problem is, I'm able to select from any of the views in
the sample employee.gdb database with an IBDataset and activate it (showing
results in grid). Try these and see if they work for you.
If you generate other SQL statements (insert, etc) and the view is not
updateable then you will get an error when you try to activate the
IBDataset, but it should be a "read-only" error, not an "unknown" error.
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
|
| Back to top |
|
 |
Luc Leduc Guest
|
Posted: Mon Jan 12, 2004 9:27 pm Post subject: Re: DELPHI - INTERBASE - VIEW |
|
|
Thank you very much... it's give me an idea where to look...
If i found the answert, i let you know...
Ciao!
Luc.
"Wayne Niddery [TeamB]" <wniddery (AT) chaffaci (DOT) on.ca> a écrit dans le message de
news: 4002dec2$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Luc Leduc wrote:
Thank you very much for your help... I try what you tell me and it
dosen't works.. When i right click
to the IBDataset, i skip the error message and it work but when i
active the table it said Unknow Table. He
dont see my view...
I use EMS for creating Updatable view... it is ok? Or is there any
component who can do the job better than
Delphi?
Not sure what the problem is, I'm able to select from any of the views in
the sample employee.gdb database with an IBDataset and activate it
(showing
results in grid). Try these and see if they work for you.
If you generate other SQL statements (insert, etc) and the view is not
updateable then you will get an error when you try to activate the
IBDataset, but it should be a "read-only" error, not an "unknown" error.
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.560 / Virus Database: 352 - Release Date: 2004-01-08
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|