In this tutorial we will learn basics of building a real-time app using SignalR. You learn how to:
- Create a web project.
- Add the SignalR client library.
- Create a SignalR hub.
- Configure the project to use SignalR.
- Add code that sends messages from any client to all connected clients.
At the end, you’ll have a working chat application ready for fun!Read the rest of this entry »
As part of my “How I did..” series, this is probably my first blog sharing about how I used ASP.Net’s MVC & other related tools to develop required modules very quickly. Putting right tool to work at right time in right place is an Art. We have a lot of technological stuff around us and being a developer or I should say being a Web Based Application Developer we need to choose technology wisely to develop things before getting hands dirty into real battle-field.
Before I start, let me give you a soft introduction to the organization where back in 2015 I was given the task to automate things from zero.. yes real Zero. Its was an educational organization having 50+ departments and over 2200 employees consisting on Teaching Faculty, Administration Officers and other supporting staff, and approximately 5000 active students enrolled in 5 different programs and we were a team of just two developers who knew programming – with no new hiring chances as hiring employees in public-sector organizations is a long process. Me, having experience of a decade that time had to lead the other person who was ready to help me in my technical decisions by all means. All the departments were operating independently having no centralized connected system, most of them were using MS Excel as data storage tool and a very few were using their own MS Access DBs to manage their records. Again I should remind this was on departmental level having no centralized connectivity. My immediate boss asked to get started with the work on automation process quickly to bear the pressure of other departments on IT Team, and we were unable to purchase any developed-software due to some un-writtable ground reasons.
The list of processes we were asked to automate started with Purchasing, Expenditures, Income, Budgeting, Employee Records (Human Resource) Management, Student Records, Fee & Dues calculations & receivables and our in-house Health Assurance Department.
Tools in Hand
The development tools we had in hand back that time were:
- Visual Studio 2012
- SQL SERVER 2008
Starter Site Template
In MVC 4 there was a starter site template available to get started with a simple website.
First thing first – We had to manage records of all Employees and Students around whom whole system had to revolve. Keeping in mind the fact at some point in near future we will allow them to login into the system to check their records, I simply decided to move on with ASP.Net Membership feature to quickly get the base infrastructure done for managing users in that system.
Sometime we may need to find out which date some perticular database was restored and by whom? Use following query to find out this information.WITH LastRestores AS ( SELECT DatabaseName = [d].[name] , [d].[create_date] , [d].[compatibility_level] , [d].[collation_name] , r.*, RowNum = ROW_NUMBER() OVER (PARTITION BY d.Name ORDER BY r.[restore_date] DESC) FROM master.sys.databases d LEFT OUTER JOIN msdb.dbo.[restorehistory] r ON r.[destination_database_name] = d.Name ) SELECT * FROM [LastRestores] WHERE [RowNum] = 1
Sometimes with restoring backups in SQL Server Database you may end up by getting this error:
Msg 3117, Level 16, State 1, Line 1
The log or differential backup cannot be restored because no files are ready to rollforward.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
You may usually receive this error while restoring a Differential Backup, in a situation when you haven’t restored FULL Backup OR you have restored Full Backup without “WITH NORECOVERY” option.
All you need to do is First restore FULL Backup with NORECOVERY option then restore a differential backup with “RECOVERY” option.
A Simple example is given below:
RESTORE DATABASE AdventureWorks FROM DISK = 'D:\AdventureWorks_Full.bak' WITH NORECOVERY RESTORE DATABASE AdventureWorks FROM DISK = 'D:\AdventureWorks_Diff.bak' WITH RECOVERY
Bitcoin is a global phenomenon that has taken over the globe. Funny Money is no longer a laughing matter. After years in the background the founders and visionaries emerge with a team of stellar innovators to set the record straight about the past and the future. Satoshi Nakamoto the visionary team shows us why there can only be one truth in time which is immutable.Knowing they could trust no one around them, they left their identification mark on the actual code itself to be retrieved as Id when they returned. They stunned the world to show the power of a decentralized system in real time. Like the Voynich code Satoshi Nakamoto and the team around them seek to preserve their legacy in plain view. See if you can find the secrets they leave behind in many forms. Follow the journey from the beginning and see how much went into creating a platform designed with the guidance of nature itself is surpassing modern technology to create an amazing future. Data embedded in the past becomes immutable in the future when retrieved and the keys of decryption display the message left by those who encrypted it. If we claim to be cryptographers and do not have anything encrypted it seems we are not worthy of the name. In the future our generations will look back at those who fought to hold on to the old ways as barbaric. Once we used an outhouse and today we have a modern sanitary system that has cut down many diseases; this is how we view the system we built to clean up the corruption in a system that could not regulate itself. Onward. Buy This Book
Hands-On Data Science with SQL Server 2017: Perform end-to-end data analysis to gain efficient data insight
by Marek Chmel (Author), Vladimir Muzny (Author)
Find, explore, and extract big data to transform into actionable insights
- Perform end-to-end data analysis―from exploration to visualization
- Real-world examples, tasks, and interview queries to be a proficient data scientist
- Understand how SQL is used for big data processing using HiveQL and SparkSQL
SQL Server is a relational database management system that enables you to cover end-to-end data science processes using various inbuilt services and features.
Hands-On Data Science with SQL Server 2017 starts with an overview of data science with SQL to understand the core tasks in data science. You will learn intermediate-to-advanced level concepts to perform analytical tasks on data using SQL Server. The book has a unique approach, covering best practices, tasks, and challenges to test your abilities at the end of each chapter. You will explore the ins and outs of performing various key tasks such as data collection, cleaning, manipulation, aggregations, and filtering techniques. As you make your way through the chapters, you will turn raw data into actionable insights by wrangling and extracting data from databases using T-SQL. You will get to grips with preparing and presenting data in a meaningful way, using Power BI to reveal hidden patterns. In the concluding chapters, you will work with SQL Server integration services to transform data into a useful format and delve into advanced examples covering machine learning concepts such as predictive analytics using real-world examples.
By the end of this book, you will be in a position to handle the growing amounts of data and perform everyday activities that a data science professional performs.
What you will learn
- Understand what data science is and how SQL Server is used for big data processing
- Analyze incoming data with SQL queries and visualizations
- Create, train, and evaluate predictive models
- Make predictions using trained models and establish regular retraining courses
- Incorporate data source querying into SQL Server
- Enhance built-in T-SQL capabilities using SQLCLR
- Visualize data with Reporting Services, Power View, and Power BI
- Transform data with R, Python, and Azure
Who this book is for
Hands-On Data Science with SQL Server 2017 is intended for data scientists, data analysts, and big data professionals who want to master their skills learning SQL and its applications. This book will be helpful even for beginners who want to build their career as data science professionals using the power of SQL Server 2017. Basic familiarity with SQL language will aid with understanding the concepts covered in this book.
Table of Contents
- Data Science Overview
- SQL Server 2017 as a Data Science Platform
- Data Sources for Analytics
- Data Transforming and Cleaning with T-SQL
- Data Exploration and Statistics with T-SQL
- Custom Aggregations on SQL Server
- Data Visualization
- Data Transformations with Other Tools
- Predictive Model Training and Evaluation
- Making Predictions
- Getting It All Together – A Real-World Example
- Next Steps with Data Science and SQL
Introducing Microsoft SQL Server 2016: Mission-Critical Applications, Deeper Insights, Hyperscale Cloud
by Stacia Varga (Author), Denny Cherry (Author), Joseph D’Antoni
If you have taken backup from one server and are going to restore on another server, but the problem is on New server the same directory structure or even the drive is not available as of the one from where the backup was taken.. In that case you will get error on restoring as SQL Server tries to create files on same locations.
To get rid of this situation use WITH MOVE command with your RESTORE as shown below:
RESTORE Database [NewWorkDB]
FROM DISK = ‘E:\WorkDB.bak’
WITH MOVE ‘Test’ to ‘E:\NewWorkDB.mdf’, –Test is logical name of datafile
MOVE ‘Test_log’ to ‘E:\NewWorkDB_log.ldf’ –Test is logcal name of log file
To get list of files being restored prior to perform a RESTORE you can use FILELISTONLY command.