create procedure proc1 (@a int) as begin if @a=1 create table #temp(a1 int) else create table #temp(a1 int) end while executeing the above code it shows error like '#temp already exist' .why it shows an error?
IBM,
8 8672how to write the query to select the rows are in the order of either 1,3,5,7... or 2,4,6,8,...
7 11828can you anybody tell me the how can you restore the master database. while migraion(one server to onther server)?
1 3814
What is difference between Datepart() and Datename() in SqlServer?
Tell me what is difference between view and materialized view?
How can you ensure that the database and sql server based application perform well?
Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
Every night you run a full backup after every 3 three hours you make a differential backup every hour you make an incremental backup in a worst-case scenario, how much work you can lose?
What is update_statistics command?
How to apply filtering criteria at group level with the having clause in ms sql server?
What is raid and what are different types of raid levels?
What happens if null values are involved in bitwise operations?
How to stop log file growing too big?
What are cascading parameters in ssrs reports?
What is the difference between a primary key and a unique key? Are they the same?
List all the types of user-defined functions?
What are unicode character string data types in ms sql server?
What are pages and extents? : SQL Server Architecture