![]() |
Database »
Database »
SQL Server
License: The Code Project Open License (CPOL)
Table Data ExporterBy Igor KrupitskyThe Table Data Exporter creates a SQL script for data in a table. |
VB, .NET, SQL-Server, VS.NET2003
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||

This application will let you script table data into a file. It will create an INSERT statement for each row in your table.
The application is written in Visual Studio 2003, and has been tested with SQL Server only. Potentially, the application can work with other databases.
The application uses the DataLink object to connect to the database:
Protected Function EditConnectionString(ByVal sConnectionString As String)
Try
Dim oDataLinks As Object = CreateObject("DataLinks")
Dim cn As Object = CreateObject("ADODB.Connection")
cn.ConnectionString = sConnectionString
oDataLinks.hWnd = Me.Handle
If Not oDataLinks.PromptEdit(cn) Then
'User pressed cancel button
Return ""
End If
cn.Open()
Return cn.ConnectionString
Catch ex As Exception
MsgBox(ex.Message)
Return ""
End Try
End Function
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 24 Jan 2008 Editor: Smitha Vijayan |
Copyright 2008 by Igor Krupitsky Everything else Copyright © CodeProject, 1999-2010 Web17 | Advertise on the Code Project |