Need help on SQL Server 7.0 or 6.5

Need help on SQL Server 7.0 or 6.5

Post by PHAN, HUY-LA » Sat, 15 Jan 2000 04:00:00



Hi
I need to be able to dump all the records of a SQL Server
database into a flat text file but I just want to dumb
certain fields.
For example, my database contains 10 millions records
and its structure has 10 fields. I want to dump these 10
millions records into a flat file but only want to keep
3 fields out of 10.

Is there a fast way to do it without having to write a VB
application going through ADO/ODBC to create that flat file ?
The reason I'm asking is that maybe SQL Server already has
some built-in features to do such a thing without having to
write a VB or VC component to do it.

Note that I'm not asking how to write a VB component to do it
because I know how to do it, I just want to know if there is
a faster, simpler way to do it.

Please reply to my email personally since it's much faster
for me to locate the answer.

Regards.

Lan.

 
 
 

Need help on SQL Server 7.0 or 6.5

Post by BPMargoli » Sat, 15 Jan 2000 04:00:00


Lan,

Create a view on the table containing only the 3 fields you need, and the
check out the bcp utility in Books Online. bcp is available in both SQL
Server 6.5 and SQL Server 7.0.


Quote:> Hi
> I need to be able to dump all the records of a SQL Server
> database into a flat text file but I just want to dumb
> certain fields.
> For example, my database contains 10 millions records
> and its structure has 10 fields. I want to dump these 10
> millions records into a flat file but only want to keep
> 3 fields out of 10.

> Is there a fast way to do it without having to write a VB
> application going through ADO/ODBC to create that flat file ?
> The reason I'm asking is that maybe SQL Server already has
> some built-in features to do such a thing without having to
> write a VB or VC component to do it.

> Note that I'm not asking how to write a VB component to do it
> because I know how to do it, I just want to know if there is
> a faster, simpler way to do it.

> Please reply to my email personally since it's much faster
> for me to locate the answer.

> Regards.

> Lan.


 
 
 

Need help on SQL Server 7.0 or 6.5

Post by Fran?ois Kreut » Sat, 22 Jan 2000 04:00:00


Check out linked servers in BOL and schema.ini files in MSDN. Performance is
excellent.


Quote:> Hi
> I need to be able to dump all the records of a SQL Server
> database into a flat text file but I just want to dumb
> certain fields.
> For example, my database contains 10 millions records
> and its structure has 10 fields. I want to dump these 10
> millions records into a flat file but only want to keep
> 3 fields out of 10.

> Is there a fast way to do it without having to write a VB
> application going through ADO/ODBC to create that flat file ?
> The reason I'm asking is that maybe SQL Server already has
> some built-in features to do such a thing without having to
> write a VB or VC component to do it.

> Note that I'm not asking how to write a VB component to do it
> because I know how to do it, I just want to know if there is
> a faster, simpler way to do it.

> Please reply to my email personally since it's much faster
> for me to locate the answer.

> Regards.

> Lan.

 
 
 

1. Access 7.0 and SQL Server 6.5 - a new kid needs help

Hello,
 I currently have a web based application built using Access 7.0 and ASP's
 The higher-ups want to move it to SQL Server 6.5
I'm fairly new to working with databases, and am a bit lost...(this might be
an understatement - depending on the humor you find in my next question)

What is SQL Server 6.5 - I've read the information on Microsoft's site and
still have questions. So I thought I'd come to the experts..

I am familiar with Access, and SQL Sybase Anywhere, after that I'm dead in the
water.

#1 How does SQL Server compare to Access - I am not asking about performance -
I have no doubt that SQL Server is much more powerful. In general terms am I
going to use SQL Server the same way as I use Access?

#2 When I upgrade to SQL Server  - Is Access now out of the picture? The data
from Access will now be in what format? What is the file extension on an SQL
Server Database?

Can anyone help or point me in the right direction for more information?
Much thanks in advance...

2. database management

3. Access 7.0 to SQL Server 6.5 - a new kid needs your help

4. UK SQL People: Meeting in Cambridge 22nd Jan

5. Migration from MS Access 7.0 to MS SQL Server 6.5 - NEED HELP

6. Can I run the DTS Package from Query Analyzer

7. *** Need Help With Migration from SQL 6.5 to SQL 7.0***

8. Project Needed

9. Need help on connecting ISQL_w Client (from SQLServer 6.5) to SQLServer 7.0 Server

10. Use of SQL Server 7.0 Client with SQL Server 6.5 Server

11. SQL 7.0 database migration from 6.5 do I need the 7.0 client

12. Need Help with ODBC/MS SQL Server 6.5/Peer Web Server 3.0/Frontpage Problem

13. Upgrade from SQL Server 6.5 +SP5a (in french) to SQL Server 7.0 (US)