SQL Server – Generating PERMUTATIONS using T-Sql
Were you ever asked to generate string Permutations using TSql? I was recently asked to do so, and the logic...
2013-03-11
824 reads
Were you ever asked to generate string Permutations using TSql? I was recently asked to do so, and the logic...
2013-03-11
824 reads
Generally, we try to find out records matching a certain criteria from a single or few tables. However, there are...
2013-03-06
1,014 reads
Few months back I have wrote post about moving MASTER and MSDB database to new location in stand alone machine....
2012-12-24
2,094 reads
Today, I am going to share few very useful scripts which will report us on Database Backup from different view...
2012-10-17
951 reads
Problem Statement
SQL Server has got in-built functions to convert the given string into LOWER() or UPPER() format but it does...
2012-10-14
1,311 reads
It's my bad that I did not made a post since long lately. I would not make an excuse like...
2012-09-01
1,068 reads
Introduction
Today, I would like to explain one way in which we can store the HIERARCHICAL data in SQL tables. A...
2012-03-27
2,432 reads
On many forums I have found a very basic yet important query - “How can I know when was my Stored...
2012-03-11
10,010 reads
In my previous post we see how to move MSDB database, today we will see how to move or relocate...
2012-03-08
1,068 reads
In recent past we have a situation where in we required to move MSDB, Model and Master databases to new...
2012-03-06
868 reads
By Ed Elliott
Running tSQLt unit tests is great from Visual Studio but my development workflow...
By James Serra
I remember a meeting where a client’s CEO leaned in and asked me, “So,...
By Brian Kelley
If you want to learn better, pause more in your learning to intentionally review.
Hello team Can anyone share popular azure SQL DBA certification exam code? and your...
Comments posted to this topic are about the item Faster Data Engineering with Python...
Comments posted to this topic are about the item Which Result II
I have this code in SQL Server 2022:
CREATE SCHEMA etl;
GO
CREATE TABLE etl.product
(
ProductID INT,
ProductName VARCHAR(100)
);
GO
INSERT etl.product
VALUES
(2, 'Bee AI Wearable');
GO
CREATE TABLE dbo.product
(
ProductID INT,
ProductName VARCHAR(100)
);
GO
INSERT dbo.product
VALUES
(1, 'Spiral College-ruled Notebook');
GO
CREATE OR ALTER PROCEDURE etl.GettheProduct
AS
BEGIN
exec('SELECT ProductName FROM product;')
END;
GO
exec etl.GettheProduct
When I execute this code as a user whose default schema is dbo and has rights to the tables and proc, what is returned? See possible answers