v1=1;
v2=2;
v3=v1;
v1=v2;
v2=v3
print v1,v2,v3
http://www.sqlhub.com
Note: Microsoft Books online is a default reference of all articles but examples and explanations prepared by Ritesh Shah, founder of http://www.SQLHub.com
Thursday, November 26, 2009 |
Posted by
Ritesh Shah
Tuesday, November 24, 2009 |
Posted by
Ritesh Shah
0
comments
Labels:
count,
count and null,
Microsoft,
ms sql server 2008,
null,
Ritesh Shah,
T-sql
Monday, November 23, 2009 |
Posted by
Ritesh Shah
0
comments
Labels:
Microsoft,
order by,
Ritesh Shah,
T-sql,
view
Saturday, November 21, 2009 |
Posted by
Ritesh Shah
0
comments
Labels:
audit trail,
Microsoft,
Ritesh Shah,
T-sql
Friday, November 20, 2009 |
Posted by
Ritesh Shah
2
comments
Labels:
audit trail,
Microsoft,
ms sql server 2008,
Ritesh Shah,
T-sql
Thursday, November 19, 2009 |
Posted by
Ritesh Shah
0
comments
Labels:
hardening sql server,
Microsoft,
Ritesh Shah,
T-sql
Sunday, November 15, 2009 |
Posted by
Ritesh Shah
Saturday, November 14, 2009 |
Posted by
Ritesh Shah
Friday, November 13, 2009 |
Posted by
Ritesh Shah
Thursday, November 12, 2009 |
Posted by
Ritesh Shah
0
comments
Labels:
clustered index
Wednesday, November 11, 2009 |
Posted by
Ritesh Shah
0
comments
Labels:
MS SQL Server,
primary key,
Ritesh Shah,
select primary key,
T-sql
Saturday, November 7, 2009 |
Posted by
Ritesh Shah
Yesterday I was reviewing one of my latest projects and I found that one of the developers had created two stored procedure with “SP_” prefix. Generally “SP_” prefix is used for System stored procedure name; look at one of my past article how to create your own system SP, if You will create your own stored procedure with “SP_”, It will not give you any error, it will get executed successfully but it is really a overhead on processing as whenever compiler will get prefix “SP_” it will going to look into system SPs list, once it won’t get it from there, will look at user SP list. Apart from this, there should be some naming convention rules for user defined object that is what I believe so I thought to put some policy enforcement so that, even by mistake, nobody can do it.