Re: Changing a view's connection
- From: "Anders Altberg" <anders.altberg>
- Date: Sun, 28 Oct 2007 16:59:02 +0100
USE MyView CONNSTRING cConnectionstring | nStatementHandle
CONNSTRING cConnectionString | nStatementHandle
Specifies a connection string for the ODBC data source. The
cConnectionString parameter can represent parameters normally passed using
either SQLCONNECT( ) or SQLSTRINGCONNECT( ). The nStatementHandle parameter
specifies a memory variable representing an existing statement handle from
an existing connection.
When you use cConnectionString, Visual FoxPro passes the connection string
to the remote view that you specify with SQLViewName, which then uses the
connection string to connect to the specified data source instead of using
any previously defined connection string. Passing an empty string ("")
displays the ODBC Data Source dialog box and makes it possible for the user
to select a data source.
-Anders
"Andy Trezise" <andy@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uAB%23Z6WGIHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
I have a number of views in my database that connect to SQL tables via a
connection (also defined in the database).
Is it possible to point the vew to another connection without having to
recreate it?
If I rename the original connection the view still seems to 'remember' the
parameters and link to the same SQL table etc.
I assume this daa s held in the database but it doesn't look as though I
can alter it (even is I 'use' the .DBC file).
.
- Follow-Ups:
- Re: Changing a view's connection
- From: Andy Trezise
- Re: Changing a view's connection
- References:
- Changing a view's connection
- From: Andy Trezise
- Changing a view's connection
- Prev by Date: copy and paste
- Next by Date: Re: View definition has been changed
- Previous by thread: Changing a view's connection
- Next by thread: Re: Changing a view's connection
- Index(es):
Relevant Pages
|