Sql Server Interview Questions and Answers (1758) - Page 58

What is wrong with this CREATE LOGIN statement? CREATE LOGIN users\temp1 FROM WINDOWS MUST CHANGE

NOTE: This is objective type question, Please click question title for correct answer.
What will be the output of below statement? Select IsNumeric('12Vishal345');

NOTE: This is objective type question, Please click question title for correct answer.
What is the return type of IsNumeric function?

IsNumeric function always returns Integer value whether supplied value is a valid numeric value,money,decimal value or not.
What are the other valid data types IsNumeric function supports?

IsNumeric function also supports following data types:-
1).int,
2).smallint,
3).money,
4).float,
5).decimal,
6).tinyint,
7).smallmoney and so on..

For above data types Isnumeric function always returns 1.
Which of the following built-in tool will allow you to change services accounts and auto-start services in SQL Server 2008 ?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following is the correct way to rename a user database?

NOTE: This is objective type question, Please click question title for correct answer.
To identify records that were updated in a table from a trigger,which of the following tables need to be checked?

NOTE: This is objective type question, Please click question title for correct answer.
Is there any updated system table in DB tables?

No,there is no any updated system table in Database .We have only Inserted as well as Deleted system tables.
What will be the result of the following statement? Select Round(281.89,-1, 1) as Output;

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following is NOT true about the TRUNCATE TABLE command?

NOTE: This is objective type question, Please click question title for correct answer.
Which trigger does execute when DELETE command is fired?

Delete triggers are only triggered when the DELETE command is fired.Whenever we fire or execute Delete statement then trigger for Delete which is associated with the table will also gets executed.
What do we mean by Bit data type?

'Bit' is one of the integer or numeric data types in SQL Server that can have either 1, 0, or NULL value.

Actually,Bit datatype is used for storing boolean value like 1 or 0.1 for true and 0 for false.

Generally,we use Bit data type to check whether user account or employee is Active or In-Active.

We can use it like a BOOLEAN variable.

For Example:-
create table Employee_Master

(
employee_id int,
employee_name varchar(200) not null,
is_active bit
)


When we insert a record in Employee_Master table,SQL Server stores 0,1 or Null value in the is_active column.
What is the output of below statement? declare @val bit; select @val as Output;

NOTE: This is objective type question, Please click question title for correct answer.
What is the default value for Bil data type?

Default value for Bit datatype is NULL.If not assigned any value at the time of creating a variable.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories