Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

How do I create a script to populate a table?
Using SQL Server Express 2005, SQL Server Management Studio Express:

How do I create a script to populate a table?  Say I have a populated
table that I need to deploy with my app; isn't there a tool that can
create a script which replicates a table I already have?  I know how to
generate a script to *create* the table but how can I create a script
that populates it?  Any help appreciated...


Report this thread to moderator Post Follow-up to this message
Old Post
groovyjman21@gmail.com
12-14-06 12:12 AM


Re: How do I create a script to populate a table?
SELECT * INTO  NewTable FROM OldTable WHERE......
http://www.karaszi.com/SQLServer/ i...ript
.asp

<groovyjman21@gmail.com> wrote in message
news:1166019696.539981.303050@16g2000cwy.googlegroups.com...
> Using SQL Server Express 2005, SQL Server Management Studio Express:
>
> How do I create a script to populate a table?  Say I have a populated
> table that I need to deploy with my app; isn't there a tool that can
> create a script which replicates a table I already have?  I know how to
> generate a script to *create* the table but how can I create a script
> that populates it?  Any help appreciated...
>



Report this thread to moderator Post Follow-up to this message
Old Post
Uri Dimant
12-14-06 12:12 AM


Re: How do I create a script to populate a table?
I don't think I explained this right.  How do I create a script that
populates a database from a database that is already populated.  For
example, I have an application which needs to install SQL Server
Express and a database on the client's system.  Now, I know how to
generate a script to create an unpopulated database (just rightclick in
Management studio), but say I want to programmatically populate the
database with a script containing a series of INSERT statements.  Can't
I just right click somewhere in studio on a populated database and
select "generate Insert statements"?


Report this thread to moderator Post Follow-up to this message
Old Post
groovyjman21@gmail.com
12-14-06 12:12 AM


Re: How do I create a script to populate a table?
No, you cannot
http://vyaskn.tripod.com/code/ gene...200
5.txt





<groovyjman21@gmail.com> wrote in message
news:1166022472.562016.205400@j72g2000cwa.googlegroups.com...
>
> I don't think I explained this right.  How do I create a script that
> populates a database from a database that is already populated.  For
> example, I have an application which needs to install SQL Server
> Express and a database on the client's system.  Now, I know how to
> generate a script to create an unpopulated database (just rightclick in
> Management studio), but say I want to programmatically populate the
> database with a script containing a series of INSERT statements.  Can't
> I just right click somewhere in studio on a populated database and
> select "generate Insert statements"?
>



Report this thread to moderator Post Follow-up to this message
Old Post
Uri Dimant
12-14-06 12:12 AM


Re: How do I create a script to populate a table?
OK, thanks for your help.  From the page you posted I tried the SQL
Scripter tool at http://www.sqlscripter.com/ and it works great.
Thanks again for your help.



Uri Dimant  wrote:[color=darkred
]
> No, you cannot
> http://vyaskn.tripod.com/code/ gene...200
5.txt
>
>
>
>
>
> <groovyjman21@gmail.com> wrote in message
> news:1166022472.562016.205400@j72g2000cwa.googlegroups.com... 


Report this thread to moderator Post Follow-up to this message
Old Post
groovyjman21@gmail.com
12-14-06 12:12 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 09:26 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006