List of public pages created with Protopage

Home

News

BBC News

This Week in Tech

PopSugar

MSNBC - Top Stories

Fresh Air

ESPN.com

USA TODAY - Breaking News and Latest News Today

FOXNews.com

New York Post

Washington Post

Home | Mail Online

US Top News and Analysis

Politics, Policy, Political News Top Stories

The Hill News

Bookmarks

Bookmarks

Bookmarks

Plain sticky notes

Sticky note

Click 'edit' on the Bookmarks widget to add all of your favorite sites to your page for quick access

Notes

Plain sticky notes

Sticky note

Sticky note

Click here to type

The Law Book

Bookmarks

Bookmarks

Maxims Law

Bookmarks

Bookmarks

Sticky Notes

Bookmarks

Bookmarks

Plain sticky notes

Grief

There are 5 Stages to Grief - According to the home treatment team. 1. Denial 2. Anger 3. Bagaining 4. Depression 5. Acceptance It has been 9 years since Adam Committed Suicide - I am at status 4 - Depression. I have contacted Age Concern to see if I can get Home Care - they were not very helpfull - a lost cause.

Acme Industries - Web Development

Bookmarks

Bookmarks

TrainIT Project - Room101

Bookmarks

Bookmarks

SQL Server Development

Rich sticky notes

SQL SErver Development

Conducting SQL Server development involves a broad range of activities, from setting up your development environment to designing databases, writing efficient queries, and deploying your solutions. Here's a comprehensive report on how to approach SQL Server development:

How to Conduct SQL Server Development

SQL Server development is a crucial skill for anyone working with data-driven applications. It encompasses the design, implementation, and maintenance of databases and their objects. This report outlines the key aspects of conducting effective SQL Server development.

1. Setting Up Your Development Environment

Before you start coding, you need a robust development environment:

2. Understanding Core SQL Server Concepts

A solid foundation in SQL Server concepts is essential:

3. Database Design Principles

Effective database design is crucial for performance, scalability, and maintainability:

4. Developing SQL Server Objects

This is where you implement your database design:

5. Performance Tuning and Optimization

A critical aspect of SQL Server development:

6. Data Migration and ETL

7. Security Best Practices

8. Version Control and Deployment

9. Testing and Maintenance

Conclusion

Conducting SQL Server development is an iterative process that involves design, implementation, testing, and optimization. By following these guidelines, leveraging appropriate tools, and adhering to best practices, you can develop robust, performant, and secure SQL Server solutions that meet the needs of your applications and users. Continuous learning and staying updated with new SQL Server features are also vital for any successful developer.

Application Development and Hosting

Rich sticky notes

SQL Serverl

Creating and hosting a SQL Server database application involves several key steps, from initial setup to deployment and ongoing management. Here is a breakdown of the process:

1. Database Creation

The first step is to design and create your database. This is where you define the tables, relationships, and other structures that will store your application's data.


2. Application Development

Once the database is designed, you build your application. This could be a web application, a desktop program, or a mobile app. The application will connect to the database to perform CRUD (Create, Read, Update, Delete) operations.


3. Hosting the Database

Hosting is the process of making your database accessible to your application, typically over a network. There are a few different approaches you can take.


4. Deployment and Management

After you've developed the application and chosen a hosting solution, you'll deploy your application and database.

This video provides a quick, step-by-step guide on how to set up and restore a SQL Server database. SQL Server Database Quick Step-by-Step Setup Guide

Creating a Server

Rich sticky notes

Installation

You don't create a server instance in SQL Server Management Studio (SSMS). Instead, you install a SQL Server instance on your machine or a server, and then you use SSMS as a client application to connect to and manage that instance.

Think of it like this: SQL Server is the engine ⚙️ that processes your data, and SSMS is the dashboard 🚗 you use to control it. You have to install the engine first.

Installing a SQL Server Instance

The process of installing a SQL Server instance is done using the SQL Server installation wizard, not SSMS. This is where you actually create the server instance.

  1. Run the SQL Server Setup File: You'll need to download and run the SQL Server installer. This is a separate program from SSMS.

  2. Choose a New Stand-alone Installation: The installation wizard will guide you through the setup process. You'll select the option for a "New SQL Server stand-alone installation or add features to an existing installation."

  3. Specify Instance Name: This is a critical step. On the Instance Configuration page, you'll choose between a Default instance or a Named instance.

    • Default Instance: This gives your instance a generic name like MSSQLSERVER. You can only have one default instance per machine.

    • Named Instance: This allows you to give your instance a custom, descriptive name (e.g., SQLServer01, FINANCE_DB). This is useful for running multiple instances on a single machine.

  4. Complete the Installation: The wizard will continue with other configurations, such as service accounts, authentication mode (Windows or Mixed-Mode), and administrators. Once complete, your server instance is created.


Connecting to the Instance in SSMS

After the SQL Server instance is installed, you can use SSMS to connect to it.

  1. Open SSMS: When you first open SSMS, the Connect to Server dialog box appears automatically.

  2. Enter Server Name: In the Server name field, you'll enter the name of the instance you just created.

    • For a default instance on your local machine, you can use . or localhost.

    • For a named instance, the format is ServerName\InstanceName. For example, DESKTOP-123456\SQLServer01.

  3. Select Authentication: Choose your authentication method, typically Windows Authentication or SQL Server Authentication, and then click Connect.

  4. Manage the Instance: Once connected, you can use the Object Explorer in SSMS to manage your databases, security, and other objects on the server instance.


This video walks you through the steps of installing SSMS and creating a local instance (LocalDB) to get started with SQL Server.

Connecting to Default Server

Rich sticky notes

Local

If you didn't create a server name during a SQL Server installation, you can connect to it using the default instance name, which is the computer's name. Alternatively, you can use (local) or a single period . to refer to the local machine. This method works for a default installation where you didn't specify a custom instance name.


Finding the Server Name

If you're unsure of your computer's name, there are a few ways to find it:


Connecting in SQL Server Management Studio (SSMS)

When you open SSMS, a "Connect to Server" dialog box appears. In the "Server name" field, you can enter one of the following:

After entering one of these options, click "Connect." If the installation was successful, you should be able to connect to the SQL Server instance.


What to do if Connection Fails

If you still can't connect, there could be a few other issues:

  1. SQL Server Services not running: Open the SQL Server Configuration Manager and ensure that the SQL Server (MSSQLSERVER) and SQL Server Browser services are running.

  2. Firewall: Your firewall might be blocking the connection. You may need to create an inbound rule to allow traffic on the default SQL Server port (1433).

  3. Multiple Instances: It's possible you installed a named instance without realizing it. In this case, you'll need to find the instance name by checking the services in SQL Server Configuration Manager or the "Programs and Features" list in the Control Panel. The instance name will be in parentheses next to the SQL Server service.

Don't Know Server Name

Rich sticky notes

Solution

Not knowing your SQL Server name can be a common issue, but there are a few straightforward ways to find it and connect. The method you use depends on whether you have a default instance or a named instance, as well as what tools you have available.


Finding the Server Name

If you're on the same machine as the SQL Server, you can use these methods:


Connecting to SQL Server

Once you have the instance name, you can connect.

The video below explains how to check your SQL Server instance name using the Configuration Manager or the Windows Services.

Home Server Set Up

Rich sticky notes

Red Octopus Briadband - Virgin

Setting up a SQL Server home server requires careful consideration of security and network configuration. Here's a breakdown of the steps, from installation to port forwarding.

