.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

Whether BCP copy the table structure as it is?

Posted By :nishithraj     Posted Date :March 31, 2010    Points :10   Category :Sql Server 
No. It won't

You can also find related Interview Question to Whether BCP copy the table structure as it is?  below: 

What command is used to create a table by copying the structure of another table?

  
CREATE TABLE .. AS SELECT command

Explanation :

To copy only the structure, the WHERE clause of the SELECT command should contain a FALSE statement as in the following.
CREATE TABLE NEWTABLE AS SELECT * FROM EXISTINGTABLE WHERE 1=2;
If the WHERE condition is true, then all the rows or rows satisfying the condition will be copied to the new table. (More...)

Which command is used to create a table by copying the structure of another table?

  
CREATE TABLE .. AS SELECT command
Example:-
CREATE TABLE AS SELECT*FROM WHERE 1=2; (More...)

How to take the structure from a table?

  
Using Clone()
Copy will copy the data and Structure of the table
Cole will copy the Structure of the table (More...)

State whether BCP also copies table structure?

  
No, It only copies data of the source table to destination. (More...)

List commands to copy data from one table to another?

  
-Insert into select
-Select into

are the two commands to copy data from one table to another. (More...)

How to get basic SQL Server table structure information

  
sp_help will give you a whole bunch of information about a table including the columns, keys and constraints.

For example

exec sp_help 'Employee'

will give you information about table Employee. (More...)

What is data structure?

  
A data structure is a way of organizing data that considers not only the items stored, but also their relationship to each other. Advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data. (More...)

What are the privileges that can be granted on a table by a user to others?

  
Insert, update, delete, select, references, index, execute, alter, all (More...)

How is the data structure of System R different from the relational structure?

  
Unlike Relational systems in System R
1.Domains are not supported
2.Enforcement of candidate key uniqueness is optional
3.Enforcement of entity integrity is optional
4.Referential integrity is not enforced (More...)

How would one do a deep copy in .NET?

  
System.Array.CopyTo().it deep copies an array (More...)

How to get a row was inserted most recently in a table?

  
select top 1 * from tablename order by ColumnName desc (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend