milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Alt + F1

Details
Written by: Stanko Milosev
Category: MS SQL
Published: 29 April 2009
Last Updated: 13 September 2012
Hits: 5928

If you want to see table properties (sp_help) than in query editor just select a table you want to see properties and pres on the keyboard Alt + F1

List all tables in a database.

Details
Written by: Stanko Milosev
Category: MS SQL
Published: 03 December 2008
Last Updated: 04 July 2013
Hits: 5882

How to get list of all tables in MS SQL Server?

 SELECT * FROM information_schema.Tables where table_type = 'BASE TABLE'

From here.

Limit aka Paging

Details
Written by: Stanko Milosev
Category: MS SQL
Published: 15 August 2008
Last Updated: 01 March 2013
Hits: 6147

Question is how to show limited number of records on one page, like MySQL limit?

There is query which you can use like:

select * from (
  select top 10 emp_id,lname,fname from (
    select top 30 emp_id,lname,fname
    from employee
    order by lname asc) as newtbl order by lname desc
  ) as newtbl2 order by lname asc

 

Taken from here.

But I don't like that approach because with complicated queries things can be more complicated.

I rather took something like this:

WITH Ordered AS(
  SELECT ROW_NUMBER() 
  OVER (ORDER BY OrderID) AS RowNumber, 
    OrderID, OrderDate FROM Orders
  ) 

  SELECT * FROM Ordered WHERE RowNumber between 21 and 30 

Taken from here. It works only in MS SQL Server 2005 and above.

Unfortunately, WITH approach I couldn't use on dhtmlx.

---

With MS SQL Server 2012, we have new keyword offset fetch:

SELECT * FROM myTable 
  order by keyWord 
  offset 0 rows fetch next 5 rows only

and here is example with conditional order:

declare @myCol int = 0; 
SELECT *   FROM myTable   
order by 
case @myCol 
  when 0 then 0 
end 
offset 25000000 rows  fetch next 5 rows only GO

from here

Delphi 2009.

Details
Written by: Stanko Milosev
Category: IBM WebSphere MQ
Published: 01 September 2010
Last Updated: 30 November -0001
Hits: 6777

My MQIC.pas for Delphi 2009 you can download from here. File you will find in the rar.

  1. Reason code:2102 - MQRC_RESOURCE_PROBLEM
  2. Transaction.
  3. Browse messages.
  4. The MQSC commands

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 81 of 164

  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85