Click here to Skip to main content
15,914,013 members
Home / Discussions / Database
   

Database

 
Generaldatabase size Pin
Jassim Rahma29-Jul-02 10:51
Jassim Rahma29-Jul-02 10:51 
GeneralRandomly selecting a row from a database Pin
stephen woolhead29-Jul-02 5:00
stephen woolhead29-Jul-02 5:00 
GeneralRe: Randomly selecting a row from a database Pin
AndyG29-Jul-02 7:29
AndyG29-Jul-02 7:29 
Generaldatabase Pin
Shotgun28-Jul-02 13:11
Shotgun28-Jul-02 13:11 
GeneralRe: database Pin
Chris Maunder28-Jul-02 13:59
cofounderChris Maunder28-Jul-02 13:59 
GeneralRe: database Pin
Alexandru Savescu29-Jul-02 21:30
Alexandru Savescu29-Jul-02 21:30 
GeneralRe: database Pin
David Salter5-Aug-02 11:33
David Salter5-Aug-02 11:33 
GeneralBulk loading in .Net Pin
Anonymous27-Jul-02 8:57
Anonymous27-Jul-02 8:57 
I have been looking at a variety of options for doing bulk loads from the .net framework - not of which are quite what I want. There is no 'native' class that allows access to the irowsetfastload interface in oledb.

Here is a picture of what I want to do:

1. Load and parse a 1.2 million line file into a structured dataset in memory
2. Perform some 'massage' work on data in memory
3. Shove the data into SQL Server 2000 as quickly as possible

The dataset classes in ADO.net are wonderful and work perfectly for what I am trying to do. The problem is that when I issue the database inserts, they are too slow to do in the timeframe that I need. I can dump the data to a file from the dataset, and use bcp or some such method, but I don't want that additional overhead. Actually what I have implemented so far has an FTP object that allows me to load the FTP dataconnection stream right into a memory stream, and I can process the data as it's coming off the wire, put into a dataset, and them cram into database - all without any file IO (except for database of course).

The Irowsetfastload interface is seems to be exactly what I need, but I cannot access it very well from the framework, and I'm no OLEDB expert. There are very few articles about this on the internet, certainly not enough to get started. Have recently tried the xmlbulkload object through interop, but it requires a file name, so I may as well use bulk insert TSQL - it doesnt buy me anything.

A few questions:

Would it be possible to write a Managed c++, c# or VB.net class that encapsulates this interface? How would one go about doing so. If it was done in managed c++, I assume the library could easily be used by c# or VB. To give an idea of how I would like to do this - I really want a method on the dataset itself like ds.fastload with a few parameters about the load itself. Extra points if someone can figure out how to do an 'UPSERT' - pass in a primary key, and have it figure out which records to fastload, and which ones need a good old update.

Does anyone know if MSFT is planning on adding functionality to the sql client classes to enable this functionality? Any pointers or ideas much appreciated.

James;)
GeneralRe: Bulk loading in .Net Pin
Andres Manggini27-Jul-02 12:16
Andres Manggini27-Jul-02 12:16 
GeneralRe: Bulk loading in .Net Pin
Anonymous27-Jul-02 18:41
Anonymous27-Jul-02 18:41 
GeneralRe: Bulk loading in .Net Pin
stephen woolhead29-Jul-02 5:38
stephen woolhead29-Jul-02 5:38 
GeneralSequential Number Pin
Waleed Eissa27-Jul-02 6:37
Waleed Eissa27-Jul-02 6:37 
GeneralSQL Server, OLE DB problem Pin
Alex Deem26-Jul-02 2:23
Alex Deem26-Jul-02 2:23 
GeneralXML Web Service error on Update() Pin
laphijia25-Jul-02 23:45
laphijia25-Jul-02 23:45 
GeneralError Creating SQL DB in .NET Pin
bingo199525-Jul-02 2:25
bingo199525-Jul-02 2:25 
GeneralRe: Error Creating SQL DB in .NET Pin
Alexandru Savescu25-Jul-02 5:34
Alexandru Savescu25-Jul-02 5:34 
GeneralRe: Error Creating SQL DB in .NET Pin
Nick Parker25-Jul-02 7:55
protectorNick Parker25-Jul-02 7:55 
Questionhow to set a database only permit seraral IP can connet with odbc or oledb? Pin
realfly24-Jul-02 17:46
realfly24-Jul-02 17:46 
AnswerRe: how to set a database only permit seraral IP can connet with odbc or oledb? Pin
Nick Parker25-Jul-02 8:04
protectorNick Parker25-Jul-02 8:04 
GeneralRe: how to set a database only permit seraral IP can connet with odbc or oledb? Pin
realfly25-Jul-02 15:28
realfly25-Jul-02 15:28 
GeneralRe: how to set a database only permit seraral IP can connet with odbc or oledb? Pin
Nick Parker28-Jul-02 11:19
protectorNick Parker28-Jul-02 11:19 
GeneralADO asynchronous queries and sorting Pin
Byteman24-Jul-02 8:01
Byteman24-Jul-02 8:01 
GeneralRe: ADO asynchronous queries and sorting Pin
SimonS24-Jul-02 22:18
SimonS24-Jul-02 22:18 
GeneralADO.Net updating a BLOB Pin
MrGlover23-Jul-02 19:01
MrGlover23-Jul-02 19:01 
GeneralRe: ADO.Net updating a BLOB Pin
Richard Deeming25-Jul-02 1:38
mveRichard Deeming25-Jul-02 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.