stored-procedures

Azure Data Factory Get Metadata to get blob filenames and transfer them to Azure SQL database table

大兔子大兔子 提交于 2020-12-15 08:34:25
问题 I am trying to use Get Metadata activity in Azure Data Factory in order to get blob filenames and copy them to Azure SQL database table. I follow this tutorial: https://www.mssqltips.com/sqlservertip/6246/azure-data-factory-get-metadata-example/ Here is my pipeline, Copy Data > Source is the source destination of the blob files in my Blob storage. I need to specify my source file as binary because they are *.jpeg files. For my Copy Data > Sink, its the Azure SQL database, I enable the option

PHP get return value of stored procedure

喜你入骨 提交于 2020-12-06 07:08:15
问题 I have pleasure to work with legacy PHP application using SQL Server via PDO. How in PHP can I retrieve return value of stored procedure which is using RETURN statement as output channel? Example procedure CREATE PROCEDURE [dbo].[mleko_test] @param INT AS BEGIN RETURN @param * 3; END GO If possible, I would prefer to not modify procedure. I am aware that there are similar questions, but they don't cover this case Get RETURN value from stored procedure in SQL Get Return Value from SQL Stored

PHP get return value of stored procedure

狂风中的少年 提交于 2020-12-06 07:07:42
问题 I have pleasure to work with legacy PHP application using SQL Server via PDO. How in PHP can I retrieve return value of stored procedure which is using RETURN statement as output channel? Example procedure CREATE PROCEDURE [dbo].[mleko_test] @param INT AS BEGIN RETURN @param * 3; END GO If possible, I would prefer to not modify procedure. I am aware that there are similar questions, but they don't cover this case Get RETURN value from stored procedure in SQL Get Return Value from SQL Stored

Why is SSMS altering my stored procedures (re-formatting, changing exec to EXECUTE, etc.)

余生长醉 提交于 2020-12-05 08:25:29
问题 SSMS is suddenly re-formatting my stored procedure - it has never done this before. Here's an example of what I'm talking about. Here's the start of the stored procedure I created last week: CREATE PROCEDURE [dbo].[usp_LoanDataNames] ( @LoanID varchar(max) = null, @Columns varchar(max) = null, @DataNames NVARCHAR(MAX) = '', @SQL NVARCHAR(MAX) = '' ) AS All the stored procedures I created before today still have that format. But when I create a new stored procedure today, with the same exact

Replacing part of an Oracle package

人走茶凉 提交于 2020-12-03 06:30:21
问题 I need to modify one procedure from within a package. I need to touch both the declaration and the implementation. As I am maintaining patch files for each modification, I would like the changes to be minimal. Can I update the package with just the changed procedure ( if yes, how ? ) , or do I need to supply the complete package definition and implementation? 回答1: You need to replace the whole package specification and body - you cannot operate on just part of a package. 回答2: Just to

SQL Server IF EXISTS THEN 1 ELSE 2

老子叫甜甜 提交于 2020-12-01 07:57:46
问题 Using Sql Server 2012. I have a stored procedure and part of it checks if a username is in a table. If it is, return a 1, if not, return a 2. This is my code: IF EXISTS (SELECT * FROM tblGLUserAccess WHERE GLUserName ='xxxxxxxx') 1 else 2 However, I keep receiving the below error: Incorrect syntax near '1'. Is this even possible with an IF EXIST? Regards, Michael 回答1: If you want to do it this way then this is the syntax you're after; IF EXISTS (SELECT * FROM tblGLUserAccess WHERE GLUserName