Stored Procedure: SET Ansi - Nulls ON GO SET Quoted - Identifier ON GO
Stored Procedure: SET Ansi - Nulls ON GO SET Quoted - Identifier ON GO
Stored Procedure: SET Ansi - Nulls ON GO SET Quoted - Identifier ON GO
-- ================================================
-- Template generated from Template Explorer using:
-- Create Procedure (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- This block of comments will not be included in
-- the definition of the procedure.
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE PROCEDURE <Procedure_Name, sysname, ProcedureName>
-- Add the parameters for the stored procedure here
<@Param1, sysname, @p1> <Datatype_For_Param1, , int> = <Default_Value_For_Param1, , 0>,
<@Param2, sysname, @p2> <Datatype_For_Param2, , int> = <Default_Value_For_Param2, , 0>
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
END
ALTER PROCEDURE
[dbo].[EMPINSERTION]
(@empid INT)
AS
BEGIN
USE [AE]
GO
/****** Object: StoredProcedure [dbo].[sp_INSERT_VENDOR] Script Date: 1/8/2019
10:53:55 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[sp_INSERT_VENDOR] @Vendor_Title nvarchar(MAX),
@Vendor_Organisation nvarchar(50),
@Vendor_Country nvarchar(50), @Vendor_City nvarchar(50), @Vendor_Address1 nvarchar(MAX),
@Vendor_Address2 nvarchar(MAX),
@Vendor_Phone1 bigint, @Vendor_Phone2 bigint,@Id int,@Vendor_Email1
nvarchar(50),@Vendor_Email2 nvarchar(50)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SELECT SCOPE_IDENTITY()
END
<connectionStrings>
<add name="DefaultConnection" connectionString=" Data
Source=ZSKHAN\SQLEXPRESS;Initial Catalog=ADEMO1;Integrated
Security=True;AttachDbFilename=|DataDirectory|\aspnet-Engineers-84c088c5-51ec-4594-9c2d-
acbdd24210fc.mdf;Integrated Security=SSPI" providerName="System.Data.SqlClient" />
</connectionStrings>
cmd.Dispose();
insert_product(VendorID);
}
catch (System.Data.SqlClient.SqlException ex)
{
string msg = "Insert Error:";
msg += ex.Message;
throw new Exception(msg);
}
finally
{
conn.Close();
}