Miscellaneous

Technical Article

Adding Sorts to SQL Server Views

  • Script

Microsoft says that you cannot add an ORDER BY to a view unless it comes with a TOP clause at the beginning of the query. Many people think that if that's true then you cannot "Order" the whole query but only the top few. However, this is not true because when you use TOP 100 […]

You rated this post out of 5. Change rating

2002-07-11

237 reads

Technical Article

Finding the Nth Maximal Value

  • Script

This procedure gets a tablename, column and an integer number N as parameters and finds the Nth maximum value of the column's value in a table for example :  running it with 'products', 'UnitPrice' , 13 ,  @reswill get the 13TH largest value of unitprice from products is no such N exist an error message […]

You rated this post out of 5. Change rating

2002-07-10

242 reads

Technical Article

VB6/ADO Stored Procedure Call Generator

  • Script

Generates a VB6/ADO procedure prototype, procedure call, and ADO Command Object Parameters.Append calls.  To use, simply set the @spname variable equal to the name of your stored procedure, run, and cut and paste the output into you VB program.  The generated code may require some slight modifications, but this should save you a lot of […]

5 (1)

You rated this post out of 5. Change rating

2002-07-04

1,055 reads

Blogs

Using Flyway Prepare for State-Based Deployments

By

One of the neat enhancements made to Flyway was the addition of state-based workflows...

How I Migrated to Azure PostgreSQL Flex from Single Server

By

I did a couple of posts previously on dumping/restoring Azure PostgreSQL databases and also...

Have a Plan for Your Personal Downtime

By

Most of us know that spending a lot of time on social media and...

Read the latest Blogs

Forums

WHERE condition using ='value' returns different results that using IN('value')

By MyDoggieJessie

Have an interesting scenario - user found a discrepancy with rows returned when running...

Complex Query (Multiple Tables & Joins) - Need to Restrict to Max Date

By gski

I am using the query listed below. USE GAGETRAK_26237 SELECT G.Gage_ID 'ID', G.Model_No 'Model',...

Unknown Token Received From SQL Server

By RonMexico

I have an issue when a stored procedure is executed from the SQL Server...

Visit the forum

Question of the Day

Hash Joins IV

What is a hash bailout?

See possible answers