Using a guid
SELECT @randomString = CONVERT(varchar(255), NEWID())
very short …
More Related Contents:
- Convert text to system date format [duplicate]
- How to get a particular preceding value of a column in SQL [closed]
- to select all the employees who have joined most recently under king
- How do I obtain a Query Execution Plan in SQL Server?
- Simple way to transpose columns and rows in SQL?
- What is the meaning of the prefix N in T-SQL statements and when should I use it?
- MySQL: Alternatives to ORDER BY RAND()
- Maximum size for a SQL Server Query? IN clause? Is there a Better Approach [duplicate]
- SQL JOIN vs IN performance?
- Convert varchar into datetime in SQL Server
- TSQL Pivot without aggregate function
- How to generate a range of dates in SQL Server
- SQL RANK() versus ROW_NUMBER()
- Generate SQL Create Scripts for existing tables with Query
- Check if a row exists, otherwise insert
- Drop all the tables, stored procedures, triggers, constraints and all the dependencies in one sql statement
- How do I perform a GROUP BY on an aliased column in SQL Server?
- CTE error: “Types don’t match between the anchor and the recursive part”
- How to get N rows starting from row M from sorted table in T-SQL
- How can I generate a temporary table filled with dates in SQL Server 2000?
- How do I remove extended ASCII characters from a string in T-SQL?
- Is SQL or even TSQL Turing Complete?
- How to correctly insert newline in nvarchar [duplicate]
- Grant SELECT permission on a view, but not on underlying objects
- How do you copy a record in a SQL table but swap out the unique id of the new row?
- Using IF ELSE statement based on Count to execute different Insert statements
- SQL – Call Stored Procedure for each record
- SQL – How do I get only the numbers after the decimal?
- How to retrieve records for last 30 minutes in MS SQL?
- Why do SQL Server Scalar-valued functions get slower?