Find Jobs
Hire Freelancers

Write a TSQL stored procedure

$30-250 USD

処理中
投稿日: 6年以上前

$30-250 USD

完了時にお支払い
Need to centrally change SQL Login passwords for a number of sql servers. The spreadsheet explains what is required. Scenario is that we have a central sql server with database dba_db which contains a table with SQL servernames and connection details. I want you to write a sproc to run through (RUNID=1) each row and pick out the servename, connect to it using sqlcmd and populate the other table called tbl_SQLLogonPWDs. Please create the following sprocs: 1. usp_GetHashCurrentPWDs - use the ([sp_dba_help_revlogin] in the dba_db) to get the hash of the logins and put in field [CurrentPWD] of tbl_SQLLogonPWDs table. Also populate the column [SQLQuery to Backout to OLDPWD] with this hash. Next someone will manually put in NewPWD in the newly created rows (by this sproc) of the table. Once we have the NewPWD values in the rows we use the next sproc to apply the new pwds. 2. usp_ApplyNewPWDs - Dynamic sqlcmd query to each server from tbl_SQLLogonPWDs and run ALTER LOGIN statement for each [Login] with NewPWD Store the statement run in the column [SQLQuery to Backout to OLDPWD], apply it to the server or login (if input parameter =apply), and update RUNID and the daterun. 3. usp_BackoutPWDs - "Dynamic sqlcmd query to each server from tbl_SQLServers and run script in field [SQLQuery to Backout to OLDPWD] " 4. tbl_SQLServerServiceAccounts Dynamic sqlcmd query to each server from tbl_SQLServers and populate the Service account fields 5. usp_TestPWD - Create a Stored Procedure to Test passwords for Logins Please quote asap. Thanks Aasim
プロジェクト ID: 15344784

プロジェクトについて

3個の提案
リモートプロジェクト
アクティブ 6年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です

クライアントについて

UNITED KINGDOMのフラグ
London, United Kingdom
5.0
32
メンバー登録日:7月 15, 2005

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。