Giter Site home page Giter Site logo

invaderzim85 / mssqltoolbelt Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 30.37 MB

Helper tool which provides a search, a class generator, a list of all custom tables, a definition export and some replication information of a MsSql database.

License: MIT License

C# 98.71% PowerShell 1.29%
helper sql mssql replication table classgenerator csharp efcore mahapps net8

mssqltoolbelt's Introduction

Hi there ๐Ÿ˜Ž

My name is Andreas and I'm a C# software developer and CPSA-F from germany.

Here one of my most favorite repos

InvaderZim's GitHub stats

And here some of my most used languages ๐Ÿ˜Š

Top Langs

Here is a list of a few useful repos

Repository Framework Description NuGet Release
ZimLabs.Database.MySql .net Standard 2.0 Class library for easy and fast connection to a MySql database. Nuget GitHub release (latest by date)
ZimLabs.Database.MsSql .net Standard 2.0 Class library for easy and fast connection to a Microsoft SQL database. Nuget GitHub release (latest by date)
ZimLabs.CoreLib .net 6 Small package with some helper functions Nuget GitHub release (latest by date)
ZimLabs.Mapper .net Standard 2.0 Class library which provides a auto mapper. Nuget GitHub release (latest by date)
ZimLabs.WpfBase.NetCore - ARCHIVE .net 5 WPF Class library which provides classes / functions for the easy use of MVVM in a WPF application Nuget /
ZimLabs.TableCreator .net 7 This library is not very special :) It takes a list of objects and creates an ASCII "table", markdown table or a CSV list. Very simple and straigt forward. Nuget GitHub release (latest by date)
ZimLabs.Settings.Sqlite .net 7 This library provides functions to manage settings using a SQLite database. Nuget GitHub release (latest by date)

mssqltoolbelt's People

Contributors

dependabot[bot] avatar invaderzim85 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fasteddys

mssqltoolbelt's Issues

ClassGenTemplate - usings

Add the following usings to the class generator template which is used when a namespace is specified:

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

FK not shown

The foreign keys are missing in the index list.

SQL query to load the FKs:

SELECT
    *
FROM
    sys.foreign_keys AS fk

    INNER JOIN sys.tables AS t
    ON t.object_id = fk.parent_object_id
WHERE
    t.[name] = 'TABLENAME';

Copy & Paste Issue

There is an issue with the copy function within the table grid (search)

Index-Defragmentation

General

It's possible to load the defragmentation of table indexes with the Microsoft.SqlServer.Management.Smo class.

Functions

The following functions should be added:

  1. Possibility to load the defragmentation of a single table
  2. Possibility to rebuild an index of a single table
  3. Possibility to load the defragmentation of a list of tables. It should be possible to add wildcards, so that the user can specify which table he/she likes to see.
  4. Possibility to rebuilt the indexes which were loaded in step 3.
  5. Export function (CSV, Markdown, JSON)

NOTE:

Since the process is very computationally intensive or takes a long time, the function should be designed in such a way that the user can cancel it and that the normal function of the program is not impaired.

Data annotation (DataType)

The data annotation for the data type has to be it's own attribute:

[Key]
[Column("Datum")]
[DataType(DataType.Date)]
public DateTime CreationDateTime { get; set; }

Max. Length shows wrong value

The max. length shows the wrong value.

SELECT DISTINCT
    c.[name],
    c.max_length AS [MaxLength]
FROM
    sys.columns AS c

    INNER JOIN sys.tables AS t
    ON t.object_id = c.object_id
WHERE
    t.name = 'CommentTable';

SELECT
    COLUMN_NAME,
    CHARACTER_MAXIMUM_LENGTH,
    CHARACTER_OCTET_LENGTH
FROM
    INFORMATION_SCHEMA.COLUMNS
WHERE
    TABLE_NAME = 'CommentTable'

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.