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

Tuesday, March 27, 2012

addlinkedserver

hello,
can I connect to foxpro db in sql server? or good way to connect to it?
Please advice. Thanks.You can do it thru a linked server or OPENROWSET if you don't want to
set up a linked server
http://sqlservercode.blogspot.com/|||Thanks for the help.
I just found all the files I have are xx.dbf, it's MS FoxPro Table.
How to connect to these files? Please help.
"SQL" <denis.gobo@.gmail.com> wrote in message
news:1131459155.646894.287480@.g14g2000cwa.googlegroups.com...
> You can do it thru a linked server or OPENROWSET if you don't want to
> set up a linked server
> http://sqlservercode.blogspot.com/
>|||select * from openrowset('MSDASQL',
'Driver=Microsoft Visual FoxPro Driver;
SourceDB=d:\;
SourceType=DBF',
'select * from files ')
as a
http://sqlservercode.blogspot.com/|||Thanks for the help.
I got this error:
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Driver
does not support this function]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize
returned 0x80004005: ].
"SQL" <denis.gobo@.gmail.com> wrote in message
news:1131461422.449736.269480@.f14g2000cwb.googlegroups.com...
> select * from openrowset('MSDASQL',
> 'Driver=Microsoft Visual FoxPro Driver;
> SourceDB=d:\;
> SourceType=DBF',
> 'select * from files ')
> as a
> http://sqlservercode.blogspot.com/
>

Sunday, March 11, 2012

Adding records to an SQL table

I trying to add records from a table in DBF format (created with Visual FoxPro) into an SQL table created with SQL Server 2005.

I first converted the dbf file into an ascii file and then in the Query Editor in the SQL Server I typed:

use [c:\develope\sql\sqldata\psw.listener]

append from 'c:\develope\sql\data\listener.txt' type sdf

go

and then I pressed F5. I get an error that says:

Msg 911, Level 16, State 1, Line 1

Could not locate entry in sysdatabases for database 'c:\develope\sql\sqldata\psw.listener'. No entry found with that name. Make sure that the name is entered correctly.

I checked in the directory c:\develope\sql\sqldata\ and the file psw.mdf is there and when I look in the psw database, the table listener is also there.

Could someone tell me what is going wrong? Also, how do I append the whole dbf table onto an SQL table. there's about 6000 records.

Thanks.

Hi Bob,

the question as asked does not seem to be for the Integration Services forum.

You should be able to do this using SSIS though by using a data flow with a source to read rows from DBF and a destination component to load those rows into your SQL Server table.

HTH.

Friday, February 24, 2012

Adding FoxPro to SQL Cluster?

Hi all,
I am the SQL DBA for an organization. We have an active/passive 2-node SQL 2000 cluster running on Windows 2003 Server. So far, it has been very stable (knock wood).
Somebody here wants to add FoxPro as a clustered application onto our (failover) clustered database server. My gut tells me no, partially because I'm not sure if you can cluster FoxPro, and what the implications of running a FoxPro cluster are. Also, I
have not been able to find any information on the Web about implementing, administrating or coding for a FoxPro cluster, while the same information on SQL Server clustering is abundent.
My questions are:
1. Has anyone out there implemented a clustered FoxPro server?
2. If so, have you implemented this on the same cluster as your production SQL Server cluster?
3. Does anyone have any recommendations for or against this type of setup?
4. Can anyone point me in the direction of information that would make the case one way or the other about this proposed implementation?
Thanks in advance!
Cheers,
-m
My first question would be:
Why do they want to do this?
Why would they want to use a FoxPro application in an environment that is
designed for high availablitly?
Theoritically any application can be clustered but logically it does not
make sense to cluster an application that by design is a desktop
application. It seems to be a waste of resources.
Rand
This posting is provided "as is" with no warranties and confers no rights.
|||Someone within your organisation seems to be getting confused between server products and desktop products. Foxpro is a desktop product. Another way of looking at it is by replacing the word "FoxPro" with "Access", "Word", "Excel" etc and ask yourself t
he same questions again. Desktop applications are not cluster-aware. Some server products are. eg SQL Server 2000, Exchange 2000/2003. Attempting to make a desktop application cluster-aware seems to be a major step in the wrong direction. Your initia
l instincts were correct. Now you just need to point out the differences between cluster-aware applications and non-cluster-aware applications to your management.
If management want high availability with their database platform switch from FoxPro to SQL Server 2000 EE (on a MCS cluster). There is no such thing as a cheap highly available solution in the database space (well I've not seen one yet).