write down the code for "how we delete a table without
using of Drop command " ?

Answer Posted / shanmugam

truncate table tablename

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute the cursor queries with "open" statements?

701


What is the difference between a local and a global temporary table?

698


Explain what are magic tables in sql server?

611


How you can minimize the deadlock situation?

637


How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication

660






Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

631


What are the limitations/drawbacks or ssrs 2008 r2?

99


What function does a database engine serve in the sql server?

664


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2108


Explain what is “asynchronous” communication in sql server service broker?

586


What is t-sql script to take database offline – take database online.

690


What program is used to store the data source file?

584


How to insert data with null values?

683


What is the difference between a clustered index and a non-clustered index?

617


How to find tables without indexes?

701