Skip to content
Geeks Hangout
  • Home
  • Fixes
  • Tips
  • Scripts
  • Tools
  • About

SQL

MS SQL – Copying a Linked Server Table

January 6, 2021December 6, 2020 by Geeks Hangout
sql linked server

I recently used the following TSQL on a Microsoft SQL server to create and populate a table  from a table on a linked servers. In my case my linked server connection was linking to a MySQL database but the same …

Read more

Leave a comment

PowerShell – How to save an SQL query results to an CSV file

August 27, 2021June 3, 2018 by Geeks Hangout

The following is an example PowerShell script to connect to a Microsoft SQL Database and dump the results of a query into a CSV file. You will need to change the connections variables at the top of the script along …

Read more

8 Comments

SQL Script – Report a databases table sizes in megabytes

October 10, 2021March 19, 2015 by Geeks Hangout
SQL Server Banner

The below SQL script will return a list of tables in a database along with the table sizes in MB. ​You will get a report like the below;

Leave a comment

Disabling and Enabling All SQL Server Agent Jobs

December 20, 2015August 23, 2013 by Geeks Hangout

Disabling and Enabling All SQL Server Agent Jobs As part of a recent Microsoft SQL Server migration project I had a need to disabled and enable all of the Agent Jobs as various points, the below scripts did the job. This …

Read more

Leave a comment

MS SQL Helpful Statistics Queries

February 3, 2022December 21, 2012 by Geeks Hangout
SQL Server Banner

In this post you will find some method of return some helpful information for Microsoft SQL Get a list of databases The below query will return a list of none system databases on a Microsoft SQL Server; Or you can …

Read more

Leave a comment

Recent Posts

  • How to retrieve saved MySQL Workbench passwords
  • Testing a Serial COM Port Printer
  • Azure App Services and WordPress with PHP 8.1 / 8.2
  • How to use variables with Microsoft SQL
  • Microsoft Teams – Channel name is already taken [Fixed]
  • Azure Data Factory – How to backup and restore a pipeline
  • Setup a Laravel Valet Development Environment on MacOS

Recent Comments

  • Mark on Unifi Inform Status: Server Reject
  • Aleena on Azure Data Factory – How to Save Web Activity to Blob Storage
  • Sandy on System i / AS400 Client Access Copy and Paste with CTRL-C and CTRL-V
  • K.Praveen on WordPress Emails on Azure Configuring SendGrid
  • K.Praveen on WordPress Emails on Azure Configuring SendGrid
  • Bill on FIXED “The requested security information is either unavailable or can’t be displayed”
  • Caio Bauab on Azure Data Factory – Get and Use Key Vault Secrets
© 2025 Geeks Hangout
Hosted by: Cloudways | Ads by: Ezoic | Theme: Generate Press
🛠 The Tools I Use 🛠
Privacy Policy | Contact Me