Showing posts with label foxpro. Show all posts
Showing posts with label foxpro. Show all posts

Monday, February 20, 2012

Linked server to FoxPro - permissions

I set up a linked server and it is working great.....when i'm logged in
under the same account that SQL runs under (also the account that i set up
the linked server as, if it matters). However, if i'm logged in as anyone
else i get the error:
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'VFPOLEDB' reported an error. Access denied.
OLE DB error trace [OLE/DB Provider 'VFPOLEDB' IUnknown::QueryInterface
returned 0x80070005: Access denied.].
It even does this with my account (full sql and domain admin). Help!you'd want to specify the remote login and how local login is mapped.
--Everyone connects via Admin db user
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
--
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:AF38060C-1BCB-4A83-86BE-A04068521894@.microsoft.com...
>I set up a linked server and it is working great.....when i'm logged in
> under the same account that SQL runs under (also the account that i set up
> the linked server as, if it matters). However, if i'm logged in as anyone
> else i get the error:
> Server: Msg 7399, Level 16, State 1, Line 1
> OLE DB provider 'VFPOLEDB' reported an error. Access denied.
> OLE DB error trace [OLE/DB Provider 'VFPOLEDB' IUnknown::QueryInterface
> returned 0x80070005: Access denied.].
> It even does this with my account (full sql and domain admin). Help!|||doesn't that map logins from sql server to remote(foxpro) logins? I don't
believe there is any sort of security on the foxpro database (not even sure
that they're capable of that).
If I'm wrong about any of that, please let me know.|||ha can help me out in my prob ...? check out Ravi --> primary Key falling
short sorry for this ..!|||most jet engine has an 'admin' login.
either:
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
or
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, NULL, NULL
should work for vfp. The key is in the 'false' parameter. It tells sql not
use the current executing user credential for accessing vfp.
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:6D4C43C2-8EFA-4109-BF77-4D1ADE7746D6@.microsoft.com...
> doesn't that map logins from sql server to remote(foxpro) logins? I don't
> believe there is any sort of security on the foxpro database (not even
> sure
> that they're capable of that).
> If I'm wrong about any of that, please let me know.|||Tried both, to no avail.........any other ideas?
Thanks!
"oj" wrote:
> most jet engine has an 'admin' login.
> either:
> EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
> or
> EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, NULL, NULL
> should work for vfp. The key is in the 'false' parameter. It tells sql not
> use the current executing user credential for accessing vfp.
>
> --
> -oj|||you're not doing this, i hope.
http://support.microsoft.com/kb/241267
--
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:2B4D4370-6256-4A77-B713-D0EC77326898@.microsoft.com...
> Tried both, to no avail.........any other ideas?
> Thanks!
> "oj" wrote:
>> most jet engine has an 'admin' login.
>> either:
>> EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
>> or
>> EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, NULL, NULL
>> should work for vfp. The key is in the 'false' parameter. It tells sql
>> not
>> use the current executing user credential for accessing vfp.
>>
>> --
>> -oj
>|||Nope. The DBC is on the SQL server.
"oj" wrote:
> you're not doing this, i hope.
> http://support.microsoft.com/kb/241267
> --
> -oj
>|||Is the folder where VFP resides shared to _everyone_.
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:5F20399B-6EE4-43E3-A277-919F2B04C563@.microsoft.com...
> Nope. The DBC is on the SQL server.
> "oj" wrote:
>> you're not doing this, i hope.
>> http://support.microsoft.com/kb/241267
>> --
>> -oj
>>|||Yes, I gave everyone full control down to the folder. It is not shared
however.
"oj" wrote:
> Is the folder where VFP resides shared to _everyone_.
>
> --
> -oj
>|||please post your addlinkedserver query. perhaps, you want to update your
driver or use different provider.
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:AD263E8B-498C-4D0F-90C6-25E919EFD2DF@.microsoft.com...
> Yes, I gave everyone full control down to the folder. It is not shared
> however.
> "oj" wrote:
>> Is the folder where VFP resides shared to _everyone_.
>>
>> --
>> -oj|||I'm actually using the gui to do it, but i'll list the info:
General Tab:
Provider:MS OLE DB Provider for Visual FoxPro
Data source: d:\geoffTest\test.dbc
Provider string: VFPOLEDB.1
On the security tab:
No mappings defined, all will be made without using a security context
Server Options tab:
Data Access is checked
Use Remote Collation is checked
The VFP driver on the machine is current, I just updated it last week or so.
Thanks for keeping with this!
"oj" wrote:
> please post your addlinkedserver query. perhaps, you want to update your
> driver or use different provider.
>
> --
> -oj
>|||try using version independent vfp provider (i.e. no .1).
Provider string: VFPOLEDB
also, specify "remote user" as "admin"
--
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:7DB51115-381F-452A-BEC9-C51FB30605ED@.microsoft.com...
> I'm actually using the gui to do it, but i'll list the info:
> General Tab:
> Provider:MS OLE DB Provider for Visual FoxPro
> Data source: d:\geoffTest\test.dbc
> Provider string: VFPOLEDB.1
> On the security tab:
> No mappings defined, all will be made without using a security context
> Server Options tab:
> Data Access is checked
> Use Remote Collation is checked
>
> The VFP driver on the machine is current, I just updated it last week or
> so.
> Thanks for keeping with this!
>
> "oj" wrote:
>> please post your addlinkedserver query. perhaps, you want to update your
>> driver or use different provider.
>>
>> --
>> -oj|||I tried variations of both, but nothing seemed to change. I tried using the
mapping local logins to the remote login of admin, and also mapping undefined
logins to admin.
Changing the driver didn't seem to affect anything, it still queries ok when
logged in under the sql account
"oj" wrote:
> try using version independent vfp provider (i.e. no .1).
> Provider string: VFPOLEDB
> also, specify "remote user" as "admin"
> --
> -oj
>
> "ddavis" <ddavis@.discussions.microsoft.com> wrote in message
> news:7DB51115-381F-452A-BEC9-C51FB30605ED@.microsoft.com...
> > I'm actually using the gui to do it, but i'll list the info:
> >
> > General Tab:
> > Provider:MS OLE DB Provider for Visual FoxPro
> > Data source: d:\geoffTest\test.dbc
> > Provider string: VFPOLEDB.1
> >
> > On the security tab:
> > No mappings defined, all will be made without using a security context
> >
> > Server Options tab:
> > Data Access is checked
> > Use Remote Collation is checked
> >
> >
> > The VFP driver on the machine is current, I just updated it last week or
> > so.
> >
> > Thanks for keeping with this!
> >
> >
> > "oj" wrote:
> >
> >> please post your addlinkedserver query. perhaps, you want to update your
> >> driver or use different provider.
> >>
> >>
> >> --
> >> -oj
> >>
>
>|||i have no problem running this.
exec sp_addlinkedserver
'myVFP',
'',
'MSDASQL',
null,
null,
'Driver=Microsoft Visual Foxpro Driver;
DBQ=;
SourceType=DBC;
SourceDB=d:\geoffTest\test.dbc'
exec sp_addlinkedsrvlogin 'myVFP',false,null,'Admin',null
select * from openquery(myVFP,'select * from your_dbf')x
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:EB3FD65A-162D-46D0-8CD5-8AB1CC7708B5@.microsoft.com...
>I tried variations of both, but nothing seemed to change. I tried using
>the
> mapping local logins to the remote login of admin, and also mapping
> undefined
> logins to admin.
> Changing the driver didn't seem to affect anything, it still queries ok
> when
> logged in under the sql account
> "oj" wrote:
>> try using version independent vfp provider (i.e. no .1).
>> Provider string: VFPOLEDB
>> also, specify "remote user" as "admin"
>> --
>> -oj
>>
>> "ddavis" <ddavis@.discussions.microsoft.com> wrote in message
>> news:7DB51115-381F-452A-BEC9-C51FB30605ED@.microsoft.com...
>> > I'm actually using the gui to do it, but i'll list the info:
>> >
>> > General Tab:
>> > Provider:MS OLE DB Provider for Visual FoxPro
>> > Data source: d:\geoffTest\test.dbc
>> > Provider string: VFPOLEDB.1
>> >
>> > On the security tab:
>> > No mappings defined, all will be made without using a security context
>> >
>> > Server Options tab:
>> > Data Access is checked
>> > Use Remote Collation is checked
>> >
>> >
>> > The VFP driver on the machine is current, I just updated it last week
>> > or
>> > so.
>> >
>> > Thanks for keeping with this!
>> >
>> >
>> > "oj" wrote:
>> >
>> >> please post your addlinkedserver query. perhaps, you want to update
>> >> your
>> >> driver or use different provider.
>> >>
>> >>
>> >> --
>> >> -oj
>> >>
>>|||Awesome, using that syntax to create the linked server gave me a different
error message (never had to run the addlinkedserverlogin sproc):
Server: Msg 7313, Level 16, State 1, Line 1
Invalid schema or catalog specified for provider 'MSDASQL'.
OLE DB error trace [Non-interface error: Invalid schema or catalog
specified for the provider.].
Since I am using different query syntax(... instead of openquery) i played
around and came up with this query, which works:
select top 10 * from geoff.test..test1
before i only had the linked server name, but i needed to add the DBC name
in there as the catalog, and now it works! Out of curiosity, is this using
the foxpro driver or the ODBC driver? Either way, thank you so much for the
help!
"oj" wrote:
> i have no problem running this.
>
> exec sp_addlinkedserver
> 'myVFP',
> '',
> 'MSDASQL',
> null,
> null,
> 'Driver=Microsoft Visual Foxpro Driver;
> DBQ=;
> SourceType=DBC;
> SourceDB=d:\geoffTest\test.dbc'
> exec sp_addlinkedsrvlogin 'myVFP',false,null,'Admin',null
> select * from openquery(myVFP,'select * from your_dbf')x
>
>
> --
> -oj
>
> "ddavis" <ddavis@.discussions.microsoft.com> wrote in message
> news:EB3FD65A-162D-46D0-8CD5-8AB1CC7708B5@.microsoft.com...
> >I tried variations of both, but nothing seemed to change. I tried using
> >the
> > mapping local logins to the remote login of admin, and also mapping
> > undefined
> > logins to admin.
> >
> > Changing the driver didn't seem to affect anything, it still queries ok
> > when
> > logged in under the sql account
> >
> > "oj" wrote:
> >
> >> try using version independent vfp provider (i.e. no .1).
> >>
> >> Provider string: VFPOLEDB
> >>
> >> also, specify "remote user" as "admin"
> >>
> >> --
> >> -oj
> >>
> >>
> >>
> >> "ddavis" <ddavis@.discussions.microsoft.com> wrote in message
> >> news:7DB51115-381F-452A-BEC9-C51FB30605ED@.microsoft.com...
> >> > I'm actually using the gui to do it, but i'll list the info:
> >> >
> >> > General Tab:
> >> > Provider:MS OLE DB Provider for Visual FoxPro
> >> > Data source: d:\geoffTest\test.dbc
> >> > Provider string: VFPOLEDB.1
> >> >
> >> > On the security tab:
> >> > No mappings defined, all will be made without using a security context
> >> >
> >> > Server Options tab:
> >> > Data Access is checked
> >> > Use Remote Collation is checked
> >> >
> >> >
> >> > The VFP driver on the machine is current, I just updated it last week
> >> > or
> >> > so.
> >> >
> >> > Thanks for keeping with this!
> >> >
> >> >
> >> > "oj" wrote:
> >> >
> >> >> please post your addlinkedserver query. perhaps, you want to update
> >> >> your
> >> >> driver or use different provider.
> >> >>
> >> >>
> >> >> --
> >> >> -oj
> >> >>
> >>
> >>
> >>
>
>|||glad to hear it works for you. it's using fox driver.
--
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:CD8A20E1-5B31-477A-9CC7-03DB819A556E@.microsoft.com...
> Awesome, using that syntax to create the linked server gave me a different
> error message (never had to run the addlinkedserverlogin sproc):
> Server: Msg 7313, Level 16, State 1, Line 1
> Invalid schema or catalog specified for provider 'MSDASQL'.
> OLE DB error trace [Non-interface error: Invalid schema or catalog
> specified for the provider.].
> Since I am using different query syntax(... instead of openquery) i played
> around and came up with this query, which works:
> select top 10 * from geoff.test..test1
> before i only had the linked server name, but i needed to add the DBC name
> in there as the catalog, and now it works! Out of curiosity, is this
> using
> the foxpro driver or the ODBC driver? Either way, thank you so much for
> the
> help!
>

Linked server to FoxPro - permissions

you'd want to specify the remote login and how local login is mapped.
--Everyone connects via Admin db user
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:AF38060C-1BCB-4A83-86BE-A04068521894@.microsoft.com...
>I set up a linked server and it is working great.....when i'm logged in
> under the same account that SQL runs under (also the account that i set up
> the linked server as, if it matters). However, if i'm logged in as anyone
> else i get the error:
> Server: Msg 7399, Level 16, State 1, Line 1
> OLE DB provider 'VFPOLEDB' reported an error. Access denied.
> OLE DB error trace [OLE/DB Provider 'VFPOLEDB' IUnknown::QueryInterfac
e
> returned 0x80070005: Access denied.].
> It even does this with my account (full sql and domain admin). Help!I set up a linked server and it is working great.....when i'm logged in
under the same account that SQL runs under (also the account that i set up
the linked server as, if it matters). However, if i'm logged in as anyone
else i get the error:
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'VFPOLEDB' reported an error. Access denied.
OLE DB error trace [OLE/DB Provider 'VFPOLEDB' IUnknown::QueryInterface
returned 0x80070005: Access denied.].
It even does this with my account (full sql and domain admin). Help!|||you'd want to specify the remote login and how local login is mapped.
--Everyone connects via Admin db user
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:AF38060C-1BCB-4A83-86BE-A04068521894@.microsoft.com...
>I set up a linked server and it is working great.....when i'm logged in
> under the same account that SQL runs under (also the account that i set up
> the linked server as, if it matters). However, if i'm logged in as anyone
> else i get the error:
> Server: Msg 7399, Level 16, State 1, Line 1
> OLE DB provider 'VFPOLEDB' reported an error. Access denied.
> OLE DB error trace [OLE/DB Provider 'VFPOLEDB' IUnknown::QueryInterfac
e
> returned 0x80070005: Access denied.].
> It even does this with my account (full sql and domain admin). Help!|||doesn't that map logins from sql server to remote(foxpro) logins? I don't
believe there is any sort of security on the foxpro database (not even sure
that they're capable of that).
If I'm wrong about any of that, please let me know.|||doesn't that map logins from sql server to remote(foxpro) logins? I don't
believe there is any sort of security on the foxpro database (not even sure
that they're capable of that).
If I'm wrong about any of that, please let me know.|||ha can help me out in my prob ...? check out Ravi --> primary Key falling
short sorry for this ..!|||ha can help me out in my prob ...? check out Ravi --> primary Key falling
short sorry for this ..!|||most jet engine has an 'admin' login.
either:
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
or
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, NULL, NULL
should work for vfp. The key is in the 'false' parameter. It tells sql not
use the current executing user credential for accessing vfp.
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:6D4C43C2-8EFA-4109-BF77-4D1ADE7746D6@.microsoft.com...
> doesn't that map logins from sql server to remote(foxpro) logins? I don't
> believe there is any sort of security on the foxpro database (not even
> sure
> that they're capable of that).
> If I'm wrong about any of that, please let me know.|||most jet engine has an 'admin' login.
either:
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
or
EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, NULL, NULL
should work for vfp. The key is in the 'false' parameter. It tells sql not
use the current executing user credential for accessing vfp.
-oj
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:6D4C43C2-8EFA-4109-BF77-4D1ADE7746D6@.microsoft.com...
> doesn't that map logins from sql server to remote(foxpro) logins? I don't
> believe there is any sort of security on the foxpro database (not even
> sure
> that they're capable of that).
> If I'm wrong about any of that, please let me know.|||Tried both, to no avail.........any other ideas?
Thanks!
"oj" wrote:

> most jet engine has an 'admin' login.
> either:
> EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, 'Admin', NULL
> or
> EXEC sp_addlinkedsrvlogin 'linked_server', 'false', NULL, NULL, NULL
> should work for vfp. The key is in the 'false' parameter. It tells sql not
> use the current executing user credential for accessing vfp.
>
> --
> -oj

Linked server to foxpro - order by causing error

We're playing with linked servers to hopefully help us ease the migration
from fox to sql. The first problem i've run into is with the "order by"
clause. When running it against our test table, i get the following error:
An error occurred while preparing a query for execution against OLE DB
provider 'VFPOLEDB'.
[OLE/DB provider returned message: Syntax error.]
OLE DB error trace [OLE/DB Provider 'VFPOLEDB' ICommandPrepare: [Ton
gue]
repare returned 0x80040e14].
query:
select [year],uniqueid as b from geoff...test1
where uniqueid > 340000
order by b
uniqueid is just an identity (or equivalent). I've tried several variations,
ordered on different columns, not used an alias, etc.
This works:
select [year] from geoff...test1
where uniqueid between 340000 and 400000
group by [year]
order by [year] desc
Anyone have any ideas?
Thanks in advanced for any replies, and let me know if there is a better
group for me to post this in.Hi D,
First, be sure you have the latest FoxPro and Visual FoxPro OLE DB data
provider, downloadable from msdn.microsoft.com/vfoxpro/downloads/updates.
I created a table in the VFP Northwind database called TestYear (UniqueID
Integer AutoInc, Year Integer) and added a few rows. I issued the following
query with no problems at all:
Select [Year], UniqueID As B From VFP_Northwind...TestYear
Where UniqueID > 3
Order By B
I was also successful when the brackets around Year were removed. VFP is
rather forgiving when reserved words are used.
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
cindy@.cindywinegarden.com
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:70406F79-1ACA-4CD6-98C5-AD31173EB4E1@.microsoft.com...
> We're playing with linked servers to hopefully help us ease the migration
> from fox to sql. The first problem i've run into is with the "order by"
> clause. When running it against our test table, i get the following error:
> An error occurred while preparing a query for execution against OLE DB
> provider 'VFPOLEDB'.
> [OLE/DB provider returned message: Syntax error.]
> OLE DB error trace [OLE/DB Provider 'VFPOLEDB' ICommandPrepare: [T
ongue]
> repare returned 0x80040e14].
>
> query:
> select [year],uniqueid as b from geoff...test1
> where uniqueid > 340000
> order by b
> uniqueid is just an identity (or equivalent). I've tried several
> variations,
> ordered on different columns, not used an alias, etc.
> This works:
> select [year] from geoff...test1
> where uniqueid between 340000 and 400000
> group by [year]
> order by [year] desc|||Hi D,
First, be sure you have the latest FoxPro and Visual FoxPro OLE DB data
provider, downloadable from msdn.microsoft.com/vfoxpro/downloads/updates.
I created a table in the VFP Northwind database called TestYear (UniqueID
Integer AutoInc, Year Integer) and added a few rows. I issued the following
query with no problems at all:
Select [Year], UniqueID As B From VFP_Northwind...TestYear
Where UniqueID > 3
Order By B
I was also successful when the brackets around Year were removed. VFP is
rather forgiving when reserved words are used.
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
cindy@.cindywinegarden.com
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:70406F79-1ACA-4CD6-98C5-AD31173EB4E1@.microsoft.com...
> We're playing with linked servers to hopefully help us ease the migration
> from fox to sql. The first problem i've run into is with the "order by"
> clause. When running it against our test table, i get the following error:
> An error occurred while preparing a query for execution against OLE DB
> provider 'VFPOLEDB'.
> [OLE/DB provider returned message: Syntax error.]
> OLE DB error trace [OLE/DB Provider 'VFPOLEDB' ICommandPrepare: [T
ongue]
> repare returned 0x80040e14].
>
> query:
> select [year],uniqueid as b from geoff...test1
> where uniqueid > 340000
> order by b
> uniqueid is just an identity (or equivalent). I've tried several
> variations,
> ordered on different columns, not used an alias, etc.
> This works:
> select [year] from geoff...test1
> where uniqueid between 340000 and 400000
> group by [year]
> order by [year] desc

Linked server to foxpro - order by causing error

We're playing with linked servers to hopefully help us ease the migration
from fox to sql. The first problem i've run into is with the "order by"
clause. When running it against our test table, i get the following error:
An error occurred while preparing a query for execution against OLE DB
provider 'VFPOLEDB'.
[OLE/DB provider returned message: Syntax error.]
OLE DB error trace [OLE/DB Provider 'VFPOLEDB' ICommandPrepare: [Tongue]
repare returned 0x80040e14].
query:
select [year],uniqueid as b from geoff...test1
where uniqueid > 340000
order by b
uniqueid is just an identity (or equivalent). I've tried several variations,
ordered on different columns, not used an alias, etc.
This works:
select [year] from geoff...test1
where uniqueid between 340000 and 400000
group by [year]
order by [year] desc
Anyone have any ideas?
Thanks in advanced for any replies, and let me know if there is a better
group for me to post this in.Hi D,
First, be sure you have the latest FoxPro and Visual FoxPro OLE DB data
provider, downloadable from msdn.microsoft.com/vfoxpro/downloads/updates.
I created a table in the VFP Northwind database called TestYear (UniqueID
Integer AutoInc, Year Integer) and added a few rows. I issued the following
query with no problems at all:
Select [Year], UniqueID As B From VFP_Northwind...TestYear
Where UniqueID > 3
Order By B
I was also successful when the brackets around Year were removed. VFP is
rather forgiving when reserved words are used.
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
cindy@.cindywinegarden.com
"ddavis" <ddavis@.discussions.microsoft.com> wrote in message
news:70406F79-1ACA-4CD6-98C5-AD31173EB4E1@.microsoft.com...
> We're playing with linked servers to hopefully help us ease the migration
> from fox to sql. The first problem i've run into is with the "order by"
> clause. When running it against our test table, i get the following error:
> An error occurred while preparing a query for execution against OLE DB
> provider 'VFPOLEDB'.
> [OLE/DB provider returned message: Syntax error.]
> OLE DB error trace [OLE/DB Provider 'VFPOLEDB' ICommandPrepare: [Tongue]
> repare returned 0x80040e14].
>
> query:
> select [year],uniqueid as b from geoff...test1
> where uniqueid > 340000
> order by b
> uniqueid is just an identity (or equivalent). I've tried several
> variations,
> ordered on different columns, not used an alias, etc.
> This works:
> select [year] from geoff...test1
> where uniqueid between 340000 and 400000
> group by [year]
> order by [year] desc

Linked Server to Foxpro

I am trying to setup a linked server from server1 (SQL Server) to Foxpro DBC
files on server2 and I get the following error:
Error 7399: OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80004005: ].
I have checked that the account that SQL Server runs as has full permissions
on the folder where the DBC file lives.
I can also setup an ODBC connection and use MS Query to access the data but
SQL will not see it or give me any meaningful error!
If I copy the Foxpro files locally onto the SQL server then it is fine.
Once I have this working then I need to figure out how to create the
triggers to populate the Foxpro DBs!!
Any advice would be much appreciated.
Regards
James
Hi James,
When there are problems on a remote machine that don't show on the SQL
Server it's usually a problem of permissions. You said below that the SQL
Server has permissions on the remote machine, but maybe it's not working as
you expect.
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@.msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"JamesA" <JamesA@.discussions.microsoft.com> wrote in message
news:B2472332-38A7-45D3-B2B8-F1F49DB277AB@.microsoft.com...
> I have checked that the account that SQL Server runs as has full
> permissions
> on the folder where the DBC file lives.
> I can also setup an ODBC connection and use MS Query to access the data
> but
> SQL will not see it or give me any meaningful error!
> If I copy the Foxpro files locally onto the SQL server then it is fine.
|||Hi Cindy,
I looked at the SQL Server service on my server and it is running as
DOMAIN\SQLAdmin and on the folder where the Foxpro files live the account
DOMAIN\SQLAdmin has full permissions and even looking at the effective
permisions on the DBC file, this account has full permissions. Any
suggestions how I can test to see if this is a permissions problem?
Regards
James
"Cindy Winegarden" wrote:

> Hi James,
> When there are problems on a remote machine that don't show on the SQL
> Server it's usually a problem of permissions. You said below that the SQL
> Server has permissions on the remote machine, but maybe it's not working as
> you expect.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@.msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
> "JamesA" <JamesA@.discussions.microsoft.com> wrote in message
> news:B2472332-38A7-45D3-B2B8-F1F49DB277AB@.microsoft.com...
>
>

Linked Server to Foxpro

I am trying to setup a linked server from server1 (SQL Server) to Foxpro DBC
files on server2 and I get the following error:
Error 7399: OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80004005: ].
I have checked that the account that SQL Server runs as has full permissions
on the folder where the DBC file lives.
I can also setup an ODBC connection and use MS Query to access the data but
SQL will not see it or give me any meaningful error!
If I copy the Foxpro files locally onto the SQL server then it is fine.
Once I have this working then I need to figure out how to create the
triggers to populate the Foxpro DBs!!
Any advice would be much appreciated.
Regards
JamesHi James,
When there are problems on a remote machine that don't show on the SQL
Server it's usually a problem of permissions. You said below that the SQL
Server has permissions on the remote machine, but maybe it's not working as
you expect.
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@.msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"JamesA" <JamesA@.discussions.microsoft.com> wrote in message
news:B2472332-38A7-45D3-B2B8-F1F49DB277AB@.microsoft.com...
> I have checked that the account that SQL Server runs as has full
> permissions
> on the folder where the DBC file lives.
> I can also setup an ODBC connection and use MS Query to access the data
> but
> SQL will not see it or give me any meaningful error!
> If I copy the Foxpro files locally onto the SQL server then it is fine.|||Hi Cindy,
I looked at the SQL Server service on my server and it is running as
DOMAIN\SQLAdmin and on the folder where the Foxpro files live the account
DOMAIN\SQLAdmin has full permissions and even looking at the effective
permisions on the DBC file, this account has full permissions. Any
suggestions how I can test to see if this is a permissions problem?
Regards
James
"Cindy Winegarden" wrote:
> Hi James,
> When there are problems on a remote machine that don't show on the SQL
> Server it's usually a problem of permissions. You said below that the SQL
> Server has permissions on the remote machine, but maybe it's not working as
> you expect.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@.msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
> "JamesA" <JamesA@.discussions.microsoft.com> wrote in message
> news:B2472332-38A7-45D3-B2B8-F1F49DB277AB@.microsoft.com...
> > I have checked that the account that SQL Server runs as has full
> > permissions
> > on the folder where the DBC file lives.
> >
> > I can also setup an ODBC connection and use MS Query to access the data
> > but
> > SQL will not see it or give me any meaningful error!
> >
> > If I copy the Foxpro files locally onto the SQL server then it is fine.
>
>

Linked Server to Foxpro

I am trying to setup a linked server from server1 (SQL Server) to Foxpro DBC
files on server2 and I get the following error:
Error 7399: OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80004005: ].
I have checked that the account that SQL Server runs as has full permissions
on the folder where the DBC file lives.
I can also setup an ODBC connection and use MS Query to access the data but
SQL will not see it or give me any meaningful error!
If I copy the Foxpro files locally onto the SQL server then it is fine.
Once I have this working then I need to figure out how to create the
triggers to populate the Foxpro DBs!!
Any advice would be much appreciated.
Regards
JamesHi James,
When there are problems on a remote machine that don't show on the SQL
Server it's usually a problem of permissions. You said below that the SQL
Server has permissions on the remote machine, but maybe it's not working as
you expect.
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
cindy_winegarden@.msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"JamesA" <JamesA@.discussions.microsoft.com> wrote in message
news:B2472332-38A7-45D3-B2B8-F1F49DB277AB@.microsoft.com...
> I have checked that the account that SQL Server runs as has full
> permissions
> on the folder where the DBC file lives.
> I can also setup an ODBC connection and use MS Query to access the data
> but
> SQL will not see it or give me any meaningful error!
> If I copy the Foxpro files locally onto the SQL server then it is fine.|||Hi Cindy,
I looked at the SQL Server service on my server and it is running as
DOMAIN\SQLAdmin and on the folder where the Foxpro files live the account
DOMAIN\SQLAdmin has full permissions and even looking at the effective
permisions on the DBC file, this account has full permissions. Any
suggestions how I can test to see if this is a permissions problem?
Regards
James
"Cindy Winegarden" wrote:

> Hi James,
> When there are problems on a remote machine that don't show on the SQL
> Server it's usually a problem of permissions. You said below that the SQL
> Server has permissions on the remote machine, but maybe it's not working a
s
> you expect.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
> cindy_winegarden@.msn.com www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
> "JamesA" <JamesA@.discussions.microsoft.com> wrote in message
> news:B2472332-38A7-45D3-B2B8-F1F49DB277AB@.microsoft.com...
>
>