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 11101how to write the query to select the rows are in the order of either 1,3,5,7... or 2,4,6,8,...
7 14123can you anybody tell me the how can you restore the master database. while migraion(one server to onther server)?
1 4608
How many null values we can have in a unique key field in sql server?
How do I view a stored procedure in sql server query?
Explain table valued parameters in sql server? Why tvp used?
How to drop existing indexes in ms sql server?
What is system stored procedures?
what exactly sql injuction.how to overcome.....
How to delete database objects with "drop" statements in ms sql server?
Mention the differences between local and global temporary tables.
Where do you find the default Index fill factor and how to change it?
What are trace flags and mention a few common trace flags used with sql server?
Which are the third-party tools used in sql server and why would you use them?
What are the kinds of subquery?
After removing a table from database, what other related objects have to be dropped explicitly?
What is difference between global temporary tables and local temporary tables?
What are the different types of sub-queries?