2017-11-16
742 reads
2017-11-16
742 reads
2017-05-23
927 reads
2017-05-01
868 reads
When we start working as developer or learning, we often
face this issue. Where is the best tutorials, books and other...
2017-04-10
271 reads
Requirement: Recently we got the information from management
that our project will be getting the customers from China, so our application
should...
2017-03-28
141 reads
In this article I will be listing the tips and tricks to work like
a Pro.
So let's get started –
Important keyboard...
2017-02-20
225 reads
I will be writing
this article in four parts because this topic is huge and the amount of
information can be overwhelming...
2017-02-06
545 reads
This is not an article or a script. I am posting this just to share my experience and I feel...
2017-01-30
907 reads
There are many situations when we want to know the size of our database tables or just need a list...
2017-01-19
682 reads
I will be writing this series of articles for the Special Indexes in SQL Server. In this series we will...
2016-11-11
494 reads
Here’s a way to centralize management, rotate secrets conveniently without downtime, automate synchronization and...
This may or may not be helpful in the long term, but since I’m...
By Steve Jones
“I’m sick of hearing about Red Gate.” The first article in the book has...
Comments posted to this topic are about the item Dynamic T-SQL Script Parameterization Using...
Comments posted to this topic are about the item Widespread New Technology Adoption
Comments posted to this topic are about the item Multiple Sequences
In SQL Server 2022, I run this code:
CREATE SEQUENCE myseqtest START WITH 1 INCREMENT BY 1; GO CREATE TABLE NewMonthSales (SaleID INT , SecondID int , saleyear INT , salemonth TINYINT , currSales NUMERIC(10, 2)); GO INSERT dbo.NewMonthSales (SaleID, SecondID, saleyear, salemonth, currSales) SELECT NEXT VALUE FOR myseqtest , NEXT VALUE FOR myseqtest , ms.saleyear , ms.salemonth , ms.currMonthSales FROM dbo.MonthSales AS ms; GO SELECT * FROM dbo.NewMonthSales AS nmsAssume the dbo.MonthSales table exists. If I run this, what happens? See possible answers