Search results “Oracle procedure execute example”
Stored Procedures in PL/SQL | Oracle PL/SQL Tutorial Videos | Mr.Vijay Kumar
Stored Procedures:- A Stored Procedure is also a Named PL/SQL block the accepts some input in the form of parameters and performs some task and many or many not returns a value Procedures are created to perform one or more dml operations over database.
Views: 61647 Naresh i Technologies
The audio and video now synced. Ever tried creating a table inside a PL SQL block, or a function or a procedure? If yes, then you would know that it would raise an error, as DDL statements are not allowed inside a PL/SQL Block. So the solution to such a case, where you want to generate tables, or sequences or want to execute any DDL statement on the fly, then use synamic sql. Dynamic SQL statment will allow you to create state statements on the fly and then you can execute them using the execute immediate statement. This video tutorial demonstrates on this topic of using synamic sql with execute immediate in a PL/SQL block.
Views: 5575 Kishan Mashru
Oracle and Java tutorial. Java Stored Procedure
More lessons: http://www.learn-with-video-tutorials.com/oracle-and-java-tutorial-video Creating Java class, Loading the Class into the Oracle Database, Java Stored Procedure
The audio and video now synced. This video is a free tutorial on the difference between procedure and a function. The tutorial demonstrates the difference between oracle PL/SQL stored procedure and a function, also it shows the different type of return statement in both of the database objects and various ways to execute a procedure and a function. By learning the difference the users can make an effective judgment on when to use procedure and when to use a function. If you want more such videos of exciting and amazing 'difference between' concepts, check out the links below: union and union all: https://youtu.be/n9FqQOd8liY char and varchar2: https://youtu.be/039qzwjWf4k replace and translate: https://youtu.be/HKYF77BGzOE in and exists: https://youtu.be/REX4IjRYlFw rank and dense_rank: https://youtu.be/WGSX998hZ9M delete and truncate: https://youtu.be/u76wMm2byXo %type and %rowtype: https://youtu.be/MlLUFeZ_3eM
Views: 4919 Kishan Mashru
Stored procedures in sql server   Part 18
In this video we will learn 1. What is a stored procedure 2. Stored Procedure example 3. Creating a stored procedure with parameters 4. Altering SP 5. Viewing the text of the SP 6. Dropping the SP 7. Encrypting stored procedure Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/stored-procedures-part-18.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-18-stored-procedures.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 786712 kudvenkat
How to create store procedure in oracle
A stored procedure (also termed proc, storp, sproc, StoPro, StoredProc, StoreProc, sp, or SP) is a subroutine available to applications that access a relational database management system (RDMS). Such procedures are stored in the database data dictionary.
Views: 250 Video Teachning
PL SQL 7   Stored Procedures
https://drive.google.com/file/d/0BxYoN5rLDBaRUzNMd29PRy1wd0U/edit?usp=sharing Course objective Stores procedures Functions Packages
Views: 2325 Fdo Luis
SQL: stored procedures
In this SQL screen cast you will learn how to encapsulate business logic into your databases using stored procedures. The CREATE PROCEDURE statement will be used to create the procedure, and then it will be executed using the EXEC command.
Views: 91647 Michael Fudge
IO8: Sending mail from PL/SQL with UTL_MAIL
Learn how to use the UTL_MAIL package to send mail from within your PL/SQL program. Download my demo.zip from v.gd/sfdemo to access and run all referenced scripts. This video was taken from PLSQLChannel.com, originally recorded before Steven Feuerstein re-joined Oracle in March 2014. ======================================== Practically Perfect PL/SQL with Steven Feuerstein Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Formatting your Oracle Query Results Directly to CSV
How to get Oracle SQL Developer to automatically format your query results to CSV, HTML, JSON, Insert statements, and more.
Views: 49280 Jeff Smith
Java JDBC Tutorial - Part 6.1: Calling MySQL Stored Procedures with Java
NEED TO LEARN JAVA - 5 FREE JAVA VIDEO COURSES - CLICK HERE - https://goo.gl/7i95F8 --- View more videos on my "Java JDBC Tutorial" Playlist: http://goo.gl/crT4nS Download Java Source Code: http://www.luv2code.com/?p=1012 Closed-Captioning and English subtitles available. Please SUBSCRIBE to this channel: http://goo.gl/EV6Kwv --- In this video we will learn how to call MySQL Stored Procedures with Java. ---- Follow luv2code: Website: http://www.luv2code.com YouTube: http://goo.gl/EV6Kwv Twitter: http://goo.gl/ALMzLG Facebook: http://goo.gl/8pDRdA --- Join my mailing list: Get advance notice on new tutorials. Emails about 1 per week. - http://www.luv2code.com/joinlist --- Questions or problems? Post them in the comments section below. --- Want to suggest a video? Leave a comment below. I'm always looking for new video ideas. Let me know what video you'd like for me to create. --- Transcript Time - 00:00 Hi, this is Chad (Shod) with luv2code.com. Welcome back to another tutorial on Java JDBC. In this video, we’ll learn how to use stored procedures. We’ll first define what stored procedures are, next we’ll use callable statements. Then we’ll learn how to pass parameters to stored procedures. I’ll actually break this up over 4 different videos. I’ll show each parameter type in a separate video, so in this section we’ll cover IN parameters and then in the follow on sections, I’ll cover IN OUT, OUT and also result sets. Please stay tuned and check out the following videos for this. Time - 00:39 A stored procedure is a group of SQL statements that perform a particular task. They are normally created by a DBA. The stored procedures are created in a SQL language that supported by the native database. Each database has its own language. For example, MySQL has stored procedures language, Oracle uses PL/SQL and Microsoft SQL Server uses Transact SQL. Finally, the stored procedures can also have any combination of input and output parameters. For this tutorial, we’ll use the following table employees. The table has sample data for testing. I have a SQL zip file that’s you can download. It will create the table, add sample data and also set up the stored procedures. You can download it from the link below. Time - 01:22 All right, let’s go and switch over to the MySQL workbench and what I’m going to do is open up that SQL file and run it. This is our JDBC stored procedures directory. I have a subdirectory called SQL, and has this file, table set up that SQL. I’ll open this file, what this file does it basically creates a table as we see here and then it goes through and inserts a lot of sample data. Then, it also goes through and creates all of the stored procedures that we need for this tutorial, right. I’ll just go ahead and select execute and this will run and so now should I have a new table over here called employees and this table also has a collection or this database has a collection of stored procedures for this tutorial series, so get count employees, greet and increase salaries and we’ll go through all these stored procedures during the actual tutorial itself. Time - 02:24 In JDBC, you make use of callable statements to make a call to the stored procedures. There is a special syntax to call stored procedures. You make use of curly braces inside of the string. You also make use of the JDBC keyword call and that’s followed by the name of the stored procedure. In this example, we’re not passing any params, so we’ll just use the open and closed parentheses. Finally, we execute the stored procedure. Let’s talk about the parameters on the next slide. The JDBC API support different types of parameters. You can make use of the IN parameter, INOUT and also the OUT. The stored procedures can also return a result set, during the code examples in this video, I’ll show you how to register different parameters types and also values. Time - 03:09 Let’s start with IN parameters. For this parameter, we’re only passing an input parameter and the parameter is read-only. Our DBA has created a stored procedure on the database. This stored procedure will increase the salary for everyone in the department, which is kind of cool. The procedure takes two parameters. The first parameter is the department name. The second parameter is the increase amount. For example, we can call this stored procedure and increase the salaries of employees in the engineering department by $10,000. In terms of Java coding, we need to make a call to the stored procedure. First, we prepare a callable statement, since the stored procedure takes two parameters, we’ll make use of our question mark place orders for the parameters. [snip] ... See Transcripts tab
Views: 87934 luv2code
Stored procedures with output parameters   Part 19
In this video we will learn 1. Creating and executing stored procedures with output parameters 2. Learn about some of the useful system stored procedures Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/stored-procedures-with-output.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-19-stored-procedures-with-output.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 425919 kudvenkat
PL/SQL Tutorial : EXECUTE IMMEDIATE with INTO Clause SQL Tutorial SQL Tutorial for beginners PLSQL Tutorial PLSQL Tutorial for beginners PL/SQL Tutorial PL SQL Tutorial PL SQL Tutorial for beginners PL/SQL Tutorial for beginners Oracle SQL Tutorial
Views: 180 TechLake
create procedure and call it in oracle
this tutorial in create procedure and calling it. How to create procedure and call it. #oracle #oracleprogramming #plsql #procedure #callprocedure
Views: 10 EasyWay Coding
SSIS "Execute SQL Task" - stored procedure with input parameters
Demonstration of how to call a stored procedure to update a table with input parameters from a SSIS Execute SQL Task. Covers error handling of update failures. Examples cover OLE DB and ADO.NET.
Views: 10004 Steden Videos
How to Write Stored Procedure in SQL Server for Beginners
This Video explains how to write stored procedures in SQL Server 2008 and SQL Server 2014 using SQL Server Management Studio. How to Write Queries in SQL Server and MS Access here: https://bit.ly/2IOx0Kz SQL DBMS for Beginners(Practicals): https://bit.ly/2DBNJwm SQL Database Management Systems for Beginners(Hands-On): https://bit.ly/2XSD205 How To Create a Database in MS SQL Management Studio: https://bit.ly/2VvI6Ki For all tutorials visit: http://www.kindsonthegenius.com Subscribe Kindson The Tech Pro Youtube: https://bit.ly/2PpJd8Q Join my group ICS on Facebook: https://bit.ly/2UULiQj Follow me on Instagram - https://www.instagram.com/kindsonm/ Connect with me on LinkedIn: https://www.linkedin.com/in/kindson/ Follow me on Twitter: https://twitter.com/KindsonM Learn about me: http://www.kindsonthegenius.com More on: http://www.kttpro.com http://kindsonmunonye.blogspot.com http://kttpro.blogspot.com How to Write Stored Procedure in SQL Server is Really very easy
Views: 62906 Kindson The Tech Pro
Execute Stored Procedure Using PHP MyAdmin
This video shows If Procedure is without parameters it will directly Run Query and list out data else it will open Pop up to add parameters then Run Procedure.
Views: 332 Nishit Maheta
Calling Web Services from Oracle PLSQL
Link to the blog: https://slobaexpert.wordpress.com/2015/02/05/calling-web-services-from-oracle-plsql/
Views: 21128 Swadhin Ray
Working with PL-SQL in Oracle SQL Developer v4.0
How to navigate your PL-SQL, a few options to consider, and working with execution results of your programs in Oracle SQL Developer version 4.0.
Views: 30672 Jeff Smith
MySQL Stored Procedures and Functions (Topic #5: MySQL course from JPassion.com)
This is a partial presentation. For complete presentation, hands-on lab document, and sample apps, please go to http://jpassion.com and acquire full subscription.
Views: 76998 Sang Shin
Call Stored Procedure from Excel and show results
Call Stored Procedure from Excel and show results My SQL Blog: https://sqlwithmanoj.com/ Check my SQL FB Page at: https://www.facebook.com/sqlwithmanoj
Views: 8833 SQL with Manoj
SQL: Explain Plan for knowing the Query performance
In this tutorial, you'll learn how to compare queries to know the better performance query..
Views: 102162 radhikaravikumar
PL/SQL Tutorial 32- PL_SQL Procedure with (IN) parameter in PL/SQL By JavaInHand (in Hindi)
How to create procedure with parameter ? How to execute or run procedure with parameter ? Example of procedure with parameter?
Views: 177 JavaInHand
PL/SQL Tutorial 5: What is PL/SQL Stored Procedure? give me an example?
Learn about PL/SQL Blocks by watching videos What is Stored Procedure in PL/SQL: A procedure is a group of PL/SQL statements that you can call by name. In my next video i will be explaining further concepts of PL/SQL. Make sure you SUBSCRIBE and be the 1st one to see my videos! For HCL interview question : https://youtu.be/Pf0lRerwF5U For Global Analytics interview questions : https://youtu.be/joRTF8ZhVwg For CTS interview questions: https://www.youtube.com/watch?v=ISpHa... For accenture interview questions: https://www.youtube.com/watch?v=lojdZA7pT4o For 3i infotech interview questions: https://www.youtube.com/watch?v=aI7_45hSb5o For Infosys interview questions: https://www.youtube.com/watch?v=l4hfRvcnyxk For top 30 PLSQL interview questions: https://www.youtube.com/watch?v=pNiVsMHTk68 Please subscribe to my channel here for more videos on recent interview questions of MNC companies. https://www.youtube.com/channel/UCofh... Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Oracle PLSQL group from http://techroundinterviewque.blogspot.in/ ------------------------------------------------------------------------ Blog : http://techroundinterviewque.blogspot.in/ FB: https://www.facebook.com/jobupdates.necg/ Google+: https://plus.google.com/u/0/105097188725173992509 twitter: https://twitter.com/Oracle_pl_sql -------------------------------------------------------------------------- Thanks to my subscribers !!
Views: 1821 Oracle PL/SQL
PL/SQL Tutorial 31- PL_SQL Procedure without parameter in PL/SQL By JavaInHand (in Hindi)
What is procedure in pl/sql? Syntax of procedure in pl/sql? How to create procedure in pl/sql? How to call procedure in pl/sql? why We use Execute in pl/sql? pl/sql tutorial for beginners in hindi --------------------------------------------------- www.javainhand.com ----------------------------------------------- Example of Procedure without parameter in PL/SQL. create or replace procedure Hello_Javainhand as v_name varchar2(30):='pl/sql tutorials by javainhand'; begin dbms_output.put_line(v_name); end; --------------------------------------------------------------------------- procedure call ------------------------ Execute Hello_Javainhand; ---------------------------------- Begin Hello_Javainhand; end;
Views: 149 JavaInHand
Procedure in Oracle PL SQL By Dr. RD Balaji
Procedure in Oracle PL SQL By Dr. RD Balaji Help us caption & translate this video! http://amara.org/v/DWUt/
How To Run .sql Program File In Oracle Command Line | SQL Tutorial | PL/SQL | Oracle SQL 10g
Please avoid or flag spams/hateful comments. And do not spam. Enjoy :) I am using the Oracle Sql server 10g express edition which is free to use. Download it from oracle website. Subscribe my Channel:- http://www.youtube.com/user/SanketRooney?sub_confirmation=1 Facebook Page:- https://www.facebook.com/UnpossibleNS Twitter Account:- https://twitter.com/UnpossiblePOG How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming
Views: 14152 Unpossible POG
Database connection in Eclipse (Oracle) : javavids
How to connect Oracle database in Eclipse? Part of Java online video tutorials: http://www.javavids.com
Views: 96845 Jiri Pinkas
Table valued parameters in SQL Server
table valued parameters example send table variable to stored procedure pass table variable as parameter to stored procedure pass table variable to sql stored procedure In this video we will discuss table valued parameters in SQL Server. Table Valued Parameter is a new feature introduced in SQL SERVER 2008. Table Valued Parameter allows a table (i.e multiple rows of data) to be passed as a parameter to a stored procedure from T-SQL code or from an application. Prior to SQL SERVER 2008, it is not possible to pass a table variable as a parameter to a stored procedure. Let us understand how to pass multiple rows to a stored procedure using Table Valued Parameter with an example. We want to insert multiple rows into the following Employees table. SQL Script to create the Employees table Create Table Employees ( Id int primary key, Name nvarchar(50), Gender nvarchar(10) ) Go Step 1 : Create User-defined Table Type CREATE TYPE EmpTableType AS TABLE ( Id INT PRIMARY KEY, Name NVARCHAR(50), Gender NVARCHAR(10) ) Go Step 2 : Use the User-defined Table Type as a parameter in the stored procedure. Table valued parameters must be passed as read-only to stored procedures, functions etc. This means you cannot perform DML operations like INSERT, UPDATE or DELETE on a table-valued parameter in the body of a function, stored procedure etc. CREATE PROCEDURE spInsertEmployees @EmpTableType EmpTableType READONLY AS BEGIN INSERT INTO Employees SELECT * FROM @EmpTableType END Step 3 : Declare a table variable, insert the data and then pass the table variable as a parameter to the stored procedure. DECLARE @EmployeeTableType EmpTableType INSERT INTO @EmployeeTableType VALUES (1, 'Mark', 'Male') INSERT INTO @EmployeeTableType VALUES (2, 'Mary', 'Female') INSERT INTO @EmployeeTableType VALUES (3, 'John', 'Male') INSERT INTO @EmployeeTableType VALUES (4, 'Sara', 'Female') INSERT INTO @EmployeeTableType VALUES (5, 'Rob', 'Male') EXECUTE spInsertEmployees @EmployeeTableType That's it. Now select the data from Employees table and notice that all the rows of the table variable are inserted into the Employees table. In our next video, we will discuss how to pass table as a parameter to the stored procedure from an ADO.NET application Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/table-valued-parameters-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/table-valued-parameters-in-sql-server_17.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 69922 kudvenkat
Debugging sql server stored procedures
debugging in ssms debugging t-sql code t sql debug stored procedure sql server management studio debug stored procedure how to debug t sql debug in sql server management studio In this video we will discuss how to debug stored procedures in SQL Server. Setting up the Debugger in SSMS : If you have connected to SQL Server using (local) or . (period), and when you start the debugger you will get the following error Unable to start T-SQL Debugging. Could not connect to computer. To fix this error, use the computer name to connect to the SQL Server instead of using (local) or . For the examples in this video we will be using the following stored procedure. Create procedure spPrintEvenNumbers @Target int as Begin Declare @StartNumber int Set @StartNumber = 1 while(@StartNumber [ @Target) Begin If(@StartNumber%2 = 0) Begin Print @StartNumber End Set @StartNumber = @StartNumber + 1 End Print 'Finished printing even numbers till ' + RTRIM(@Target) End Connect to SQL Server using your computer name, and then execute the above code to create the stored procedure. At this point, open a New Query window. Copy and paste the following T-SQL code to execute the stored procedure. DECLARE @TargetNumber INT SET @TargetNumber = 10 EXECUTE spPrintEvenNumbers @TargetNumber Print 'Done' Starting the Debugger in SSMS : There are 2 ways to start the debugger 1. In SSMS, click on the Debug Menu and select Start Debugging 2. Use the keyboard shortcut ALT + F5 At this point you should have the debugger running. The line that is about to be executed is marked with an yellow arrow Step Over, Step into and Step Out in SSMS : You can find the keyboard shortcuts in the Debug menu in SSMS. Let us understand what Step Over, Step into and Step Out does when debugging the following piece of code 1. There is no difference when you STEP INTO (F11) or STEP OVER (F10) the code on LINE 2 2. On LINE 3, we are calling a Stored Procedure. On this statement if we press F10 (STEP OVER), it won't give us the opportunity to debug the stored procedure code. To be able to debug the stored procedure code you will have to STEP INTO it by pressing F11. 3. If the debugger is in the stored procedure, and you don't want to debug line by line with in that stored procedure, you can STEP OUT of it by pressing SHIFT + F11. When you do this, the debugger completes the execution of the stored procedure and waits on the next line in the main query, i.e on LINE 4 in this example. To stop debugging : There are 2 ways to stop debugging 1. In SSMS, click on the Debug Menu and select Stop Debugging 2. Use the keyboard shortcut SHIFT + F5 Show Next Statement shows the next statement that the debugger is about to execute. Run to Cursor command executes all the statements in a batch up to the current cursor position Locals Window in SSMS : Displays the current values of variables and parameters If you cannot see the locals window or if you have closed it and if you want to open it, you can do so using the following menu option. Locals window is only available if you are in DEBUG mode. Watch Window in SSMS : Just like Locals window, Watch window is used to watch the values of variables. You can add and remove variables from the watch window. To add a variable to the Watch Window, right click on the variable and select "Add Watch" option from the context menu. Call Stack Window in SSMS : Allows you to navigate up and down the call stack to see what values your application is storing at different levels. It's an invaluable tool for determining why your code is doing what it's doing. Immediate Window in SSMS : Very helpful during debugging to evaluate expressions, and print variable values. To clear immediate window type ]cls and press enter. Breakpoints in SSMS : There are 2 ways to set a breakpoint in SSMS. 1. By clicking on the grey margin on the left hand side in SSMS (to remove click again) 2. By pressing F9 (to remove press F9 again) Enable, Disable or Delete all breakpoints : There are 2 ways to Enable, Disable or Delete all breakpoints 1. From the Debug menu 2. From the Breakpoints window. To view Breakpoints window select Debug =] Windows =] Breakpoints or use the keyboard shortcut ALT + CTRL + B Conditional Breakpoint : Conditional Breakpoints are hit only when the specified condition is met. These are extremely useful when you have some kind of a loop and you want to break, only when the loop variable has a specific value (For example loop varible = 100). How to set a conditional break point in SSMS : 1. Right click on the Breakpoint and select Condition from the context menu 2. In the Breakpoint window specify the condition Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/debugging-sql-server-stored-procedures.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/debugging-sql-server-stored-procedures_28.html
Views: 117111 kudvenkat
1: Oracle PL/SQL Introductions
PL/SQL stands for Procedural Language / Structured Query Language, is a combination of procedural programming languages ​​with the programming language of SQL. Oracle database using PL/SQL to perform the manufacture of objects such as Stored Procedure, Stored Function, Package and Trigger. Such objects are known to modular blocks PL/SQL. Beside from making modular blocks, PL/SQL can also make non-modular block of PL/SQL known as anonymous block. This post will give examples of PL/SQL block both modular and non-modular.
Views: 133 Boby Siswanto
Stored procedure output parameters or return values   Part 20
In this video we will 1. Understand what are stored procedure return values 2. Difference between stored procedure return values and output parameters 3. When to use output parameters over return values Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/stored-procedure-output-parameters-or.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-20-stored-procedure-output.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 294155 kudvenkat
Temp tables in dynamic sql
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/05/temp-tables-in-dynamic-sql.html Slides http://csharp-video-tutorials.blogspot.com/2017/05/temp-tables-in-dynamic-sql_9.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All SQL Server Tutorial Videos https://www.youtube.com/playlist?list=PL08903FB7ACA1C2FB All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss the implications of creating temp tables in dynamic sql Temp tables created by dynamic SQL are not accessible from the calling procedure. They are dropped when the dynamic SQL block in the stored procedure completes execution. Let us understand this with an example. Notice in the example below, all the following 3 operations are in the block of dynamic sql code. 1. Creating the Temp Table 2. Populating the Temp Table 3. Select query on the Temp Table Create procedure spTempTableInDynamicSQL as Begin Declare @sql nvarchar(max) Set @sql = 'Create Table #Test(Id int) insert into #Test values (101) Select * from #Test' Execute sp_executesql @sql End So when we execute the above procedure we are able to access data from the Temp Table. Execute spTempTableInDynamicSQL Now, let's move the SELECT statement outside of the dynamic sql code block as shown below and ALTER the stored procedure. Alter procedure spTempTableInDynamicSQL as Begin Declare @sql nvarchar(max) Set @sql = 'Create Table #Test(Id int) insert into #Test values (101)' Execute sp_executesql @sql Select * from #Test End At this point, execute the stored procedure. Notice, we get the error - Invalid object name '#Test'. This is because temp tables created by dynamic SQL are not accessible from the calling procedure. They are dropped when the dynamic SQL block in the stored procedure completes execution. Execute spTempTableInDynamicSQL On the other hand, dynamic SQL block can access temp tables created by the calling stored procedure. Let's prove this by modifying the stored procedure as shown below. Alter procedure spTempTableInDynamicSQL as Begin Create Table #Test(Id int) insert into #Test values (101) Declare @sql nvarchar(max) Set @sql = 'Select * from #Test' Execute sp_executesql @sql End At this point, execute the stored procedure. Notice that we are able to access the temp table, which proves that dynamic SQL block can access temp tables created by the calling stored procedure. Execute spTempTableInDynamicSQL Summary 1. Temp tables created by dynamic SQL are not accessible from the calling procedure. 2. They are dropped when the dynamic SQL block in the stored procedure completes execution. 3. On the other hand, dynamic SQL block can access temp tables created by the calling stored procedure
Views: 28219 kudvenkat
VB.NET -  Using SQL Stored Procedures In Visual Basic.Net [ with source code ]
VB Net Using Stored Procedure Source Code: http://1bestcsharp.blogspot.com/2016/09/vb.net-using-stored-procedure.html All My Programming Projects Here --- http://bit.ly/2HrU8hK My Source Code Store --- http://bit.ly/2OsC0TU VB.Net Course -- http://bit.ly/2wnNiVt Programming Projects: http://1bestcsharp.blogspot.com/p/programming-projects.html visit our blog https://1bestcsharp.blogspot.com/ facebook: https://www.facebook.com/1BestCsharp twitter: https://www.twitter.com/1BestCsharp_ subscribe: http://goo.gl/nRjPKk C# And Java Programming Books http://1bestcsharp.blogspot.com/2015/04/c-and-java-programming-books.html In This VB.NET Tutorial We Will See How To Use SQL Stored Procedure To Insert Data Using Microsoft SQL DataBase And Visual Basic .NET Programming Language. subscribe for more tutorials VB.NET And SQL Server Database Tutorials: Connect SqlServer Database With Vb.net https://www.youtube.com/watch?v=098akejVsG8 Select And Display Data From SQL Server Database Using Vbnet https://www.youtube.com/watch?v=z3NpONNl2Qk Insert Data Into SQLServer Database Using VB NET https://www.youtube.com/watch?v=MWP8geR76kI Update Data In Database Using Vbnet https://www.youtube.com/watch?v=VC2XRfxmNBM Delete Data From SQL Server Database Using Visual Basic .NET https://www.youtube.com/watch?v=NSRDbI4Jra0 Search Values From SQL Server Database And Set It Into TextBox In Visual Basic .NET https://www.youtube.com/watch?v=CarCQoqDCGM Populate ComboBox From SQL Values In VbNet https://www.youtube.com/watch?v=3LIOcTLPh80 SQL Server Records Navigation Using Visual Basic.Net https://www.youtube.com/watch?v=DnAYjApOEtI Datagridview Search Data Using VB.Net https://www.youtube.com/watch?v=zn4zgBeUwnA Insert Update Delete https://www.youtube.com/watch?v=u9DqI0oAzmk Login Form With SQL Database https://www.youtube.com/watch?v=a9wloibYVNI VB NET Using SQL Stored Procedures https://www.youtube.com/watch?v=O_olT5FnqOg Insert Image Into SQL DataBase Part 1: https://www.youtube.com/watch?v=3ZjsimNLdLY Part 2: https://www.youtube.com/watch?v=u1vpYKkPquI Retrieve Image From SQL DataBase In Visual Basic.net https://www.youtube.com/watch?v=GUNZ1hfCsHc Retrieve Images From SQL DataBase Into DataGridView In VB.net https://www.youtube.com/watch?v=F72XSYlOwxk
Views: 11735 1BestCsharp blog
Oracle Data Integrator Package with examples
Oracle Data Integrator, Package, Serial and parllel execution in package with examples ODI Tutorial for Beginners. Oracle Data Integrator Tutorial ODI 11g Tutorial ODI 12c Tutorial
Views: 15463 TechLake
how to run Oracle commands by notepad...?
how to run Oracle commands by notepad... #sqltutorial#oracletutorial#databasetutorial
Views: 6285 Viral Fun Tube
Create Dynamic Query Parameters in Power BI Desktop  - Power BI Tips & Tricks #47
Create Dynamic Query Parameters, filter your reports with them and create a template using Power BI. Links mentioned in the video: Chris Webb blog: https://blog.crossjoin.co.uk/2016/08/30/data-driven-power-bi-desktop-parameters-using-list-queries/ Rio Summer Olympics Report: https://www.youtube.com/watch?v=tZXY9RZwd3U Download the sample report, #47 here: https://curbal.com/donwload-center SUBSCRIBE to learn more about Power and Excel BI! https://www.youtube.com/channel/UCJ7UhloHSA4wAqPzyi6TOkw?sub_confirmation=1 Our PLAYLISTS: - Join our DAX Fridays! Series: https://goo.gl/FtUWUX - Power BI dashboards for beginners: https://goo.gl/9YzyDP - Power BI Tips & Tricks: https://goo.gl/H6kUbP - Power Bi and Google Analytics: https://goo.gl/ZNsY8l ABOUT CURBAL: Website: http://www.curbal.com Contact us: http://www.curbal.com/contact ▼▼▼▼▼▼▼▼▼▼ If you feel that any of the videos, downloads, blog posts that I have created have been useful to you and you want to help me keep on going, here you can do a small donation to support my work and keep the channel running: https://curbal.com/product/sponsor-me Many thanks in advance! ▲▲▲▲▲▲▲▲▲▲ QUESTIONS? COMMENTS? SUGGESTIONS? You’ll find me here: ► Twitter: @curbalen, @ruthpozuelo ► Google +: https://goo.gl/rvIBDP ► Facebook: https://goo.gl/bME2sB #POWERBITIPS #CURBAL #POWERBI #MVP ► Linkedin: https://goo.gl/3VW6Ky
Views: 46016 Curbal
The case statement gives the if-then-else kind of conditional ability to the otherwise static sql select statement, This video demonstrates how to write an case statement in oracle sql, and explains different aspects of the case statement. The video explains the execution flow of the case statement and advises on the best way to write one.
Views: 2718 Kishan Mashru
Exception handling in oracle pl/sql with example
An error condition during a program execution is called an exception in Oracle PL/SQL. This is a free video tutorial on Oracle PL/SQL Exceptions. The video demonstrates examples on how to perform exception handling in oracle PL.SQL.
Views: 1284 Kishan Mashru
SQL: Delete Vs Truncate Vs Drop
In this tutorial, you'll learn the difference between delete/drop and truncate. PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database (since version 7), TimesTen in-memory database (since version 11.2.1), and IBM DB2 (since version 9.7).[1] Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. PL/SQL includes procedural language elements such as conditions and loops. It allows declaration of constants and variables, procedures and functions, types and variables of those types, and triggers. It can handle exceptions (runtime errors). Arrays are supported involving the use of PL/SQL collections. Implementations from version 8 of Oracle Database onwards have included features associated with object-orientation. One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which are stored in the database for reuse by applications that use any of the Oracle Database programmatic interfaces. PL/SQL works analogously to the embedded procedural languages associated with other relational databases. For example, Sybase ASE and Microsoft SQL Server have Transact-SQL, PostgreSQL has PL/pgSQL (which emulates PL/SQL to an extent), and IBM DB2 includes SQL Procedural Language,[2] which conforms to the ISO SQL’s SQL/PSM standard. The designers of PL/SQL modeled its syntax on that of Ada. Both Ada and PL/SQL have Pascal as a common ancestor, and so PL/SQL also resembles Pascal in several aspects. However, the structure of a PL/SQL package does not resemble the basic Object Pascal program structure as implemented by a Borland Delphi or Free Pascal unit. Programmers can define public and private global data-types, constants and static variables in a PL/SQL package.[3] PL/SQL also allows for the definition of classes and instantiating these as objects in PL/SQL code. This resembles usage in object-oriented programming languages like Object Pascal, C++ and Java. PL/SQL refers to a class as an "Abstract Data Type" (ADT) or "User Defined Type" (UDT), and defines it as an Oracle SQL data-type as opposed to a PL/SQL user-defined type, allowing its use in both the Oracle SQL Engine and the Oracle PL/SQL engine. The constructor and methods of an Abstract Data Type are written in PL/SQL. The resulting Abstract Data Type can operate as an object class in PL/SQL. Such objects can also persist as column values in Oracle database tables. PL/SQL is fundamentally distinct from Transact-SQL, despite superficial similarities. Porting code from one to the other usually involves non-trivial work, not only due to the differences in the feature sets of the two languages,[4] but also due to the very significant differences in the way Oracle and SQL Server deal with concurrency and locking. There are software tools available that claim to facilitate porting including Oracle Translation Scratch Editor,[5] CEITON MSSQL/Oracle Compiler [6] and SwisSQL.[7] The StepSqlite product is a PL/SQL compiler for the popular small database SQLite. PL/SQL Program Unit A PL/SQL program unit is one of the following: PL/SQL anonymous block, procedure, function, package specification, package body, trigger, type specification, type body, library. Program units are the PL/SQL source code that is compiled, developed and ultimately executed on the database. The basic unit of a PL/SQL source program is the block, which groups together related declarations and statements. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords divide the block into a declarative part, an executable part, and an exception-handling part. The declaration section is optional and may be used to define and initialize constants and variables. If a variable is not initialized then it defaults to NULL value. The optional exception-handling part is used to handle run time errors. Only the executable part is required. A block can have a label. Package Packages are groups of conceptually linked functions, procedures, variables, PL/SQL table and record TYPE statements, constants, cursors etc. The use of packages promotes re-use of code. Packages are composed of the package specification and an optional package body. The specification is the interface to the application; it declares the types, variables, constants, exceptions, cursors, and subprograms available. The body fully defines cursors and subprograms, and so implements the specification. Two advantages of packages are: Modular approach, encapsulation/hiding of business logic, security, performance improvement, re-usability. They support object-oriented programming features like function overloading and encapsulation. Using package variables one can declare session level (scoped) variables, since variables declared in the package specification have a session scope.
Views: 72917 radhikaravikumar
how to create basic procedure  in plsql
oracle procedure simple hello world example
Views: 96 Vijay dubey
SQL Server Programming Part 1 - Stored Procedure Basics
If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can click this link https://www.wiseowl.co.uk/donate?t=1 to make a donation. Thanks for watching! By Andrew Gould https://www.wiseowl.co.uk - If you ever find yourself writing the same SQL query over and over again, a Stored Procedure could be just the time-saving tool you're looking for. This video introduces you to the concept of stored procedures and will show you how to create, execute and modify these useful elements of SQL Server. You can see a written version of this tutorial at: https://www.wiseowl.co.uk/blog/s263/stored-procedures.htm You can download the script to create the Movies database used in this video at the following link: https://www.wiseowl.co.uk/files/execise-question-files/qf-898.zip You can see the range of resources and courses we offer in SQL Server here: https://www.wiseowl.co.uk/sql/ Visit www.wiseowl.co.uk for more online training resources in Microsoft Excel, Microsoft Access, Microsoft PowerPoint, Microsoft Word, Microsoft Project, Microsoft Publisher, Microsoft Visio, SQL Server, Reporting Services, Analysis Services, Visual Studio, ASP.NET, VB.NET, C# and more!
Views: 311686 WiseOwlTutorials
Walkthrough: SQL Server DirectQuery with Power BI
I walk through using a DirectQuery connection with SQL Server and the Power BI service. I start with Power BI Desktop, show how to configure the enterprise gateway, and then show how it looks in the Power BI service. SUBSCRIBE! https://www.youtube.com/channel/UCFp1vaKzpfvoGai0vE5VJ0w?sub_confirmation=1 LET'S CONNECT! Guy in a Cube -- http://twitter.com/guyinacube -- http://www.facebook.com/guyinacube -- http://aka.ms/guyinacube (YouTube) -- https://beme.com/guyinacube -- Snapchat - guyinacube -- https://www.instagram.com/guyinacube/ Adam Saxton (Microsoft Employee) -- http://twitter.com/awsaxton -- https://www.facebook.com/asaxton
Views: 55821 Guy in a Cube
Slow SQL Query? Get the Plan in Oracle SQL Developer!
See how to get execution and explain plans, format and views those plans, use AutoTrace, and Real Time SQL Monitoring for your SQL queries in Oracle SQL Developer.
Views: 3892 Jeff Smith