Installing SQL Server

  1. Choose the right edition: For a home server, SQL Server Express is an excellent choice as it's free and suitable for small-scale applications. Download it directly from Microsoft's website.

  2. Run the installer: Once downloaded, run the installer. Choose the Custom installation option to get more control over the features.

  3. Specify installation settings: During installation, you'll be prompted to set up the following:

    • Instance Name: Choose a unique name for your SQL Server instance (e.g., HOME_SERVER).

    • Authentication Mode: Select Mixed Mode, which allows both SQL Server and Windows authentication. You'll need to set a strong password for the sa (system administrator) account.

    • Features: Select the Database Engine Services and any other features you might need, like the management tools if you haven't installed them separately.

Configuring the SQL Server Service

  1. Enable TCP/IP: By default, SQL Server might not be configured to accept network connections. To enable it, open SQL Server Configuration Manager (you can search for it in the Start Menu).

  2. Navigate to Network Configuration: In the left pane, expand SQL Server Network Configuration and click on Protocols for [YourInstanceName].

  3. Enable TCP/IP: In the right pane, right-click on TCP/IP and select Enable. You'll need to restart the SQL Server service for this change to take effect.

  4. Set a Static Port: It's good practice to assign a static port instead of relying on dynamic ports. To do this, double-click on TCP/IP, go to the IP Addresses tab, scroll down to the IPAll section, and enter 1433 (the standard SQL Server port) in the TCP Port field. Leave the TCP Dynamic Ports field blank.


Configuring Your Router for Port Forwarding

This step is crucial for allowing external connections to your SQL Server. You'll be forwarding a specific port on your router to the internal IP address of your server.

  1. Find your server's IP address: On your server, open Command Prompt and type ipconfig. Look for the IPv4 Address. This is your server's local IP address. It's a good idea to set this as a static IP address on your router to prevent it from changing.

  2. Access your router's settings: Open a web browser and type in your router's default gateway IP address (also found with ipconfig). This is usually something like 192.168.1.1 or 192.168.0.1. You'll need to log in with your router's credentials.

  3. Find Port Forwarding settings: The exact location of this setting varies by router manufacturer, but it's often found under sections like NAT, Virtual Server, or Firewall.

  4. Create a new rule: You will create a rule to forward incoming traffic on a specific port to your server's IP address.

    • Service Port: Enter 1433.

    • Internal Port: Enter 1433.

    • Protocol: Select TCP.

    • Internal/Local IP Address: Enter the static IP address of your server.

  5. Save and apply the rule: Save the settings and restart your router if prompted.


Configuring Firewall Settings (for the PC)

Your computer's firewall will block incoming connections by default, so you need to create an exception for SQL Server.

  1. Open Windows Defender Firewall: Search for Windows Defender Firewall with Advanced Security in the Start Menu.

  2. Create a new inbound rule: In the left pane, click on Inbound Rules. In the right pane, click on New Rule....

  3. Set the rule type: Choose Port and click Next.

  4. Specify the port: Select TCP and enter 1433 in the Specific local ports field. Click Next.

  5. Allow the connection: Choose Allow the connection and click Next.

  6. Select profiles: Select all three profiles (Domain, Private, and Public) to ensure the rule is active regardless of your network type. Click Next.

  7. Name the rule: Give the rule a descriptive name like SQL Server 1433 and click Finish.

Regarding Port 80

Port 80 is the standard port for HTTP traffic, not SQL Server. Setting up port 80 forwarding is done in the same way as port 1433 but you would specify 80 instead. If you're setting up a web server that needs to communicate with your SQL Server, you would typically have your web application on a different machine or on the same machine but configured to listen on port 80. The web application would then connect to the SQL Server using its internal IP address and port 1433. It's generally not recommended to expose port 80 on a home server unless you have a specific web application running there.

Gemini PHP

Rich sticky notes

Bill of Material - Company Structure

Please write the PHP code for a multi-lingual Bill of Materials (BOM) application. The application should have a dropdown language selector, navigation buttons (first, next, last, prior), and a search function by business name. ;dI also need add, amend, and delete buttons. The data should be stored in a simple text file, not a database.

With fields parent cost centre / level / child cost centre / cost code / cost code descrittion