Scripts

Technical Article

Paging - Returning a Subset of a Recordset

Use this script to navigate your recordset a page at a time containing a specific number of records and in a specified order.I use the supplier table of the northwind Database to demonstrate thisReturn List of suppliers, ordered by supplier desc, 10 records at a timeexecute prc_lov_SUPPLIERS "", "Suppliers", 1, 1 ''Page oneexecute prc_lov_SUPPLIERS "", […]

You rated this post out of 5. Change rating

2005-09-08 (first published: )

240 reads

Technical Article

Sincronizar SID DB user com SID Login SQL

Quando você restaura um banco ou 'atacha' ao seu servidor de outro servidor, pode ocorrer de o usuário que existe no banco não sincronizar com o login do SQL server anteriormente criado com DBO desse banco, então esse script faz exatamente isso, pega o SID do SQL e dá um UPDATE no SID do usuário […]

You rated this post out of 5. Change rating

2005-09-06 (first published: )

358 reads

Technical Article

List DB tables and their maximum row size (bytes)

Many users during the process of insert or update get the following warning issued by SQL ServerWarning: The table 'TABLE NAME' has been created but its maximum row size (XXXX) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length […]

5 (1)

You rated this post out of 5. Change rating

2005-09-02 (first published: )

321 reads

Technical Article

Formatting Dates

There are many ways to format dates, and rather that reinvent the wheel each time I've found it helpful to have a user defined function always available. As a function it of courses processes on each row, and to enable the most flexibility the formatting style is passed simply as a parameter. Year month and […]

You rated this post out of 5. Change rating

2005-08-31 (first published: )

464 reads

Technical Article

Drop all Databases (+the option to exclude one)

I made this Query because we fix databases localy on a workstation (we have no sql server) but when backup up the server they need to be deleted localy that could sometimes take a while.U can run this Query from the QA or ad it as a Job it's possible to run it from an […]

4.5 (2)

You rated this post out of 5. Change rating

2005-08-26 (first published: )

508 reads

Technical Article

Enterprise Manager Single Diagram Copy Script

This procedure will COPY an Enterprise Manager SINGLE DIAGRAM object between databases on a given SQL Server.This procedure takes in a source DB name, a Dest DB name, and the Diagram name.(Exec diagram_copy 'SOURCE_DB', 'DEST_DB', 'DIAGRAM NAME')This procedure DOES NOT have to be placed in either of the databases, you may run it from a […]

You rated this post out of 5. Change rating

2005-08-25 (first published: )

188 reads

Blogs

Spark Connect Dotnet November 2024 Where are we?

By

All Spark Connect Posts Introduction There have been quite a few changes in the last...

A New Word: Ochisia

By

ochisia – n. the fear that the role you once occupied in someone’s life...

Create a Numbers Table in Power Query

By

This is a quick blog post, mainly so I have the code available if...

Read the latest Blogs

Forums

Export Data-tier Application vs Generate Script: Why Does SQL Server Have Both?

By Ivan

Hey everyone, SQL Server has two mechanisms for deploying and moving a database to...

How Do You Patch 100 Database Servers?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item How Do You Patch 100...

Microsoft SQL announcements at PASS Data Community Summit 2024

By Press Release

Comments posted to this topic are about the item Microsoft SQL announcements at PASS...

Visit the forum

Question of the Day

What's the Ceiling?

What do I get as the results from this code?

SELECT CEILING (999.999), CEILING (-999.999);

See possible answers