Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2009, 01:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Quote:
Originally Posted by Lee Dumond View Post
An MDB is an file you can open in Access. Of course, if you open a database in Access, then you can paste into it.

However, there is no way you are going to paste a column of values into an MDF. That doesn't make any sense. MDFs are meant to be edited using DDL. There's no such concept as "pasting" data into an MDF.
Well, I just try it.. I open my SQL server management express, open a database with a table with id, name. (id is not autonumeric, was just numeric). Open excel, create 3 dummy rows of data with number, text. I copy all the sheet, went to SQL, pressed CTRV+V and worked.

Quote:
Originally Posted by Lee Dumond View Post
Ah yes, I get it. That would work. Never thought of that. That's actually pretty clever Gonz! . And, probably a lot faster than using a file I/O thing like a StreamReader for a one-time procedure.
Thanks for that I do that kinds of things a lot, excel is very helpfull even when you need to do some programing. It helps building lines of code that are similar. (I once has to output about 5k chars to a single line of a file, they came from properties of a class, and excel help build the 100+ lines of equally code for them).

A good blog post will be welcomed, I will be looking forward for it.
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
The Following User Says Thank You to gbianchi For This Useful Post:
Lee Dumond (March 13th, 2009)
 
Old March 13th, 2009, 02:29 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
Originally Posted by gbianchi View Post
Well, I just try it.. I open my SQL server management express, open a database with a table with id, name. (id is not autonumeric, was just numeric). Open excel, create 3 dummy rows of data with number, text. I copy all the sheet, went to SQL, pressed CTRV+V and worked.
Well, I'll be damned. I just tried it too, and it does work. That's just crazy.

I owe you an apology. Nice job Gonzo.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}





Similar Threads
Thread Thread Starter Forum Replies Last Post
Output Query to txt file from SQL Query everest SQL Server 2005 4 November 22nd, 2007 01:49 AM
How to format txt file exported from access table bbqlee Access VBA 1 August 4th, 2006 02:16 PM
txt file generated from SQl BCP nidhigarg9 SQL Server 2000 1 June 16th, 2006 02:16 PM
Import a Comma separated txt file to SQL table arielote C# 2 April 17th, 2006 01:08 AM
Bulk Insert to Sql Server from .txt file avats BOOK: Beginning VB.NET Databases 1 June 3rd, 2005 04:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.