Visual studio 2005 is still asking me for a create or alter after writing create procedure. What could be wrong?
USE metroengineeringdatabase
GO
CREATE PROCEDURE dbo.InsertRecords (
@assetcodeId nvarchar(20),
@name_of_asset nvarchar(20),
@unit_no nvarchar(20),
@manufacturer nvarchar(20),
@make nvarchar(20),
@model nvarchar(20),
@capacity nchar(10),
@year_of_manufacture datetime,
@serial_no nvarchar(50),
@attach nvarchar(50),
@siteid nvarchar(50),
@location nvarchar(50),
@omid nvarchar(20),
@smid nchar(20),
@periodic_maintenance_required bit
)
AS
INSERT assetdbase
(
assetcodeidtxt
name_of_assettxt,
unit_notxt,
manufacturertxt,
maketxt,
modeltxt
capacitytxt,
year_of_manufacturetxt,
attachtxt,
siteidtxt,
locationtxt,
smidtxt,
periodic_maintenance_requiredtxt
)
VALUES(
@assetcodetxt
@name_of_asset
@unit_no
@manufacturer
@make
@model
@capacity
@year_of_manufacture
@attach
@siteid
@location
@smid
@perodic_maintenance_required
)
RETURN
GO