ISQLHelper Help Document

 Help Document

Step 1:

  • Click the Config Database link.
        



 

Step 2:

  • Enter your server details. This application requires a server because your data and connection strings are stored on your server. After configuration, a new database named isqlhelper will be created, which is essential for this application. If the server is not available, please configure your local database.



Step 3:

  • Click the Config icon.


Step 4:

  • Go to the login page and click the Create Account link.


  1. Create your own account. By default, the first user will be the admin. Other users need permissions assigned on a menu basis.



  1. After creating the account, go to the login page.
  2. Enter your login details. After successful login, the menu page will be displayed.


Step 5:

              After selecting any tools, click the Add New Data Source link and enter your connecting server's information. This information will only be stored on your configured server, not shared elsewhere, and all information will be encrypted.

 

------------------------------------End--------------------------------

Incase any issues you are facing contact me any time.

Email: r.prabakarmca@gmail.com

Phone:8825858515

Website : https://isqlhelper.blogspot.com/

ISQLHelper Family Now in WhatsApp!

ISQLHelper Family Now in WhatsApp!


Welcome to the ISQLHelper family WhatsApp group! 🎉 Connect with fellow members who share a passion for SQL and database management. Whether you're a beginner seeking guidance or a seasoned pro offering expertise, this community is here to support and empower you in your SQL journey.


Get ready to:


🔹 Share tips, tricks, and best practices for SQL development.

🔹 Seek advice and assistance on SQL queries, optimizations, and troubleshooting.

🔹 Discuss the latest trends and advancements in database technology.

🔹 Collaborate on SQL projects and exchange valuable resources.

🔹 Network with like-minded professionals and expand your SQL knowledge.


Join us in fostering a vibrant community dedicated to mastering SQL and enhancing our database skills together. Let's SQL with confidence and efficiency! 💪✨ 


Please join:






Happy News Now sql Trace support SQL Azure

Enjoy all, Now your ISQLHelper applications SQL trace support Azure server also use this save your valuable time, please send me your feedback below the mail address "r.prabhakarmca@gmail.com".

Note: Please use the latest version Now (5.9)











How do sql indexes work

How do sql indexes work

 

How do sql indexes work


In this video we will discuss how indexes actually work and help improve the performance of our SQL queries. We will discuss how both the index types work - Clustered and Non-clustered.

Clustered Index Structure

Consider the following Employees table

sample employees table

EmployeeId is the primary key, so by default a clusterd index on the EmployeeId column is created. This means employee data is sorted by EmployeeId column and physically stored in a series of data pages in a tree like structure that looks like the following.

how sql server indexing works

  • The nodes at the bottom of the tree are called data pages or leaf nodes and contain the actual data rows, in our case employee rows.
  • These employee rows are sorted by EmployeeId column, because EmployeeId is the primary key and by default a clusterd index on this column is created.
  • For our example, let's say in Employees table we have 1200 rows and let's assume in each data page we have 200 rows.
  • So, in the first data page we have 1 to 200 rows, in the second 201 to 400, in the third 401 to 600, so on and so forth.
  • The node at the top of the tree is called Root Node.
  • The nodes between the root node and the leaf nodes are called intermediate levels.
  • The root and and the intermediate level nodes contain index rows.
  • Each index row contains a key value (in our case Employee Id) and a pointer to either an intermediate level page in the B-tree, or a data row in the leaf node. 
  • So this tree like structure has a series of pointers that helps the query engine find data quickly.
  • How SQL Server finds a row by ID

    For example, let's say we want to find Employee row with EmployeeId = 1120

    database index tutorial

    1. So the database engine starts at the root node and it picks the index node on the right, because the database engine knows it is this node that contains employee IDs from 801 to 1200.
    2. From there, it picks the leaf node that is present on the extreme right, because employee data rows from 1001 to 1200 are present in this leaf node.
    3. The data rows in the leaf node are sorted by Employee ID, so it's easy for the database engine to find the employee row with Id = 1120.

    Notice in just 3 operations, SQL Server is able to find the data we are looking for. It's making use of the clustered index we have on the table. Let's look at this in action.

How SQL Server finds a row by ID

For example, let's say we want to find Employee row with EmployeeId = 1120

database index tutorial

  1. So the database engine starts at the root node and it picks the index node on the right, because the database engine knows it is this node that contains employee IDs from 801 to 1200.
  2. From there, it picks the leaf node that is present on the extreme right, because employee data rows from 1001 to 1200 are present in this leaf node.
  3. The data rows in the leaf node are sorted by Employee ID, so it's easy for the database engine to find the employee row with Id = 1120.

Notice in just 3 operations, SQL Server is able to find the data we are looking for. It's making use of the clustered index we have on the table. Let's look at this in action.

The actual execution plan is below.

clustered index seek

Notice, the operation is Clustered Index Seek, meaning the database engine is using the clustered index on the employee Id column to find the employee row with Id = 932000

  • Number of rows read = 1
  • Actual number of rows for all executions = 1

Number of rows read, is the number of rows SQL server has to read to produce the query result. In our case Employee Id is unique, so we expect 1 row and that is represented by Actual number of rows for all executions.

With the help of the index, SQL server is able to directly read that 1 specific employee row we want. Hence, both, Number of rows read and Actual number of rows for all executions is 1.

So the point is, if there are thousands or even millions of records, SQL server can easily and quickly find the data we are looking for, provided there is an index that can help the query find data.



How to Find Table Text value All columns in sql server

How to Find Table Text value All columns in sql server

 DECLARE

    @search_string  VARCHAR(100),
    @table_name     SYSNAME,
    @table_schema   SYSNAME,
    @column_name    SYSNAME,
    @sql_string     VARCHAR(2000)

SET @search_string = 'Test'

DECLARE tables_cur CURSOR FOR SELECT TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'

OPEN tables_cur

FETCH NEXT FROM tables_cur INTO @table_schema, @table_name

WHILE (@@FETCH_STATUS = 0)
BEGIN
    DECLARE columns_cur CURSOR FOR SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = @table_schema AND TABLE_NAME = @table_name AND COLLATION_NAME IS NOT NULL  -- Only strings have this and they always have it

    OPEN columns_cur

    FETCH NEXT FROM columns_cur INTO @column_name
    WHILE (@@FETCH_STATUS = 0)
    BEGIN
        SET @sql_string = 'IF EXISTS (SELECT * FROM ' + QUOTENAME(@table_schema) + '.' + QUOTENAME(@table_name) + ' WHERE ' + QUOTENAME(@column_name) + ' LIKE ''%' + @search_string + '%'') PRINT ''' + QUOTENAME(@table_schema) + '.' + QUOTENAME(@table_name) + ', ' + QUOTENAME(@column_name) + ''''

        EXECUTE(@sql_string)

        FETCH NEXT FROM columns_cur INTO @column_name
    END

    CLOSE columns_cur

    DEALLOCATE columns_cur

    FETCH NEXT FROM tables_cur INTO @table_schema, @table_name
END

CLOSE tables_cur

DEALLOCATE tables_cur

ISqlHelper Application Download For Free (6.9.1)

                                         


ISqlHelper Application Download For Free.


            o   SQL Compare

                            o   Data Compare

o   Import Data

o   Export Date CSV and Excel Files

o   Folder to SQL Compare Files

o   SQL Trace

o   Table Script

o   Procedure Script

o   Database Document

o   Create Procedure

o   Trigger Script

o   Time Track

o   Script Maintenance

o   Find the table Data

o   Procedure Backup

o   Blob File Upload

                                 o   SQLto PostgreSQL converter