Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic SQL and SQL Server via ODBC connection.
Message
From
18/08/1999 03:31:25
 
 
To
17/08/1999 09:45:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00254448
Message ID:
00254837
Views:
26
>Francisco:
>
>I'm not sure I know what the DTS Package is - can you elaborate?
>
>At the time I run this program, all that is known about the incoming data is a source file name and some field names, not the type of field (char, numeric, integer, etc.) or the field length. In order to run SQLEXEC() to create a table in the SQL Server database, don't I have to know these things?
>
>Thanks!
>Tom.

The DTS is a function within SQL Server where you can configure Data Transformation services.
So you can configure that a source file (accessed by ODBC or OLE DB if it not native SQL Server Data) is going to be imported into some table into some Database in a SQL Server.
You can even define some transformations on each fieldfs if you want. These transformatuion can be configured by the wizard or can be written in VBScript.

You can choose to create the table if it doesn´t exists.
You can also configure it to run automatically periodically.

To do the import from within VFP, you must know the fields types and lengths in order to execute the transact SQL command (via SQLEXEC) to create the table.
You can do it with 'Afields()'
Previous
Reply
Map
View

Click here to load this message in the networking platform