Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Create Read Only SQL User

Posted on March 30, 2015 By David Kittell
USE [master]
GO

CREATE LOGIN [LimitedUser]
	WITH PASSWORD = N'testPass'
		,DEFAULT_DATABASE = [master]
		,CHECK_EXPIRATION = OFF
		,CHECK_POLICY = OFF
GO

USE [DatabaseName]
GO

CREATE USER [LimitedUser]
FOR LOGIN [LimitedUser]
GO

USE [DatabaseName]
GO

GRANT SELECT
	TO [LimitedUser]
GO
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code MSSQL SQL

Post navigation

Previous post
Next post

Related Posts

UNIX – Laptop Setup

Posted on April 9, 2018April 9, 2018

This is my basic setup for a laptop/desktop that I have for my family to use. Debian Based Should work on Debian, Ubuntu (all Ubuntu flavors) sudo apt-get –assume-yes install ntp sudo timedatectl set-timezone America/Detroit sudo service ntp stop sudo ntpdate us.pool.ntp.org sudo service ntp start echo nameserver 208.67.222.123 >…

Read More

ProgressBar Control

Posted on September 18, 2013October 26, 2015

Imports System Imports System.Collections Imports System.Data Imports System.Drawing Imports System.Windows.Forms Imports System.ComponentModel Imports System.Drawing.Drawing2D Imports System.IO Public Class MainClass Shared Sub Main() Dim form1 As Form = New Form1 Application.Run(form1) End Sub End Class Public Class Progress Inherits System.Windows.Forms.UserControl #Region " Windows Form Designer generated code " Public Sub New()…

Read More

PowerShell – Compare Windows Server Host Files

Posted on February 10, 2020

If you maintain more than one Windows server sometimes you need a quick way to determine the host file differences on each server, the code below will help. function Read-HostFile() { [CmdletBinding()] Param( [Parameter(Mandatory = $True)] [String] $Computer, [boolean] $ListComputerName = $true ) $Pattern = ‘^(?<IP>\d{1,3}(\.\d{1,3}){3})\s+(?<Host>.+)$’ $File = "\\$Computer\c$\Windows\System32\Drivers\etc\hosts" $Entries…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes
 

Loading Comments...
 

You must be logged in to post a comment.