Forum Moderators: open
[w3schools.com...]
So Far so good, but i cant seem to create new records?
There are 3 fields 1 being id that is an "int" and i have set it as table indentity column in the manage indexes.
Have i done all right, what have i done wrontg.
Which in the info on the form, why doesnt it go into my db?
Print out the string you've built and see if you can execute the query directly in SQL Query Analyzer or Access or whatever you're using.
Or, better yet, figure out what the SQL query needs to look like using Query Analyzer or Access, then change the code so that it builds that string for you.
They are much simpler to write & debug, execute faster and more secure.
Create dbo.User_SAVE
@Fname varchar(25),
@Lname varchar(25)
AS
INSERT INTO Users (Fname,LName)
VALUES(@Fname,@LName)
GO
Then in the ASP:
objConn.Execute ("exec dbo.User_SAVE " & Request.Form("Fname") & " " & Request.Form("Lname") )