Hello,
My name is Tim and I am new here so i would just like to start of with saying hi to everyone!
the problem i have is i am using asp.net and SQL and I want to get the last value of the called vidid and increase it by one.
I have found this code
SELECT MAX(vidid) + 1
FROM dbo.Videos
I am using dreamweaver 8 and I use the test button and it submits it and comes up with the value i want.
I then press ok and go to bindings to get the value and there are no binding so i wrote the code in my self and it does not display anything not even a error msg.
I have also tryed this code
SELECT vidid + 1
FROM dbo.Videos
ORDER BY vidid DESC
This does not work aswell but if i remove the + 1 then i see that last value.
Any ideas ?? like alternate code
Thanks
Tim
My name is Tim and I am new here so i would just like to start of with saying hi to everyone!
the problem i have is i am using asp.net and SQL and I want to get the last value of the called vidid and increase it by one.
I have found this code
SELECT MAX(vidid) + 1
FROM dbo.Videos
I am using dreamweaver 8 and I use the test button and it submits it and comes up with the value i want.
I then press ok and go to bindings to get the value and there are no binding so i wrote the code in my self and it does not display anything not even a error msg.
I have also tryed this code
SELECT vidid + 1
FROM dbo.Videos
ORDER BY vidid DESC
This does not work aswell but if i remove the + 1 then i see that last value.
Any ideas ?? like alternate code
Thanks
Tim
Comment