Sponsored Links
SQL Server 2005 Tutorials
- SQL Server Integration Services
- SQL Server 2005 - Configuring Replication
- SQL Server 2005 Replication Enhancements
- SQL Server 2005 - Mirror Server
- SQL Server 2005 - Introduction to Data Availability
- SQL Server 2005 - Backing up a Database
- SQL Server 2005 - Using Database Snapshots
- SQL Server 2005 - Disaster Recovery
- SQL Server 2005 - Managing Certificates
- SQL Server 2005 - Managing Permissions
- Managing SQL Server 2005 Security
- SQL Server 2005 - Using the Database Tuning Advisor
- SQL Server 2005 - Tuning a Database
- Maintain indexes in a SQL Server 2005 database
- SQL Server 2005 - Defining Indexes
- SQL Server 2005 - Database Backup
- SQL Server 2005 - Populating the Database
- SQL Server 2005 Configuration Manager
- SQL Server 2005 - Using the Sqlcmd Utility
- Using the SQL Management Objects
Tutorials
SQL Server 2005SQL Server 2005 - Populating the Database
SQL Server 2005 - Populating the Database
In this tutorial you will learn how to populate the database in SQL Server 2005.
One method of populating the tables in a database is to right click on a table and select ‘Open Table’ and entering the data in the visual mode that is displayed.
Another method is to use the INSERT statement to add rows to a table. The syntax would be as under:
INSERT [INTO] table_or_view [(column_list)] data_values
The SELECT subquery in the INSERT statement can also be used to add values to a table or views. The use of the SELECT subquery also allows more than one row to be inserted at the same time. It must be ensured that the select list of the subquery matches the column list of the INSERT statement. If no column list is specified, the select list must match the columns in the table of view being inserted into.
Bulk copy operations can also be used to populate a database. A bulk copy program can be used. This is a command prompt utility that provides for running bulk copies in .bat and .cmd scripts. The BULK INSERT statement of T_SQL batches can be used. This statement has to be executed in the context of the server. Finally the bulk copy APIs for OLE DB, ODBC and DB-Library applications can be used. This is again a command prompt utility that uses the SQL Server ODBC driver bulk copy functions.
Comments
akhilkes said:

| when i found this site and register free and find many tutorials , i really feel too much good registering free, ***********REALLY THIS WEBSITE IS BEST AMONG ALL I HAVE EVER SEEN************************** |
Sponsored Links
