- What are the different types of joins and what dies each do?
- What are the four main query statements?
- What is a sub-query? When would you use one?
- What is a NOLOCK?
- What are three SQL keywords used to change or set someone’s permissions?
- What is the difference between HAVING clause and the WHERE clause?
- What is referential integrity? What are the advantages of it?
- What is database normalization?
- Which command using Query Analyzer will give you the version of SQL server and operating system?
- Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
- What is the purpose of using COLLATE in a query?
- What is a trigger?
- What is one of the first things you would do to increase performance of a query? For example, a boss tells you that “a query that ran yesterday took 30 seconds, but today it takes 6 minutes”
- What is an execution plan? When would you use it? How would you view the execution plan?
- What is the STUFF function and how does it differ from the REPLACE function?
- What does it mean to have quoted_identifier on? What are the implications of having it off?
- What are the different types of replication? How are they used?
- What is the difference between a local and a global variable?
- What is the difference between a Local temporary table and a Global temporary table? How is each one used?
- What are cursors? Name four types of cursors and when each one would be applied?
- What is the purpose of UPDATE STATISTICS?
- How do you use DBCC statements to monitor various aspects of a SQL server installation?
- How do you load large data to the SQL server database?
- How do you check the performance of a query and how do you optimize it?
- How do SQL server 2000 and XML linked? Can XML be used to access data?
- What is SQL server agent?
- What is referential integrity and how is it achieved?
- What is indexing?
- What is normalization and what are the different forms of normalizations?
- Difference between server.transfer and server.execute method?
- What id de-normalization and when do you do it?
- What is better - 2nd Normal form or 3rd normal form? Why?
- Can we rewrite subqueries into simple select statements or with joins? Example?
- What is a function? Give some example?
- What is a stored procedure?
- Difference between Function and Procedure-in general?
- Difference between Function and Stored Procedure?
- Can a stored procedure call another stored procedure. If yes what level and can it be controlled?
- Can a stored procedure call itself(recursive). If yes what level and can it be controlled.?
- How do you find the number of rows in a table?
- Difference between Cluster and Non-cluster index?
- What is a table called, if it does not have neither Cluster nor Non-cluster Index?
- Explain DBMS, RDBMS?
- Explain basic SQL queries with SELECT from where Order By, Group By-Having?
- Explain the basic concepts of SQL server architecture?
- Explain couple pf features of SQL server
- Scalability, Availability, Integration with internet, etc.)?
- Explain fundamentals of Data ware housing & OLAP?
- Explain the new features of SQL server 2000?
- How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
- What is data integrity? Explain constraints?
- Explain some DBCC commands?
- Explain sp_configure commands, set commands?
- Explain what are db_options used for?
- What is the basic functions for master, msdb, tempdb databases?
- What is a job?
- What are tasks?
- What are primary keys and foreign keys?
- How would you Update the rows which are divisible by 10, given a set of numbers in column?
- If a stored procedure is taking a table data type, how it looks?
- How m-m relationships are implemented?
- How do you know which index a table is using?
- How will oyu test the stored procedure taking two parameters namely first name and last name returning full name?
- How do you find the error, how can you know the number of rows effected by last SQL statement?
- How can you get @@error and @@rowcount at the same time?
- What are sub-queries? Give example? In which case sub-queries are not feasible?
- What are the type of joins? When do we use Outer and Self joins?
- Which virtual table does a trigger use?
- How do you measure the performance of a stored procedure?
- Questions regarding Raiseerror?
- Questions on identity?
- If there is failure during updation of certain rows, what will be the state?
The Msbiinfo provides maximum information about ssis,ssrs,sql server technologies and provides interview questions and videos and real time scenarios.
Friday, November 25, 2011
SQL SERVER Interview Questions
Wednesday, November 16, 2011
SSRS INTERVIEW QUESTIONS part-2
What is the report rendering?
Report rendering is to call the report from server to application. Report rendering can be possible through different ways Like
Excel, PDF, CSV,XML, TIFF, HTML Web Archive,DOC
What is the report server?
Report server is the server where we deploy the report In Other way it’s a holding place for reports. Applications access report server to view the report.
All the reports are reside with Report Server All other activities pertaining to SSRS is done at Report Server.It acts like work station for reporting tool.
Can we use the page total in report body?
The built in field [&pagenumber] and [&pagetotal] cannot be used in report body as these are applicable in report header or report footer.
These built in field can be added in footer or header for better representation of the report.
What are the different types of report?
Using BIDS reports can be created in two ways. I.e. two ways to retrieve the data from SQL Server data source.
- TSQL Reports: TSQL Reports are made up of plain SQL Query. Data source in this case is SQL server database engine.
- MDX Reports: MDX reports are created through cubes. For this data source is analysis services cubes.
What is report subscription?
Report subscription is to schedule the resource on particular time and to send a mailer to particular users. A subscription is a standing request to deliver a report at a specific time or in response to an event, and then to have that report presented in a way that you define. Subscriptions provide an alternative to running a report on demand. On-demand reporting requires that you actively select the report each time you want to view the report. In contrast, subscriptions can be used to schedule and then automate the delivery of a report.
What is the RDL file?
A report definition contains data retrieval and layout information for a report. Report Definition Language (RDL) is an XML representation of this report definition.
What are the Matrix reports and what are their uses?
Matrix reports are the reports which used to generate data dynamically i.e. table structure is not static and it can be changed at run time.
Can you use a stored procedure to provide data to an SSRS report?
Yes, you can use a stored procedure to provide data to an SSRS report by configuring the dataset to use a stored procedure command type. However, your stored procedure should return only a single result set. If it returns multiple result sets, only the first one is used for the report dataset.
Yes, you can use a stored procedure to provide data to an SSRS report by configuring the dataset to use a stored procedure command type. However, your stored procedure should return only a single result set. If it returns multiple result sets, only the first one is used for the report dataset.
What is the main purpose of a report parameter?
The main purpose of a report parameter is to add interactivity to your reports, letting users change the report behavior based on options they select. The report parameter option allows you to show different dimensions in a single report by selecting the options.
The main purpose of a report parameter is to add interactivity to your reports, letting users change the report behavior based on options they select. The report parameter option allows you to show different dimensions in a single report by selecting the options.
What is the main purpose of a query parameter?
The main purpose of a query parameter is to filter data in the data source.
The main purpose of a query parameter is to filter data in the data source.
Saturday, November 5, 2011
DataFlow Task Facts
Basics of Data Flow Task:
* Streaming
* Unlink control flow, multiple components can process data at the same time
* Smallest unit of the data flow is a component
* Data flows move data, but are also tasks in the control flow, as such, their success or failure effects how your control flow operates
* Data is moved and manipulated through transformations
* Data is passed between each component in the data flow
* Data flow is made up of source(s), transformations, and destinations.
Some Facts about Data Flow:
* The data flow task in SSIS (SQL Server Integration Services) sends data in series of buffers.
* This is bounded by DefaultBufferMaxRows and DefaultBufferMaxSize, two Data Flow properties.
* They have default values of 10,000 and 10,485,760 (10 MB), respectively. That means, one buffer will contain either 10,000 rows or 10 MB of data, whichever is less.
* You can adjust these two properties based on your scenario. Setting them to a higher value can boost performance, but only as long as all buffers fit in memory.
* The Data Flow task encapsulates the data flow engine that moves data between sources and destinations, and lets the user transform, clean, and modify data as it is moved.
* Addition of a Data Flow task to a package control flow makes it possible for the package to extract, transform, and load data.
* A data flow consists of at least one data flow component, but it is typically a set of connected data flow components: sources that extract data; transformations that modify, route, or summarize data; and destinations that load data. Components are connected in the data flow by paths.
* Each path specifies the two components that are the start and the end of the path. For more information, see Data Flow Elements.
* At run time, the Data Flow task builds an execution plan from the data flow, and the data flow engine executes the plan.
* We can create a Data Flow task that has no data flow, but the task executes only if it includes at least one data flow.
* Streaming
* Unlink control flow, multiple components can process data at the same time
* Smallest unit of the data flow is a component
* Data flows move data, but are also tasks in the control flow, as such, their success or failure effects how your control flow operates
* Data is moved and manipulated through transformations
* Data is passed between each component in the data flow
* Data flow is made up of source(s), transformations, and destinations.
Some Facts about Data Flow:
* The data flow task in SSIS (SQL Server Integration Services) sends data in series of buffers.
* This is bounded by DefaultBufferMaxRows and DefaultBufferMaxSize, two Data Flow properties.
* They have default values of 10,000 and 10,485,760 (10 MB), respectively. That means, one buffer will contain either 10,000 rows or 10 MB of data, whichever is less.
* You can adjust these two properties based on your scenario. Setting them to a higher value can boost performance, but only as long as all buffers fit in memory.
* The Data Flow task encapsulates the data flow engine that moves data between sources and destinations, and lets the user transform, clean, and modify data as it is moved.
* Addition of a Data Flow task to a package control flow makes it possible for the package to extract, transform, and load data.
* A data flow consists of at least one data flow component, but it is typically a set of connected data flow components: sources that extract data; transformations that modify, route, or summarize data; and destinations that load data. Components are connected in the data flow by paths.
* Each path specifies the two components that are the start and the end of the path. For more information, see Data Flow Elements.
* At run time, the Data Flow task builds an execution plan from the data flow, and the data flow engine executes the plan.
* We can create a Data Flow task that has no data flow, but the task executes only if it includes at least one data flow.
Wednesday, November 2, 2011
SSIS Performence Tuning Tip-2
Set IsSorted Property as true:
- If you know that the source data is sorted in such scenarios set the IsSorted =true on the source adapter output.
- Go to the advanced editor by right clicking on source adapter.
- Go to input and output properties there you will be found IsSorted option .set it is true.
- By setting this value it does not perform a sort operation ,it only indicates that the data is sorted..
- By following this tip we can save some time in real time..if our data base is so large then it will helps a lot.. you can see SSIS performance tuning tip 1
Subscribe to:
Posts (Atom)