Showing posts with label import. Show all posts
Showing posts with label import. Show all posts

Sunday, March 11, 2012

Add runtime rows to sql express database

Hi All,

I have a c# project with an sql express database which is bound to a datagridview via a dataset.

I would like to allow the users to import data into the database from a text file.

How does one go about adding rows and filling in the column data programatically? Do I add the to datagridview? the database? the bindingsource?

Thank you,

Paul

hi Paul,

it depends on your requirements.. you can direclty load the database via BULK INSERT statement like in http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=723808&SiteID=1 ....
or you can read the flat file and parse it, loading a visual UI to be presented to the user for further manipulation, and finally load the destination database... if this is the case I'd just add the "imported" rows to the underlying DataView of the UI...

regards

|||

Thanks for the help and the links. I'll post back what I did.

Paul

|||

Wrote a class to convert the txt to xml but

it doens't work on a unbound grid. Oh well nice try...

Maybe I could unbin, set the data, and then

rebind. Looking into it now.

//this works fine on unbound grid.

dataSet1.ReadXml(filePath);

dataGridView1.DataSource = dataSet1;

dataGridView1.DataMember = "student";

Saturday, February 25, 2012

Add existing report

I'm trying to import a report from our report server because the rdl
file was deleted from my machine. I know this sounds stupid but how
do I go about doing it? I thought the files were stored on the server
in rdl format but I can't find them for the life of me.This is not from Visual Studio it is done via a browser, go to the report in
Report Manager via the browser, properties tab, edit report definition. Save
it somewhere other than where you have your project (like in c:\temp). Then
add an existing item to your project and it will copy it over from c:\temp
to the directory where the project files are stored.
The reason you don't find them on the server is that they do not exist as
files, they are stored in the database.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Brent" <mills.brent@.gmail.com> wrote in message
news:681372b5.0412021247.7f2f5218@.posting.google.com...
> I'm trying to import a report from our report server because the rdl
> file was deleted from my machine. I know this sounds stupid but how
> do I go about doing it? I thought the files were stored on the server
> in rdl format but I can't find them for the life of me.

Thursday, February 16, 2012

Add a view in a diagram

H
I would like to import views in SQL Server's Diagram. I could only import tables. Thank you for your helSQL Servers database diagram tool only supports diagrams
using tables. Some of the other data modeling tools support
views in diagrams. If you have Visio, you can reverse
engineer your database and include views in the diagrams.
-Sue
On Wed, 14 Apr 2004 07:36:02 -0700, "SLEMARIE"
<anonymous@.discussions.microsoft.com> wrote:
>Hi
>I would like to import views in SQL Server's Diagram. I could only import tables. Thank you for your help

Add a view in a diagram

Hi
I would like to import views in SQL Server's Diagram. I could only import tables. Thank you for your help
SQL Servers database diagram tool only supports diagrams
using tables. Some of the other data modeling tools support
views in diagrams. If you have Visio, you can reverse
engineer your database and include views in the diagrams.
-Sue
On Wed, 14 Apr 2004 07:36:02 -0700, "SLEMARIE"
<anonymous@.discussions.microsoft.com> wrote:

>Hi
>I would like to import views in SQL Server's Diagram. I could only import tables. Thank you for your help

Add a view in a diagram

Hi
I would like to import views in SQL Server's Diagram. I could only import ta
bles. Thank you for your helpSQL Servers database diagram tool only supports diagrams
using tables. Some of the other data modeling tools support
views in diagrams. If you have Visio, you can reverse
engineer your database and include views in the diagrams.
-Sue
On Wed, 14 Apr 2004 07:36:02 -0700, "SLEMARIE"
<anonymous@.discussions.microsoft.com> wrote:

>Hi
>I would like to import views in SQL Server's Diagram. I could only import tables. T
hank you for your help