![Learn SSIS](/img/default-banner.jpg)
- 518
- 5 567 192
Learn SSIS
India
Приєднався 19 гру 2016
By learn SSIS channel we will learn how to use SSIS for ETL purpose. SQL Server Integration Services is an ETL tool provided by Microsoft for ETL purpose.
ETL (Extract, Transform and Load) is a process in data warehousing responsible for pulling data out of the source systems and placing it into a data warehouse. If we want to load data from flat file or from excel file to SQL Server then we need some ETL tool like SSIS for this purpose.
This channel Learn SSIS is aimed at providing professionals with knowledge on SQL Server Integration Services. If you regularly see videos in this channel, you will be able to
• Design and Understand the SSIS Solutions
• Import and Export Data from and to different Sources
• Create, manage and maintain SSIS Packages
• Import and Export Data from and to different Sources using SSIS
• Use different Transformations to change the data on the fly
You can contact me on aqil33@gmail.com
ETL (Extract, Transform and Load) is a process in data warehousing responsible for pulling data out of the source systems and placing it into a data warehouse. If we want to load data from flat file or from excel file to SQL Server then we need some ETL tool like SSIS for this purpose.
This channel Learn SSIS is aimed at providing professionals with knowledge on SQL Server Integration Services. If you regularly see videos in this channel, you will be able to
• Design and Understand the SSIS Solutions
• Import and Export Data from and to different Sources
• Create, manage and maintain SSIS Packages
• Import and Export Data from and to different Sources using SSIS
• Use different Transformations to change the data on the fly
You can contact me on aqil33@gmail.com
162 How to get the record count of a file in SSIS
How to get the record count of a file in SSIS
Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ
SSIS Tutorials: ua-cam.com/play/PL_YF--8vjjEVEXMf2hEFn0D5tEJV9kRqi.html
SSIS real time scenarios examples: ua-cam.com/play/PL_YF--8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html
SSIS Interview questions and answers: ua-cam.com/play/PL_YF--8vjjEVYkoxioTCEKAkBxjLEUUB7.html
How to get the record count of a file in SSIS
How to get the record count of a file in C#
how to get row count in .csv file in c#
Happy Learning.
If you have any questions or suggestions please comment on the video or write to me at “aqil33@gmail.com”
Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ
SSIS Tutorials: ua-cam.com/play/PL_YF--8vjjEVEXMf2hEFn0D5tEJV9kRqi.html
SSIS real time scenarios examples: ua-cam.com/play/PL_YF--8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html
SSIS Interview questions and answers: ua-cam.com/play/PL_YF--8vjjEVYkoxioTCEKAkBxjLEUUB7.html
How to get the record count of a file in SSIS
How to get the record count of a file in C#
how to get row count in .csv file in c#
Happy Learning.
If you have any questions or suggestions please comment on the video or write to me at “aqil33@gmail.com”
Переглядів: 147
Відео
How to migrate data from Oracle to SQL Server using Devart SSIS
Переглядів 437День тому
In this video, I will show you how to migrate data from Oracle to SQL Server using Devart SSIS Data Flow components. This tutorial covers all the necessary steps to ensure a smooth data migration process without complicated coding. I demonstrate the entire process of migrating data between Oracle and SQL Server, as well as migrating data from a CSV file to Oracle. Timestamps: 0:00 Introduction ...
161 How to Open, close and save excel file in C#
Переглядів 161День тому
how to open and save excel file in c# Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ SSIS Tutorials: ua-cam.com/play/PL_YF 8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS real time scenarios examples: ua-cam.com/play/PL_YF 8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html SSIS Interview questions and answers: ua-cam.com/play/PL_YF 8vjjEVYkoxioTCEKAkBxjLEUUB7.html how to open ...
160 How to rename all files from a folder using ssis
Переглядів 223День тому
how to rename file in ssis FileName: replace(RIGHT(@[User::FilePath], FINDSTRING(REVERSE(@[User::FilePath]), "\\", 1) - 1),".csv","") FinalFilePath: @[User::SourceFolder] "\\" @[User::FileName] "_" @[User::CurrentDate] ".csv" Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ SSIS Tutorials: ua-cam.com/play/PL_YF 8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS re...
Install oracle on windows | Install Oracle SQL Developer
Переглядів 20621 день тому
install oracle on windows Download files and scripts: drive.google.com/drive/folders/1-zmuKbL643Ea1nCTVFJzMAyYp8YATZWH?usp=sharing SSIS Tutorials: ua-cam.com/play/PL_YF 8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS real time scenarios examples: ua-cam.com/play/PL_YF 8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html SSIS Interview questions and answers: ua-cam.com/play/PL_YF 8vjjEVYkoxioTCEKAkBxjLEUUB7.html install orac...
89 How to find most recent unique records from sql server table
Переглядів 50221 день тому
88 How to find most recent unique records from sql server table Download the scripts used in the video from here: drive.google.com/drive/folders/1ukcO6ZLGdeGzwyUipZbq0DQF7ycV8_xc?usp=share_link SQL Server tutorials: ua-cam.com/play/PL_YF 8vjjEVLxcpk2gcc_r5BpNeG6Yym.html SQL Server Developer Interview questions: ua-cam.com/play/PL_YF 8vjjEXlKdZv4ogROrGgfaQ0aTYg.html How to find most recent uniqu...
How to migrate data from MySQL to SQL Server using Devart SSIS
Переглядів 39821 день тому
In this video, I will show you how to migrate data from MySQL to SQL Server using Devart SSIS Data Flow components. This tutorial covers all the necessary steps to ensure a smooth data migration process without complicated coding. I demonstrate the entire process of migrating data between MySQL and SQL Server, as well as migrating data from a CSV file to MySQL. Timestamps: 0:00 Introduction 0:5...
88 How to find duplicate records in sql server using row_number
Переглядів 38628 днів тому
88 How to find duplicate records in sql server using row_number Download the scripts used in the video from here: drive.google.com/drive/folders/1ukcO6ZLGdeGzwyUipZbq0DQF7ycV8_xc?usp=share_link SQL Server tutorials: ua-cam.com/play/PL_YF 8vjjEVLxcpk2gcc_r5BpNeG6Yym.html SQL Server Developer Interview questions: ua-cam.com/play/PL_YF 8vjjEXlKdZv4ogROrGgfaQ0aTYg.html How to find duplicate records...
87 How to find duplicate records in a sql server table
Переглядів 455Місяць тому
how to find duplicate records in sql server table Download the scripts used in the video from here: drive.google.com/drive/folders/1ukcO6ZLGdeGzwyUipZbq0DQF7ycV8_xc?usp=share_link SQL Server tutorials: ua-cam.com/play/PL_YF 8vjjEVLxcpk2gcc_r5BpNeG6Yym.html SQL Server Developer Interview questions: ua-cam.com/play/PL_YF 8vjjEXlKdZv4ogROrGgfaQ0aTYg.html how to find duplicate records in sql server...
159 How to compress multiple files without any third party software in ssis
Переглядів 195Місяць тому
How to compress multiple files without any third party software in ssis Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ SSIS Tutorials: ua-cam.com/play/PL_YF 8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS real time scenarios examples: ua-cam.com/play/PL_YF 8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html SSIS Interview questions and answers: ua-cam.com/play/PL_YF 8vjjEVYkoxi...
158 Migrate data from access to sql server using ssis
Переглядів 342Місяць тому
Migrate data from access to sql server using ssis Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ SSIS Tutorials: ua-cam.com/play/PL_YF 8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS real time scenarios examples: ua-cam.com/play/PL_YF 8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html SSIS Interview questions and answers: ua-cam.com/play/PL_YF 8vjjEVYkoxioTCEKAkBxjLEUUB7.html ...
157 How to compress a file without any third party software in ssis
Переглядів 252Місяць тому
How to compress a file without any third party software in ssis Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ SSIS Tutorials: ua-cam.com/play/PL_YF 8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS real time scenarios examples: ua-cam.com/play/PL_YF 8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html SSIS Interview questions and answers: ua-cam.com/play/PL_YF 8vjjEVYkoxioTCEKAkB...
156 How to change excel column to numeric in ssis
Переглядів 618Місяць тому
How to change excel column to numeric in ssis Download files and scripts: drive.google.com/drive/folders/12OVM2d1zSzEcVaogUP6WC9Kb3R2-oXjQ SSIS Tutorials: ua-cam.com/play/PL_YF 8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS real time scenarios examples: ua-cam.com/play/PL_YF 8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html SSIS Interview questions and answers: ua-cam.com/play/PL_YF 8vjjEVYkoxioTCEKAkBxjLEUUB7.html How ...
86 What is a non clustered index in sql server
Переглядів 295Місяць тому
What is a non clustered index in sql server Download the scripts used in the video from here: drive.google.com/drive/folders/1ukcO6ZLGdeGzwyUipZbq0DQF7ycV8_xc?usp=share_link SQL Server tutorials: ua-cam.com/play/PL_YF 8vjjEVLxcpk2gcc_r5BpNeG6Yym.html SQL Server Developer Interview questions: ua-cam.com/play/PL_YF 8vjjEXlKdZv4ogROrGgfaQ0aTYg.html what is a non clustered index in sql server What ...
85 What is a clustered index in SQL Server
Переглядів 495Місяць тому
what is a clustered index in sql server Download the scripts used in the video from here: drive.google.com/drive/folders/1ukcO6ZLGdeGzwyUipZbq0DQF7ycV8_xc?usp=share_link SQL Server tutorials: ua-cam.com/play/PL_YF 8vjjEVLxcpk2gcc_r5BpNeG6Yym.html SQL Server Developer Interview questions: ua-cam.com/play/PL_YF 8vjjEXlKdZv4ogROrGgfaQ0aTYg.html what is a clustered index in sql server What is clust...
155 How to move files to year wise folder in ssis
Переглядів 6382 місяці тому
155 How to move files to year wise folder in ssis
84 What is a materialized view in sql server
Переглядів 1,1 тис.2 місяці тому
84 What is a materialized view in sql server
10 Hindi | Export data from SQL server to Fixed Width File in SSIS
Переглядів 3052 місяці тому
10 Hindi | Export data from SQL server to Fixed Width File in SSIS
154 How to export data to multiple excel files in SSIS
Переглядів 1,2 тис.2 місяці тому
154 How to export data to multiple excel files in SSIS
83 What is schemabinding view in sql server
Переглядів 6292 місяці тому
83 What is schemabinding view in sql server
81 What is a view in sql server | Create view in SQL Server
Переглядів 5012 місяці тому
81 What is a view in sql server | Create view in SQL Server
80 Difference between stored procedure and function in sql server
Переглядів 5712 місяці тому
80 Difference between stored procedure and function in sql server
153 How to upload files to sftp server using batch file in SSIS | WinScp
Переглядів 1,3 тис.2 місяці тому
153 How to upload files to sftp server using batch file in SSIS | WinScp
151 How to export data returned from stored procedure to CSV file
Переглядів 4873 місяці тому
151 How to export data returned from stored procedure to CSV file
79 What are user defined functions in sql server
Переглядів 1,4 тис.3 місяці тому
79 What are user defined functions in sql server
78 How to do error handling in stored procedure sql server
Переглядів 1,6 тис.3 місяці тому
78 How to do error handling in stored procedure sql server
77 Create a stored procedure for real life problem part 3
Переглядів 1 тис.4 місяці тому
77 Create a stored procedure for real life problem part 3
Thanks my friend. You saved my day with this video. In my case it was not Excel, but rather a SQL Query. The addition that I incorporated to my ETL is to query by Insertion Date and Update Date (2 fields that my table already had). Thank you very much and greetings from Santiago de Chile. --- Gracias amigo. Has salvado mi dìa con este video. En mis caso no se trataba de Excel, sino que de una Consulta SQL. El agregado que le incorporè a mi ETL es consultar por Fecha de Inserciòn y Fecha de Actualizaciòn (2 campos que mi tabla ya tenía). Muchas gracias y saludos desde Santiago de Chile.
¡Gracias!
For seasoned developers looking for a quick tutorial, this is wonderful. Concise and to the point still packed with lots of information. Great Video. Thanks.
awesome thanks
Thank you.
What is person&
1. Sheet without $ (Normal name): This refers to a regular worksheet within the Excel workbook. For example, if you name your sheet "SalesData", it will appear in Excel without a dollar sign ($). 2. Sheet with $: This typically refers to a named range or a specific type of Excel object that can be accessed through a special syntax in Excel formulas or through other Excel features. For example, if you name your sheet "SalesData$" or "SalesData$A1 ", it could represent a named range (SalesData) or a structured reference within the workbook.
Hello I am working as an SQL developer I wanna learn SSIS Services Which play list of urs should I follow
SSIS Tutorials: ua-cam.com/play/PL_YF--8vjjEVEXMf2hEFn0D5tEJV9kRqi.html SSIS real time scenarios examples: ua-cam.com/play/PL_YF--8vjjEU1Hdlqp2U_q0JNyFPYUIKY.html SSIS Interview questions and answers: ua-cam.com/play/PL_YF--8vjjEVYkoxioTCEKAkBxjLEUUB7.html
I have successfully deployed the project in sql server however its not running under sql server agent showing the error 1.Winscp.exe is not in path when i chose the option File system 2.When I am selecting the SSIS catlogue it showing The certificate chain was issued by an authority that is not trusted
Winscp should be installed on the server on which you are deploying your ssis package. Winscp.exe file should present at the correct location on server whatever location is given in the Execute process task.
Winscp is installed on the server and also the file location is correct
How to pass the key while pulling ssis from job?
hi! i have an ssis package and it work when i run in visual studio but when i try to make a sql server agent job it show this error: Message Executed as user: NT Service\SQLSERVERAGENT. Pipeline Description: OLE DB Source failed validation and returned error code 0xC020801C. End Error Error: 2024-06-28 09:23:18.32 Code: 0xC004700C Source: Export data to csv SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2024-06-28 09:23:18.32 Code: 0xC0024107 Source: Export data to csv Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 9:23:12 AM Finished: 9:23:18 AM Elapsed: 5.484 seconds. The package execution failed. The step failed. Need your help to resolve this. Best regards,
Is the ssis package placed on the file system or you are referring the ssis package from ssis catalog in sql agent job ? Make sure to set the delay validation property of ssis package to true. Take a look at this video as well. ua-cam.com/video/fIhkb3P3Jss/v-deo.html
@@learnssis file system, let me test again because the database is busy and i'll try it again.
@@learnssis it show this error after an update i've made Message Executed as user: NT Service\SQLSERVERAGENT. NNECTIONMANAGER. The AcquireConnection method call to the connection manager "TDBP78WV.DWH_ALL_Billing.backup_user" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2024-06-28 11:44:41.86 Code: 0xC0047017 Source: Export data to csv SSIS.Pipeline Description: OLE DB Source failed validation and returned error code 0xC020801C. End Error Error: 2024-06-28 11:44:41.86 Code: 0xC004700C Source: Export data to csv SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2024-06-28 11:44:41.86 Code: 0xC0024107 Source: Export data to csv Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:44:36 AM Finished: 11:44:41 AM Elapsed: 5.328 seconds. The package execution failed. The step failed.
Thanks man😊 it saved me.
Glad it worked for you.
How to see view table? i have view table and data
Do you have view in sql server ?
Hi Aqil, If Im not mistaken I have seen another video from your channel about XML ingestion. The video shows on how to ingest XML to flat data. Something to do with template to flatten the data. Do you have that😀
Sorry I don't remember about any such video.
I watched all interview questions tq so much Aqil.
Thank you.
Hii Akil, I have a folder in which multiple .xlsx files are created with 600-800 rows of data all with same column names. The names of the files are the timestamp of the file creation time ie. DDMMYYYYHHMMSS.xlsx Ive created an automated merging process into one that uses vbs and Excel's native get data functionality. The vbs script is triggered by a scheduled task . Now i want to connect this master data excel file to my ms sql server automatically. The master excel file now has 60k + rows of data and keeps on growing. I need a solution this pblm. Note : one of the column of the master file does has time stamp. is it possible to pull data from the file based on the time stamp . And update the db. Because truncating the db table each time and inserting all the data freshly might end up in data loss. Because after some period the files in the og folder will be automatically deleted. That deletion will reflect in the master file . So the db will also lose that data.
many thanks for these good expanation
Thank you Ahmed.
Thank you for your Videos ,They are very useful, i have small Question Q) How to get to know weather all the records from CSV file loaded Successfully or not what parameters we need to check .
Ideally if a data flow task is successful then it will load all records from csv file to sql server table. However if you want to double check, then you can use C# to get the total number of records from the csv file and assign the value to an ssis variable. And then after loading the data to sql server table using data flow task, you can check the total number of records loaded today and assign the value to the ssis variable using execute sql task with single result set option. Later you can compare the values between both the ssis variables, if they will be same the all records loaded otherwise there is a difference between source file record count and records loaded today to the sql server table.
Hello! I have exception with it: "... could not be upgraded to newer version of the component. The PerformUpgrade method failed".
6 years old video but still a PRECIOUS one 😍
Thank you Jeff.
Great video - Might be a dumb question but this will also apply for SQL Server 2022 as well?
Thanks, Yes it will apply for sql server 2022 as well.
changing the sheet name the way you demonstrated does not work for me. is there anything omitted from your tutorial erroneously? any assistance will be appreciated. thx
I have found out what was misleading and got mine fixed. If anyone interested then please let me know. in a nutshell, don't change the sheet name in the paramters, do it in the second DFT
also make sure of the DFT in the inner Loop has a delay validation set to true
🙏💯
I have a single raw data flat file and I need to validate the total length of the file and load the row length with fixed width format into a sql database table , can you make a video on that 😮😮 great video by the way
This will be done using C#. Can you please ask chatgpt to write the code for this requirement. It can write the code for you. Copy the first row from the flat file and give to chatgpt and ask to write the program.
@@learnssis actually it’s a total row length that need to be validated
I’m not geetiny any error I have not used sql bulk copy actually I’m using oledbcommand for connection string as yhat provider is not supported I was getting exception How to fill that datatable
Can you try to get help from chatgpt ?
we have quite few talented SQL developers and lovely videos. Apparently, none of them willing to invest in purchasing a MIC.
ha ha 😀. I was not sure if there is anything which is called as MIC
HibAkil, I have used this script task and created table dynamically but in the database tables table I could see only F1, F2 positions not the data or column headers
Can you check the Logs folder and see what error message you are getting in error_log files ?
Hi, Is there any way that we can add a new column to the fact table in the data warehouse after project deployment to the database?
The column can be added directly to Fact table using the sql query. But the SSIS package can't be changed automatically. it needs to be changed and redeployed.
@@learnssis Will there be null values for that column after the initial load or do we have to load the entire data adding that new column to the fact table. I highly appreciate your response.
@@sanjuladissanayake5295 If you already have data in the Fact table and you add a new column later to the Fact table then it will have NULL values for that column for all records. Now either you can fix the data manually to that column based on a join on source table, or you can map that column in the SSIS package and delete and reload the data to Fact table again.
Thank you so much for this❤️
The example could have been different
How about using login windows authentication?
I think I used only windows authentication method in this video. I did not used any password here.
Dear Akhil Sir, I appreciate your video demonstration. In the folder, there are currently three files: Email.csv Employee.csv Student.csv We need to ensure that any additional CSV file added to this folder, such as "Product.csv", is not renamed , Means "Product.csv" Should be Not be Renamed , Only we want to Rename Specific File in One Folder
If you do not want to rename a specific file, then before the File System Task, you can put a data flow task, and connect the data flow task with the File System Task. Now on the expressions between data flow task and File System Task, select Expressions, and write the expressions there Just drag and drop the FileName into the expression windows and write condition @Filename != "Product.csv" And then save the changes. I have written @FileName but here you would need to drag and drop the FileName ssis variable. Now what will happen the File System Task will only get executed if the file name is not Product.csv
did you create any video on this , Please share the link with me
@@Ankit_Gurjar_1997 If you look at this video, I have used the expressions here to decide whether to execute the next task or not. ua-cam.com/video/OklmSWn3qso/v-deo.html
Thank you for your good explanation If the dimensions are loaded first , then the fact table, Is it necessary to insert zero sk to the dimensions?
If we won't insert the zero sk then we might miss some records to be inserted to fact table as there won't be any match for those records.
My answer is: For example, loading the fact table every 1 hour and dimensions every 1 week So we need to insert zero sk But in addition price changes and quantity changes we need to consider sk changes To update zero value sk I think the conditional split can have another condition to check for sk changes thanks
Very informative video. In the FilePath variable, how can you make it find a dynamic file. For example: the name of the .csv file can change, but how can you make that a variable?
We are using a foreach loop container here, So the foreach loop container can loop through files in a folder and can assign the FilePath with the value of a File Path that is available in a folder.
nothing happening after executing mysql command
Sir. My SSIS package is writing 0 rows for 1-2 columns after running for 2-3 days. what will be the reason
it totally depends what is written in the SSIS package. Is it a simple load or incremental load. What is your source? Are you reading data from a single table or multiple table ? Is enough data available in source or not ?
@@learnssis it is a cte which has subqueries, joins . data is available in source and it is incremental load by using staging table
@@user-jh2yv2jz5s Try to run the cte queries on the source system whether it is fetching data or not. If it fetching data then that data might be available in destination table.
@@learnssis i have checked with cte the data is coming
@@user-jh2yv2jz5s Maybe that data already exists in the destination table. Can you insert that data to a staging table and see if that data is already in the destination table ?
Thanks for this great tutorial. I have a question: If files are in SharePoint, is this approach will work?
No. If the files are at sharepoint then first you would need to download the files from sharepoint to a folder on the server and then you can use this method.
Ssis error code: dts_e_oledb error oledb error has occurred Error code : 0x80004005 Please provide the solution for above mentioned error
Sorry this is very limited error message. Can you go to sql job and if the ssis package is deployed to ssis catalog then please check the error message there. And in the sql agent job if you are using the ssis package from file system then please go to history of the job and try to get the complete error message from there.
Hi
THERE ARE TOO MANY PROBLEMS LIKE THAT. PLEASE HELP US. VARIABLES DONT WORK LIKE YOU Error at Employee [SSIS.Pipeline]: OLE DB Destination.Inputs[OLE DB Destination Input].Columns[first_name] has lineage ID 18 that was not previously used in the Data Flow task. Error at Employee [SSIS.Pipeline]: "OLE DB Destination" failed validation and returned validation status "VS_NEEDSNEWMETADATA". Error at Employee [SSIS.Pipeline]: One or more component failed validation. Error at Employee: There were errors during task validation.
Is their any way to get the same task done without using the script task?
Sorry I am not aware about any other method. There are very minor chances that it can be done by some other method.
I need one doubt please can you provide information,I have a job in SQL server agent I need to pass parameter through the dynamic how is it please can you explain sir.
I think I already replied to you.
Hi Sir Good Day !! Good Explanation :) I never know before these deployment methods now i can understand I'm planning to do deployment in servers from git hub branch I don't know what to do if u have any idea , kindly provide some links
You need to get the ssis packages from github to a folder on the machine and then you can deploy it. In this video you can learn how to get the code from github ua-cam.com/video/ZpBoUntYzoM/v-deo.html
I need one doubt please can you provide information,I have a job in SQL server agent I need to pass parameter through the dynamic how is it please can you explain sir.
Please take a look at this video. ua-cam.com/video/1GBrMBZSAoA/v-deo.html
Sir thank you nice content.
You are most welcome.
Thank you for your help with that. I'm very grateful 💛
Thank you Arwa Omer.
Thank you for the clear tutorial, this is very useful for my work project. Can you please tell me how i could add adapt the script to add a dynamic timestamp to the zip file in the format YYYYMMDDHH24MISS ? With it being a C# script im unfamiliar with this syntax. Many Thanks in advance :-)
this is the code to zip a single file. string currentdatetime = DateTime.Now.ToString("yyyyMMddHHmmss"); string LogFolder = @"D:\Files\Logs"; // string sourceDirectory = @"D:\Files\Apple"; string zipFilePath = @"D:\Files\Data.zip"; // string zipFilePath_Folder = @"D:\Files\Apple.zip"; try { // ZipFile.CreateFromDirectory(sourceDirectory, zipFilePath_Folder); string formattedDate = DateTime.Now.ToString("yyyyMMddHHmmss"); string newZipFilePath = Path.Combine(Path.GetDirectoryName(zipFilePath), Path.GetFileNameWithoutExtension(zipFilePath) + "_" + formattedDate + Path.GetExtension(zipFilePath)); string sourceFilePath = @"D:\Files\Email.csv"; using (FileStream zipToCreate = new FileStream(newZipFilePath, FileMode.Create)) { using (ZipArchive archive = new ZipArchive(zipToCreate, ZipArchiveMode.Create)) { archive.CreateEntryFromFile(sourceFilePath, Path.GetFileName(sourceFilePath)); } } } catch (Exception exception) { using (StreamWriter sw = File.CreateText(LogFolder + "\\" + "ErrorLog_" + currentdatetime + ".log")) { sw.WriteLine(exception.ToString()); } }
İf someone got a problem with finding the dtexecui, can look at this path: C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\CommonExtensions\Microsoft\SSIS\150\Binn
My SQL task doesnt work cause of the result set "Single Row". what can ı do that for handle this problem
Error: 0xC00291E2 at GET Max RunId, Execute SQL Task: There is an invalid number of result bindings returned for the ResultSetType: "ResultSetType_SingleRow".
@@verdigin.kadar.alirsin1453 This means the sql query in the execute sql task is not returning the single row. Watch this video for more details ua-cam.com/video/_8nbAMHXGIQ/v-deo.html
You are awesome and life saver.
ha ha, thank you.
Hi Aqil, Thanks for your amazing video which help us lot. I have one question can you please resolve if possible. Can we open,save and close the excel file using SSIS @scheduled time. Like every day 3 PM that package execute and open the excel file which is in particular folder and save and close the file. Awaiting for your response Thanks in advance
You can do that using C#. Below is the C# code which can work here. You can put this code in Main method and provide the values to LogFolder path variable, FolderPath variable, and FilePath variables, rest of the code will remain same. string currentdatetime = DateTime.Now.ToString("yyyyMMddHHmmss"); string LogFolder = @"D:\Files\Logs"; string FolderPath = @"D:\Files"; string FilePath = @"D:\Files\sdf 3.xlsx"; string FileName = Path.GetFileNameWithoutExtension(FilePath); try { Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); string execPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase); Workbook book = app.Workbooks.Open(FilePath); Worksheet sheet = (Worksheet)book.Worksheets[1]; if (File.Exists(FolderPath + "\\" + FileName + "_New.xlsx")) { File.Delete(FolderPath + "\\" + FileName + "_New.xlsx"); } book.SaveAs(FolderPath + "\\" + FileName + "_New.xlsx"); if (File.Exists(FilePath)) { File.Delete(FilePath); } book.Close(); app.Quit(); if (File.Exists(FolderPath + "\\" + FileName + "_New.xlsx")) { File.Move(FolderPath + "\\" + FileName + "_New.xlsx", FilePath); } } catch (Exception ex) { using (StreamWriter sw = File.CreateText(LogFolder + "\\" + "ErrorLog_" + currentdatetime + ".log")) { sw.WriteLine(ex.ToString()); } }
@@learnssis can you please share an video with apply this code. Thanks in advance
@@user-qs1cc6fq9y I don't have a video at the moment, I will try to make a video this weekend and will share it on Monday.
@@learnssis in this code have to add excel app reference in namespace..like using excel.interop ..is it?
@@learnssis will wait for your video till the time I will try my end. Thanks 🙏 Your knowledge is really mind-blowing.thanks a lot
It gives me this error when i call the ssis pkg with this script Retrieving the com class factory for component with clsid xxx failed due to following error 80040154 Class not registered regdb_e_classnotreg... can you please help
Can you try to run the package in 32-bit mode and see if it helps.
Thank you!
You are most welcome.