Hi
I have a bunch of stored procedure names. I want to export the create script for each of the stored procedure. What is the best way to do it?
Right now I am manually selecting the stored proc in SSMS and selecting "Script stored procedure as -> Drop and Create to". This seems tedious. I am hoping there is a better way to deal with ...
The company I'm working for is currently using Stored Procedures (in the MsSQL server backend) as their Business Logic Layer. The actual Business Logic DLL just calls the sProcs and basically manages the UI (events, data binding, etc.)
I think there's something wrong in the setup, although I'm not sure how to explain it to my colleagues...
Hello,
I've met one person who claims he has wrote to over 5000 lines of stored procedure in Sql Server. Is that long stored procedure actually required ever? Or is it sign of a bad database and coding design? I am really worried. I never wrote anything long than 100 lines of code in Stored Procedure in one my live projects based on Ins...
I'm programming a webpage in ASP.NET which displays a list of students not listed as participants in something, and upon clicking a student name shows you a brief summary of their details, so the user can ensure they're selecting the right person.
My code currently correctly obtains their ID, adds it as a parameter to my stored procedur...
SL4 provides following items for datapaging:
DataPager control, PagedCollectionView to wrap data for datapager, DomainDatasource for paging, sort and filter in xaml.
Question:
1.With Datapager, data only loaded for specific page, no more data cached, no more extra code
needed, rightt?
Even data come from SP with EF, if the data wrapp...
How to use stored procedure in ibatis.. I am new to ibatis.. pl help
Thanks in advance
...
All of those disadvantages of stored procedures (database portability etc.) I am now facing. We are going to migrate our VB.Net/ASP/SQL Server application to something like Mono/Postgresql and fully internationalize.
One of the many issues we face is that we have 800-900 stored procedures. What we are thinking of doing is moving the log...
I have the following Stored Procedure
ALTER PROCEDURE [dbo].[bt_BizForSale_GetByID]
(
@ID int
)
AS
SET NOCOUNT ON
SELECT dbo.bt_BizForSale.UserID,
dbo.bt_BizForSale.VendorType,
dbo.bt_BizForSale.BusinessName,
dbo.bt_BizForSale.isEmailSubscriber,
dbo.bt_BizForSale.isIntermediarySubs...
i want to write a stored procedure in java for SQL to parse and store the xml automatically in the corresponding tables is it a good idea or any one guide me how to do it.
thanx in advance
...
Hi to all.
I'm trying to add a sql (stored) function to Entity Framework, but unsuccessfully. I tried with right clicking on a table in .edmx and "Function Import", but the function is not shown there, although I added it (updated model from the database).
Does anyone have solution for this?
...
I can't seem to get the GETDATE() syntax to work in a Job Step of type Transact-Sql Script. I put in the command as:
execute insertMostRecentUpdate
@Data='Data',
@Date=GETDATE()-1
But I get an "incorrect syntax near ')'" error when parsing or trying to run it. Any thoughts?
...
I've inherited an ASP.NET website with C# behind, pulling in data from MS SQL Server.
The database has had several successive maintainers over the years and any naming guidelines that may have once been in place have been ignored.
I'd like to rename the stored procedures to a consistent format. Obviously I can rename them from within ...
Hi Everyone,
I'm currently working on a project that has several 'Visual Studio Solutions'. One is for the main application and the others are component-based projects which will be reused in other applications.
The problem is that all three solutions need to access data from the same database. Each component has its own set of views...
Does the current version of NHibernate (v2.1.2) support access Oracle stored procedure output REFCURSOR in addition to an output parameter?
I can access the output refcursor fine with my code. However i'm not sure i can access the additional output param in the same stored procedure.
Some sample of calling syntax would be greatly appre...
I just creates this stored procedure in selecting palletnumber=datatype is int.
SerialNumber is varchar.
Then pallet numbers are 1 - 200..But if i enter 2 it shows 2 with other palletnumbers.
I change @search to nchar and its ok but serialnumber is has error.
Im new in stored procedure.
ALTER PROCEDURE [dbo].[sp_SearchFresh]
-- Add ...
Hello guys, I want a stored procedure to return the primary key of the new record after it gets executed. I think it will be returned by OUT parameter in the procedure. But how to select the newly inserted row ID ? I don't want to use select MAX(row_id) as it is a multi user environment.
Any procedure sample will be appreciated.
My plat...
CREATE PROCEDURE csGorevDuzenle
@duzenle int,
@grup_ad varchar(30),
@islem_grubu varchar(30),
@tamamlayan varchar(30),
@kayit_zamani datetime,
@sonuc_zamani varchar(30),
@arayan varchar(30),
@telefon varchar(20),
@tanim varchar(1000),
@durum varchar(15),
@aciklama varchar(1000)
AS
if @duzenle = 1 then
BEGIN
UPDATE gorevle...
I am new to Stored procedure in mysql
This is the procedure for returning difference of date excluding Weekends, but it returns error
#1312 - PROCEDURE blog1.DayCount can't return a result set in the given context
This is the procedure
DROP PROCEDURE IF EXISTS daycount;
CREATE PROCEDURE DayCount( d1 DATE, d2 DATE )
SELECT dd.iDiff...
Background
I'm currently working on a project that heavily utilizes SQL stored procedures. Some tables have as many as few hundred thousand procedure executions every day. Because the project serves critical business function for our client logging and fast error detection is crucial.
Question
How to implement logging and error report...
I have a prepared statement call in java that calls a procedure that commits or rolls back a sybase transaction. Is there anyway I can check from my java calls the result of that transaction, ie. success for commit or failure for rollback?
Alternatively, I want to check that the procedure completed without errors - whats the best way of ...