MSSQL
OUTPUT command and varibles in MSSQL 2005 Print E-mail
Written by Stanislav Duben   
Thursday, 17 April 2008
cofee_book.png In previous content I showed how to use the OUTPUT command for printing inserted or updated records in a T-SQL query. It's simple, it's powerfull and saves us lines of code. Usually we need use these values in some larger script and assigned them to variables or insert them into other tables. Let's see how to do it.

Be first to comment this article | Quote this article on your site | Views: 2819 | Print

Tag it:
Delicious
Digg
YahooMyWeb
Technorati
Read more...
 
OUTPUT command in MSSQL 2005 Print E-mail
Written by Stanislav Duben   
Wednesday, 29 August 2007
OUTPUT Command in MSSQL 2005In MSSQL 2005 is new T-SQL command OUTPUT, that was used only as output parameters in previous MSSQL version. Now you can use it in T-SQL commands to make data changes and see results by one command without using Triggers.






Comments (3) | Quote this article on your site | Views: 3593 | Print

Tag it:
Delicious
Digg
YahooMyWeb
Technorati
Read more...
 
Search text in Triggers and Store Prodedures Print E-mail
Written by Stanislav Duben   
Friday, 24 August 2007
Search text in store procedures and triggersIf you want search text not only in name of triggers and store procedures, using search object in query analyzer is not enough and in MS SQL 2005 there isn't any search object function. So you need other way how to do it.

Comments (1) | Quote this article on your site | Views: 3033 | Print

Tag it:
Delicious
Digg
YahooMyWeb
Technorati
Read more...
 
Object search in MSSQL 2005 Print E-mail
Written by Stanislav Duben   
Friday, 20 July 2007
Object search in MSSQL 2005In query analyzer for Microsoft SQL 2000 you can search objects easily, just open Query Analyzer and press F4. In Microsoft SQL Server Management Studio for SQL 2005, this search functionality has been removed. (Microsoft said that nobody uses this function so it's useless), no comment for this reason. We need this functionality, so how to do it?

Comments (2) | Quote this article on your site | Views: 5986 | Print

Tag it:
Delicious
Digg
YahooMyWeb
Technorati
Read more...
 
How to make LIMIT (from, to) in MSSQL 2005 Print E-mail
Written by Stanislav Duben   
Friday, 20 July 2007

Sample ImageLots of developers complain, that Microsoft SQL hasn't something similar to LIMIT(from, to) as MySQL has. In past time there was a solution by SELECT TOP n and inserted SELECT TOP n- With new T-SQL commands in Miscrosoft SQL Server 2005  is situation simpler.

 

  

Comments (6) | Quote this article on your site | Views: 13571 | Print

Tag it:
Delicious
Digg
YahooMyWeb
Technorati
Read more...