91 What is a schema in sql server
6:29
Пікірлер
@SAMEERUNAWANE-w6p
@SAMEERUNAWANE-w6p 22 минут бұрын
Sir if we have column with not null in ID2 . how to handle that situation
@DhanyaGowda-l9m
@DhanyaGowda-l9m 14 сағат бұрын
Hi Akil, I have scenario how to split 21(1,2) into 21(1),21(2) in sql
@learnssis
@learnssis 2 сағат бұрын
DECLARE @inputString NVARCHAR(100) = '21(1,2)' -- Remove the parentheses around the numbers DECLARE @prefix NVARCHAR(10) = LEFT(@inputString, CHARINDEX('(', @inputString)) -- '21(' DECLARE @numbers NVARCHAR(50) = REPLACE(SUBSTRING(@inputString, CHARINDEX('(', @inputString) + 1, LEN(@inputString)), ')', '') -- Split and reconstruct the result SELECT @prefix + value + ')' AS SplitResult FROM STRING_SPLIT(@numbers, ',')
@DhanyaGowda-l9m
@DhanyaGowda-l9m Сағат бұрын
@ thank you
@AdityaChaudhari-j3y
@AdityaChaudhari-j3y 21 сағат бұрын
Thanks Bro......
@learnssis
@learnssis 21 сағат бұрын
You are most welcome.
@satishchaurasia84ya
@satishchaurasia84ya Күн бұрын
Perfect 👍
@ShouravDey-y8z
@ShouravDey-y8z Күн бұрын
Can i get the data set, please
@learnssis
@learnssis Күн бұрын
You can download the data set of every video from the link in the description of the video.
@kamaleshashok4046
@kamaleshashok4046 Күн бұрын
Hello Connected to Oracle Database using Devart and then Test Connection Succeeded . Once i run the package Error is :ORA-01005: null password given; logon denied
@learnssis
@learnssis Күн бұрын
The error might be related to Devart component. Can you raise a ticket to them and see if they can help you support.devart.com/portal/en/community
@AdityaChaudhari-j3y
@AdityaChaudhari-j3y Күн бұрын
what if we deploy the package, then from where the package picks the csv. what will be the source path of that csv file?
@learnssis
@learnssis Күн бұрын
Ideally if you want to import file with any name from the source folder, then you should use the foreach loop container with file enumerator to loop through all files (or specific type of files with a specific name) in a folder and then import the data to a sql table. You can take a look at this video kzbin.info/www/bejne/eJvTkoaugr-ArtU
@luke2042
@luke2042 2 күн бұрын
I got it working! I had to look up a few extra things like how to enlarge the column max character limit, and how to resolve an error message about unicode. Do you have a video on how to use parameters to make the package more versatile?
@learnssis
@learnssis 2 күн бұрын
Glad you were able to figure it out. Yeah you can watch this video, here I have shown how to use project parameters in ssis package and how to set them from sql agent job kzbin.info/www/bejne/jJPbloBngJ1_d7c
@prathameshmukkawar3117
@prathameshmukkawar3117 2 күн бұрын
VERY WELL EXPLAINED THANKYPU SIRJI..
@learnssis
@learnssis 2 күн бұрын
You are most welcome.
@danejasho
@danejasho 3 күн бұрын
Well done Aqil. This video was very helpful. Quick and to the point, and also clear and concise. Thank you.
@learnssis
@learnssis 3 күн бұрын
Glad you liked the video.
@nandkishorpatil3328
@nandkishorpatil3328 3 күн бұрын
Thanks.👍👍
@learnssis
@learnssis 3 күн бұрын
You are welcome.
@chandrasekhar1046
@chandrasekhar1046 4 күн бұрын
In this vedio we are recreating same data from another server know How to copy data from one server to another server with out recreating data inthat server
@learnssis
@learnssis 4 күн бұрын
Sorry did not get your question?
@chandrasekhar1046
@chandrasekhar1046 4 күн бұрын
This is enough to become expert in ssis or not sir
@learnssis
@learnssis 4 күн бұрын
Yes, if you cover all the videos, then you can handle majority of projects in SSIS.
@chandrasekhar1046
@chandrasekhar1046 4 күн бұрын
@learnssis tq so much sir Cam you suggest me where to learn ssas ,and ssrs as well
@chandrasekhar1046
@chandrasekhar1046 3 күн бұрын
Can you suggest me where to learn ssrs ssas as well
@learnssis
@learnssis 3 күн бұрын
​ @chandrasekhar1046 Sorry I have not watched much videos of SSRS or SSAS online thus not sure which channel is good. You can try couple of channel and follow anyone who you feel comfortable with.
@learnssis
@learnssis 3 күн бұрын
@@chandrasekhar1046 ​ @chandrasekhar1046 Sorry I have not watched much videos of SSRS or SSAS online thus not sure which channel is good. You can try couple of channel and follow anyone who you feel comfortable with.
@gayatrigawande9989
@gayatrigawande9989 5 күн бұрын
Very helpful 😊
@learnssis
@learnssis 5 күн бұрын
Thank you.
@TKJ
@TKJ 5 күн бұрын
What is crlf, cr, lf in flat file source Row delimiter is lf And general have crlf If I put above two then my crlf and lf both file load. If I put crlf in both row delimiter and general then only crlf file process. Can you tell why both file process in 1st scenario as we only select lf only
@prithviraj1568
@prithviraj1568 5 күн бұрын
Is it possible to send salesforce data to sql server btachwise on daily basis?
@learnssis
@learnssis 5 күн бұрын
Yes we can do that. we can use variables in Salesforce source component. And we can assign any date or id to those variables maybe from sql table or from a flat file etc.
@prithviraj1568
@prithviraj1568 5 күн бұрын
@@learnssis do you have any doc or link to understand it?
@learnssis
@learnssis 5 күн бұрын
@@prithviraj1568 In this video I have shown how to do this from sql to sql. kzbin.info/www/bejne/enbbaKB6nbieppY In your case instead of sql it will be salesforce but we can use the variable in salesforce source as well, so this method should work. But here our source table contains lastmodified date column and according to that we are pulling data.
@dhananjaysatpute7890
@dhananjaysatpute7890 5 күн бұрын
Great
@learnssis
@learnssis 5 күн бұрын
Thank you.
@stefancochrane2723
@stefancochrane2723 5 күн бұрын
Thanks! What if one wants to delete duplicates from a view, but not the underlying table?
@learnssis
@learnssis 5 күн бұрын
Then create a view in such a way so that it pics only distinct data from sql table. Mybe use Row_number function or distinct queries.
@stefancochrane2723
@stefancochrane2723 4 күн бұрын
@@learnssis Thanks! I tried but it seems that it would impact other tables. I'll look into it deeper.
@Manoharc-n9h
@Manoharc-n9h 6 күн бұрын
Nice explanation.keep doing the videos.
@learnssis
@learnssis 6 күн бұрын
Thank you.
@SivaReddy-xy5hz
@SivaReddy-xy5hz 6 күн бұрын
If we change rigistry into local machine while developing the package but after deploying it was executed from different machine. So it will work or do we need to update registry settings in remote machine aswell
@learnssis
@learnssis 6 күн бұрын
we need to update registry settings in remote machine as well.
@vishalpathak8835
@vishalpathak8835 6 күн бұрын
What if we use multiple joins with UNION,INTERAECT,EXCEPT ?? It is not allowing me to create Index on view.. So if index not created,do that view behaves like Materlised view only with schemabinding option??
@learnssis
@learnssis 6 күн бұрын
No. A view with only SCHEMABINDING is not a materialized view. It’s still just a regular view that runs the query each time you access it. SCHEMABINDING simply ensures that the underlying tables cannot be modified in a way that breaks the view (e.g., dropping a column). For it to be a materialized view, you must create a clustered index on the view.
@Rajag-ic1xt
@Rajag-ic1xt 7 күн бұрын
Hi ,I have a doubt before start learning SSIS, Is is best for future and long growth?
@learnssis
@learnssis 6 күн бұрын
Currently it is one of the widely used technology for ETL and migrating data to data warehouses. I can't predict how much useful it will be in future. But if you learn how ssis works, like how data migration packages are created then it can help you to learn similar data migration technology like ADF (Azure data factory) for data migration.
@Rajag-ic1xt
@Rajag-ic1xt 6 күн бұрын
@learnssis thanks for your response.. !
@alsafisiddig6201
@alsafisiddig6201 7 күн бұрын
GREATE EXPLAIN...WHERE VIDEO FOR DATA PROFILING TASK....EVERY DAY I CHECK IF YOU DOWNLOAD OR NOT .
@learnssis
@learnssis 6 күн бұрын
Currently I am busy on some projects and not getting time to make video. Maybe will try to make video during weekend.
@alsafisiddig6201
@alsafisiddig6201 5 күн бұрын
@@learnssisOk..I Waite you...I'm finished from course I get more Benefit and skills To do data analysis....you are best one explain ssis in KZbin.
@jatothveeresh2381
@jatothveeresh2381 7 күн бұрын
Way of Yours Poc are fantastic 😍 Bro
@learnssis
@learnssis 7 күн бұрын
Thank you.
@StuffFromTheWeb92
@StuffFromTheWeb92 8 күн бұрын
this didn't import the stored procedures or views. :(
@learnssis
@learnssis 8 күн бұрын
yeah actually both are different dbms and they use a slightly different language with some differences in syntax, thus procedures or views will have issues in automatic conversion.
@petergithenya6254
@petergithenya6254 8 күн бұрын
Truly saved me.
@learnssis
@learnssis 8 күн бұрын
Glad it worked for you.
@hafizsameerali1265
@hafizsameerali1265 9 күн бұрын
how to close my source file CSV, Excel Or txt before inserting data to OLEDB destination ??
@learnssis
@learnssis 8 күн бұрын
You can use this code inside Script task before loading data. This will close any instance of excel file or flat\csv file if those files are opened in notepad using System; using System.Diagnostics; --------------------- public void Main() { CloseProcessesByName("EXCEL"); // If CSV is open in Excel CloseProcessesByName("notepad"); // If CSV is open in Notepad Dts.TaskResult = (int)ScriptResults.Success; } static void CloseProcessesByName(string processName) { try { // Get all processes with the given name Process[] processes = Process.GetProcessesByName(processName); foreach (Process process in processes) { Console.WriteLine($"Closing process: {process.ProcessName}, ID: {process.Id}"); process.Kill(); // Force close the process process.WaitForExit(); // Wait until the process is terminated } Console.WriteLine($"All {processName} processes have been closed."); } catch (Exception ex) { Console.WriteLine($"Error while closing processes: {ex.Message}"); } }
@alsafisiddig6201
@alsafisiddig6201 9 күн бұрын
how I can replace 2 values in same column …please help me
@learnssis
@learnssis 9 күн бұрын
replace(replace(column_name, 'First value',''),'second value','')
@alsafisiddig6201
@alsafisiddig6201 7 күн бұрын
@@learnssis thanks bro
@MD-lu6lb
@MD-lu6lb 10 күн бұрын
Thank you for all the work you do.
@learnssis
@learnssis 9 күн бұрын
You are most welcome.
@alsafisiddig6201
@alsafisiddig6201 10 күн бұрын
great explain...how I can do skip in some data in text file
@learnssis
@learnssis 10 күн бұрын
In flat file connection manager there is a property RowsToSkip or something, by default the value is 0, it means no rows will be skipped, if you want to skip for example first 100 records, then set the value to 100.
@charanrajuc1285
@charanrajuc1285 10 күн бұрын
Simple and Beautiful explanation bro ❤
@learnssis
@learnssis 10 күн бұрын
Thank you.
@bhargavannamneni512
@bhargavannamneni512 10 күн бұрын
Well explained. Appreciated..!!
@learnssis
@learnssis 10 күн бұрын
Thank you.
@deepreview
@deepreview 12 күн бұрын
Hi, I have a scenario where I have built a dynamic query in Sql server. In the query, the column header changes every month, giving only the past 1 year of data. The same data I want to copy into Excel. Can I do it in SSIS? Pls note that I need to build the mapping one time, and every month, the report will be generated at a given path.
@learnssis
@learnssis 12 күн бұрын
If header changes then you would need to write some C# code to export it. SSIS data flow task won't be able to do it.
@deepreview
@deepreview 11 күн бұрын
@learnssis Thanks a lot for replying. Can you suggest some page or video. I am not too familiar with C#
@rajinipraba.k2125
@rajinipraba.k2125 12 күн бұрын
Hi Aquil.. Can we pass the input parameter (DateinYYYYMMDD) dynamically? if yes, please share how should we do...
@learnssis
@learnssis 12 күн бұрын
I think that's what I shown in the video that I passed the value to input parameter (DateinYYYYMMDD) dynamically from ssis package.
@ho3inv33
@ho3inv33 13 күн бұрын
thank you for sharing your knowledge. brief and helpful.
@learnssis
@learnssis 12 күн бұрын
Thank you.
@alsafisiddig6201
@alsafisiddig6201 13 күн бұрын
is there another way without write code
@learnssis
@learnssis 12 күн бұрын
At the moment, I am not aware about any other method.
@pradeepreddy9569
@pradeepreddy9569 13 күн бұрын
It is creating a empty file in the source folder with a random sheet number once after the data is processed and file is moved to dest folder
@alsafisiddig6201
@alsafisiddig6201 13 күн бұрын
HOW I can load multilabel sql sever to to sql sever table
@vivekparab3522
@vivekparab3522 13 күн бұрын
Referring to the logic I want to run sysdate -1 file how do I do
@learnssis
@learnssis 13 күн бұрын
Check this code. try { string FilePath = Dts.Variables["FilePath"].Value.ToString(); string FileName = Path.GetFileNameWithoutExtension(FilePath); string LoadFile = "No"; if (!string.IsNullOrEmpty(FileName) && FileName.Contains("_")) { string dateValue = FileName.Substring(FileName.LastIndexOf('_') + 1); // Get yesterday's date in the "yyyyMMdd" format string yesterdaysDate = System.DateTime.Now.AddDays(-1).ToString("yyyyMMdd"); // Check if the extracted date matches yesterday's date if (dateValue == yesterdaysDate) { LoadFile = "Yes"; } } Dts.Variables["LoadFile"].Value = LoadFile; } catch (Exception ex) { Dts.Events.FireError(0, "Script Task", $"Error: {ex.Message}", "", 0); throw; }
@alsafisiddig6201
@alsafisiddig6201 14 күн бұрын
....ANSWER ME...I installed Microsoft OLE DB Provider for Visual FoxPro (folder exists to), but when i try to create the ole db connection in ssis it doesn´t appear. do you know how can i solve it? Thanks!!
@alsafisiddig6201
@alsafisiddig6201 15 күн бұрын
Why you speaking by quickly way I not understand what you said
@jafarmohammedumar-r7l
@jafarmohammedumar-r7l 15 күн бұрын
Thie was Awsome Jazakallah
@learnssis
@learnssis 14 күн бұрын
Shukriya Bhai.
@rcasturi55
@rcasturi55 15 күн бұрын
Graet Tutorial Thanks
@learnssis
@learnssis 14 күн бұрын
Thank you.
@blofeld2430
@blofeld2430 15 күн бұрын
Pretty well explained, thanks ! Is there a way to make the query throw an error message if the package fails ?
@learnssis
@learnssis 14 күн бұрын
yes, we can do that. Below is the updated sp. CREATE PROCEDURE ExecuteSSISPackage @ServerName NVARCHAR(100), @Database NVARCHAR(100) AS BEGIN BEGIN TRY -- Declare variables DECLARE @execution_id BIGINT; DECLARE @status INT; -- Create execution EXEC [SSISDB].[catalog].[create_execution] @package_name = N'Package.dtsx', @execution_id = @execution_id OUTPUT, @folder_name = N'Test Project', @project_name = N'121 How to execute SSIS package from Stored Procedure', @use32bitruntime = 0, @reference_id = NULL, @runinscaleout = 0; -- Set parameters DECLARE @varDatabase SQL_VARIANT = @Database; EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type = 20, @parameter_name = N'Database', @parameter_value = @varDatabase; DECLARE @varServerName SQL_VARIANT = @ServerName; EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type = 20, @parameter_name = N'ServerName', @parameter_value = @varServerName; -- Set logging level DECLARE @logging_level SMALLINT = 1; EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type = 50, @parameter_name = N'LOGGING_LEVEL', @parameter_value = @logging_level; -- Start execution EXEC [SSISDB].[catalog].[start_execution] @execution_id; -- Wait for execution to complete (Optional - Adjust timeout as needed) WAITFOR DELAY '00:00:05'; -- Check execution status SELECT @status = status FROM [SSISDB].[catalog].[executions] WHERE execution_id = @execution_id; -- If status indicates failure, raise an error IF @status NOT IN (7, 8) -- 7 = Success, 8 = Canceled BEGIN DECLARE @error_message NVARCHAR(MAX) = ''; SELECT @error_message = STRING_AGG(message, CHAR(10)) FROM [SSISDB].[catalog].[operation_messages] WHERE operation_id = @execution_id AND message_type = 120; -- 120 = Error IF @error_message IS NULL SET @error_message = 'Unknown error occurred during package execution.'; RAISERROR ('SSIS Package failed: %s', 16, 1, @error_message); END ELSE BEGIN PRINT 'SSIS Package executed successfully.'; END END TRY BEGIN CATCH -- Handle and re-throw errors DECLARE @ErrorMessage NVARCHAR(MAX), @ErrorSeverity INT, @ErrorState INT; SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(), @ErrorState = ERROR_STATE(); RAISERROR (@ErrorMessage, @ErrorSeverity, @ErrorState); END CATCH END; GO
@Mohdfardeen
@Mohdfardeen 16 күн бұрын
i have huge dataset which includes date column, and postgresql is giving errors while importing data
@Mohdfardeen
@Mohdfardeen 16 күн бұрын
ERROR: date/time field value out of range: "1/27/2019" HINT: Perhaps you need a different "datestyle" setting. CONTEXT: COPY sales_data, line 5, column date: "1/27/2019"
@alsafisiddig6201
@alsafisiddig6201 16 күн бұрын
pls explain VIDEO DATA PROFILING TASK
@Manoharc-n9h
@Manoharc-n9h 17 күн бұрын
Excellent explanation with a good example.
@learnssis
@learnssis 16 күн бұрын
Thank you.
@KashyapTechITBrothers
@KashyapTechITBrothers 17 күн бұрын
Hi Aqil, Thanku so much for your videos , can you make one video for below Scenario- There is one package which have some configuration for loading the data from source to destination. Now there is 4 servers DE, UT, PR and Prod all server have one Job which contain this package. Now whenever job run on any server the job should and run the package and it should run automatically by checking Server details.
@learnssis
@learnssis 17 күн бұрын
Hi, at the moment I won't be able to make a video on this topics as I am kind of busy on some stuff. What you can do is that you can create a config_server sql table. Store the source server name information, destination server name information into this table. Now in the ssis package you will need to connect to the server\database in which this config_tbl table exists, and then write a select query to select the source server name, and dest server name like below select top 1 sourceserver, destserver from config_Server where active=1 and then set the result set option to single result set and assign these values to 2 ssis variables i.e SourceServer and DestServer at index 0 and 1. Now in your ssis package you would need to create 2 OLEDB connection managers, Source and Dest and in the expressions of the connection manager you would need to set the ServerName property for source connection from SourceServer SSIS variable and for Dest Connection string set the value to come from DestServer ssis variable. This way when the package will run it will get the source server name and dest server name from the config_server sql table and accordingly this value will be passed to the source and dest ole db connection managers using expression (using SourceServer and DestServer SSIS variables) which will make the connection dynamic and you can get and write data to appropriate server.
@sumitahirwar9116
@sumitahirwar9116 18 күн бұрын
Thanks the video is very informative.Can we do the same thing without script task?
@learnssis
@learnssis 17 күн бұрын
Sorry never tried it and not sure if we can do this with SSIS.
@prernaagupta688
@prernaagupta688 18 күн бұрын
ek baar source se destination par data load krdiya ab phirse maan lo new rows agyi source data par or sirf wahi rows or load karni hai toh kaise karene ?
@learnssis
@learnssis 18 күн бұрын
Uske liye aapko incremental load karna hoga, iske liye aap lookup transformation use kar sakte ho kzbin.info/www/bejne/bpW1ep2MnbCigdU
@prernaagupta688
@prernaagupta688 18 күн бұрын
@@learnssis please video bnake daldo ?is video me nhi hai
@learnssis
@learnssis 18 күн бұрын
@@prernaagupta688 isme he aap theek se dekho.
@prernaagupta688
@prernaagupta688 18 күн бұрын
@ theek hai
@prernaagupta688
@prernaagupta688 18 күн бұрын
@@learnssis from which time duration?