|
|
-
|
|
In this post Dynamic PIVOT in SQL Server 2005, I have shown a way to dynamically generate the column values with names. I used to get mails frequently from people on how to pass parameters when executing the procedure.
The following will find total sales made by each employee for each year(from Emp......
|
|
-
|
|
Without running this query, can you guess the output?
Query :
select 999'''45'
Output :
Result 1 : Incorrect syntax near '
Result 2 : 999
Result 3 : 999'45
Result 4 : invalid column name 45
......
|
|
-
|
|
As you know I have started a new series on "Exploring SSMS" by which I will be posting some features that are available in SSMS which will be very helping during the development. In this post we will see how to insert code template for creating a table, stored procedure, login etc in the SQL Server ......
|
|
-
|
|
As you know I have started a new series on "Exploring SSMS" by which I will be posting some features that are available in SSMS which will be very helping during the development. In this post we will see how to know to hide system databases from the SQL Server management studio.
In the Tool bar, g......
|
|
-
|
|
Square braces in SQL Server play a major role in T-SQL programming. When an object name contains a space, special character, etc, the only way to express them is to put them around squre braces. Consider that you want to create a table user master (with spaces between user and master), you can use [u......
|
|
-
|
|
As you all know tempdb is responsible of storing all the temporary objects created for a server. One of my co-workers asked me "what is the scope of permanent tables created in the tempdb database?". The answer is it can be accessed via tempdb from various connections just like objects are accessed ......
|
|
-
|
|
Without running these queries can you find out the query that would throw an error?
1 select 7*-2&.3
2 select 7|2&-3
3 select 7+-(.2)%(+3)
4 select ((7&2%3))
......
|
|
-
|
|
One of the members in the forum asked about using decimal datatype in identity column. The question was "Is decimal point allowed in the identity column?" Ok. The identity column can never have any decimal points. It is a whole number. The decimal datatype can be used to have a bigger number in the ......
|
|
-
|
|
When a datatype timestamp or rowversion is used, it generates unique value whenever a row is added or updated in a table. It is one of the ways to generate auto-generated values not only for insertion but for updation too. If you want to know the minimum active rowvertion number for a database, you ......
|
|
-
|
|
Without running the following code , can you guess the datatype of the column t?
select null+getdate()+772.67 as t into #t5
......
|
|