Generate a Unique IDGUID for All Records During Excel to SQL Table ...

I'm inserting Excel data into a SQL table using KNIME Analytics Platform. I need to generate a unique ID/GUID to insert along with the Excel data, where the same unique ID/GUID is applied to all records .

The "Batch GUID " column should be the same for all records in a batch; the " Record GUID " column is obviously unique to that particular record and is used for de-duplication only, not for any sort of query. I would strongly prefer to generate the batch GUID inside a query rather than by writing a stored procedure that does the obvious:
Key Details About Generate A Unique Id Guid For All Records During Excel To Sql Table

I have an excel file with one order on each row, and I want each order to have a unique identifier, so there will be a Unique ID column. Every time I fill a row, I want Excel to automatically populate the Unique ID column for me. I did some research and was pointed in the direction of GUIDs . I found the following code:
Hi All , Currently i am in the process of transitioning from a novice to an experienced fabric user hence i have more and more use for M/Power Query from the Gen2 dataflows aspect. Currently i am working on a routine where i need to load some data from a source into a sink system. In the sink system i do have a need to insert records with a generated unique UUID. After scouring this forum i ...

GUID Generator
Generate GUIDs (globally unique identifiers) for SQL Server and C#. Learn NEWID vs NEWSEQUENTIALID, when to use GUID vs identity columns, and avoid pe
5 Ways to Generate a GUID in Microsoft Excel Do you need to generate a GUID in Excel ? GUID stands for Globally Unique Identifier, but it might also be referred to as a UUID which stands for Universally Unique Identifier. These are the same thing.

Overview of Generate A Unique Id Guid For All Records During Excel To Sql Table
Text.NewGuid is a Power Query M function that generates a new, random globally unique identifier ( GUID ). The function returns a new GUID as a text value.
Learn about SQL Server uniqueidentifier and identity values to generate a unique value for for you SQL Server tables .

Key Details About Generate A Unique Id Guid For All Records During Excel To Sql Table
I had the need to generate a GUID (globally unique identifier) in VBA today. This seemed like a simple enough task, but there's surprisingly little good information available on the topic in 2022.








B. Using NEWID in a CREATE TABLE statement Applies to : SQL Server The following example creates the cust table with a uniqueidentifier data type, and uses NEWID () to fill the table with a default value. In assigning the default value of NEWID (), each new and existing row has a unique value for the CustomerID column.