Logo Sozezzo
Sozezzo's notes

  • Home
  • Blog
    • Archives
    • Series
    • Categories
    • Tags
  • Tools
    • Github
    • What is my IP ?
    • Create password
    • Sql Server Connection String
    • QR Code
    • Buzzword
    • Encoder Url
    • URI Obfuscator
    • Gym
    • Json editor


  • Github RSS

  • Font Size
  • Mode
  1. Home
  2. Tags
  3. Metacoding

How to Script User and Role Object Permissions in SQL Server for Database

May 1, 201511 min read It SqlscriptCreateMetacodingSql

This article is nice ( we have a little bug ) , and the SQL script is not execute-safe (if you run twice, you have errors ). It is for a specific database, when you need to save all SQL Server, you must run for each database. 1 2PRINT '-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --' 3PRINT '-- SQL Security...

Read More

Create a XML Select From a Table Definition.

April 24, 20153 min read It SqlscriptMetacodingSelect XmlXml

Transform table definition to XML select, it can be useful when we need to create many XML select or re-create it. Result: 1 2SELECT 3 [Message].value('(msg_Customers/Customers/CustomerID)[1]', 'nchar(5)') as [CustomerID] 4, [Message].value('(msg_Customers/Customers/CompanyName)[1]', 'nvarchar(40)') as [CompanyName] 5,...

Read More
Profile
Milton Sozezzo
Milton Sozezzo
About
Taxonomies
it 74 sqlscript 58 follow 18 blog 9 firefox 9 tutorial 6 powershell 5 c 3 programming 3 sql 3 ctutorial 2 ai 1 android 1 automated 1 browser 1 c-sharp 1 commandline 1 config 1 csharp 1 gym 1 java 1 Markdown 1 sante 1 serialize 1 sql server 1
create 3 my day 3 security 3 sql 3 sql server 3 android 2 audit 2 backup 2 column 2 comment 2 database 2 deadlock 2 Markdown 2 metacoding 2 migrer 2 php 2 pluxml 2 table 2 web service 2 xml 2 alert 1 alwayson;shrink database;disaster 1 ASPX 1 blocked 1 blog 1 broker service 1 cell 1 CLR 1 command line 1 concatenate 1 ALL 144
2023 2 2022 7 2021 4 2020 10 2019 22 2018 15 2017 12 2016 16 2015 43 2014 8 2013 2 0001 2
Posts
  • Markdown Syntax Guide
    Markdown Syntax Guide
    November 9, 2020
  • Using API ChatGPT - First Notes
    April 29, 2023
  • Execute a Query on Remote Sql Server
    April 22, 2023
  • How to Save/Restore Serializable Object to/From File in C# ?
    December 13, 2022
  • Creating Automated Browser Tests With Selenium WebDriver in C#
    December 13, 2022
    • docs
    • Markdown Syntax Guide
Copyright © 2000-2024 Sozezzo. All Rights Reserved.