Detail Form
We will send your result on your email id and phone no. please fill detail
In an SQL Server 2008 instance, which of the following will you check to clarify whether the database integrity check (DBCC CHECKDB) is implemented for a special database?
In an SQL Server, which of the following statements is used to create the database called toys with at least 50 MB of free space and 15 MB as start size for the transaction log?
In an SQL Server, which of the following codes will successfully add the .ndf file to a filegroup?
If you have a table with fragmented indexes in an SQL server instance, how will you ensure that the effect on the database availability is minimized?
When a web application is moved from Microsoft SQL Server 2005 to Microsoft SQL Server 2008, certain features stop. Which of the following does an SQL server sample use to retain such features?
You have created the following dbo.Emp_records procedures and you want to check if any procedure of that name exists. If it exists already, then delete the procedure and create a new one. However, the following procedure generates an error. Identify the correct code which performs the task.
IF EXISTS(SELECT * FROM sys.sys_files WHERE SCHEMA_ID = SCHEMA_ID('dbo') AND name = N 'Emp_records')
DROP PROCEDURE dbo.Emp_records
GO
Create Procedure dbo.Emp_records(
@EmpFirstName Varchar(200), @EmpLastName Varchar(200), @EmpEmail Varchar(50)
)
As
Begin
Insert into tbl_Employees(Firstname, lastname, Email)
Values("@EmpFirstName", "@EmpLastName", "@EmpEmail")
End
The following code was used to create a stored procedure for adding the details of a new category to the table named category:
CREATE PROCEDURE prcAddCategory@ CategoryId
char(3), @Category char(20), @Descrip char(30)
as
INSERT Category
VALUES(‘CategoryId’, ’Category’, ’Descrip’)
After successful creation of the following procedure the following code was used to execute the procedure
for inserting a new category:
Exec prcAddCategory‘ 017’, ‘War Games’, ‘A wider range of toy guns’
The given code generated an error and was aborted. You need to detect the error and rectify the code.