Hi sir, could you please make video on finding long running queries and optimising or tuning complex queries. These will be helpful while attending interviews. Thanks in advance.
Yeah its a pending topic and will try to make a video on it, recently I made 2 videos on performance tuning of SSIS packages, I would recommend you to take a look on them as well th-cam.com/video/3pacxWeTce4/w-d-xo.html th-cam.com/video/7sKEgm2uQEM/w-d-xo.html
Hi Bro, Could you please Help How to write a stored procedure for creating multiple new table with columns by passing input parameter in dynamic SQL, Thanks in Advance
Thank you! This is the most practical lesson. I really appreciate it!
You are most welcome k granite.
Hi sir, could you please make video on finding long running queries and optimising or tuning complex queries. These will be helpful while attending interviews. Thanks in advance.
Okay, I will try to make videos on these topics.
Performance tuning techniques in sql server?
Yeah its a pending topic and will try to make a video on it, recently I made 2 videos on performance tuning of SSIS packages, I would recommend you to take a look on them as well
th-cam.com/video/3pacxWeTce4/w-d-xo.html
th-cam.com/video/7sKEgm2uQEM/w-d-xo.html
Hi Bro,
Could you please Help How to write a stored procedure for creating multiple new table with columns by passing input parameter in dynamic SQL, Thanks in Advance
This is the stored procedure
CREATE PROCEDURE CreateSingleTable
@TableName NVARCHAR(100),
@Column1Name NVARCHAR(100),
@Column1Type NVARCHAR(100),
@Column2Name NVARCHAR(100),
@Column2Type NVARCHAR(100)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @SQL NVARCHAR(MAX)
SET @SQL = 'CREATE TABLE ' + @TableName + ' (' +
@Column1Name + ' ' + @Column1Type + ',' +
@Column2Name + ' ' + @Column2Type + ');'
EXEC sp_executesql @SQL
END;
---------------
And this is how you can call it
EXEC CreateSingleTable
@TableName = 'MyTable',
@Column1Name = 'ID',
@Column1Type = 'INT',
@Column2Name = 'Name',
@Column2Type = 'VARCHAR(50)';
Thanks Bro@@learnssis
how to run. Sql file through stored procedure and replace name with output file. log
I got your first question "how to run sql file through stored procedure" but did not get the second one "and replace name with output file log"
Nice can u give more example on dynamic query
Sure I can give more examples of it.
please teach from start ,how to write dynamic sql query
Thanks Sony Gupta for your suggestion, I am trying to make videos on all topics on SQL Server, will cover this topic in detail.
Thank you Aqil sir 😀
You are most welcome Naveen.