Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

User input during the stored procedure

$
0
0
Error during the stored procedure with the ADO.Net input parameter

I am using VSTS 2008 + C# + .Net 3.5 + ADO.Net. Here is my code and related error message. The error message says, @Param1 is not supplied, but actually it is supplied in my code. Any ideas what is wrong? System.Data.SqlClient.SqlException: Procedure

Using the stored procedure with the Entity Framework where the SP parameters do not match the entity

I have stored procedures that take a user's username (to log who makes changes to the database) in addition to other information (like name, ID, email, etc.). Within the stored procedure I look up the user's ID and store that in the table. The issue

How to get user input during a while loop without blocking

I'm trying to write a while loop that constantly updates the screen by using os.system("clear") and then printing out a different text message every few seconds. How do I get user input during the loop? raw_input() just pauses and waits, which i

Call the stored procedure in the SSIS package with the input parameters

I am invoking a Storedprocedure from SSIS Package. This storedprocedure has three input parameters like Start Date, End Date and a String Variable. We are calling the SSIS Package from .Net Application. So, we have to pass paramters from C# Code to S

Authenticate the user in the stored procedure

I am new to sql and I am not sure what's wrong with my stored procedure. User inputs user name & password which are my input parameters and if it is correct then return 'Login Success', if UN is incorrect than return 'Incorrect UN' or if PW is incorr

The user grants access to the stored procedure but can not execute the query

I am working on a product that runs an SQL server which allows some applications to login and their logins are granted permission to run a stored procedure- AND NOTHING ELSE. The stored procedure is owned by an admin; the stored procedure takes a que

Run ('tsql_string') in the stored procedure - what permissions / user is used to run ()?

I have a stored procedure where I'd like to save the execution of an update statement for further down in the procedure, which I'm doing by putting the sql into a varchar variable. My problem is that the EXECUTE() seems to use the original caller's p

Displaying the stored procedure request during the call procedure

I created a stored procedure like this and called that procedure with input arguments. I want to get the procedure it self while calling it with arguments just like echo query in normal case. $procedure = "CREATE PROCEDURE pdruser_login(IN userName V

user-defined table in the stored procedure I am trying to pass a datatable to my procedure. I have created a SQL Server user-defined table type as below: CREATE TYPE dbo.DT_SimQuestionWebTemp AS TABLE ( [id] [bigint] IDENTITY(1,1) NOT NULL, [SimId] [bigint] NOT NULL, [mobile] [nvarchar](25) N Debug the stored procedure with the user-defined data type Is it possible to debug a stored procedure with a user defined data type as a parameter? Edit: which is the syntax to call it? (exec ....) My type: CREATE TYPE [dbo].[FacturaInspeccion] AS TABLE( [sIdServicio] [nvarchar](3) NOT NULL, [nIdTipoInspecci How to use the stored procedure with table value parameters to compare two input tables

I am trying to write a stored procedure to compute the differences between two input tables. Stored procedure is used to calculate differences between two tables (both tables have the same predefined table structure), the stored procedure will provid

Run the SSIS package from the stored procedure as a proxy user without xp_cmdshell

I am trying to run an SSIS package through a stored procedure, but I am getting an Access is denied error when I try to import a CSV. I put the package inside a job and ran it and it worked as long as I used a proxy account. I am trying to replicate

Problem with the user-defined table type in the stored procedure I created a user derfined table type as below CREATE TYPE [emp_TT] AS TABLE ( em_number char(12), email varchar(50), emergency_relation char(32), option1 char(16), ) GO It got created under the Types as And trying to use them in my stored procedure l

How to set the maximum value rangevalidator to the value of the stored procedure whose input value is taken from the selected item in the drop-down list?

Here's the scenario. I have a dropdownlist which populates items. The dropdownlist items contains product id as value. Now the quantity to be filled in the textbox needs to be validated using rangevalidator where the maximum value is to be taken from


Viewing all articles
Browse latest Browse all 3160

Trending Articles