Click here to Skip to main content
15,896,272 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hell Guys,

I am tring to modify website done by asp the website functionality is helping our employee to book (schedule training room) but the schedule not available for 2010. But I want to open this calander only for one of our admin to book for 2010 I wrote one pseudo code to implement this in summit form any one I appreciate if you change to me to complete ASP code here is the pseudo code


if month = 12 and year = getyear + 1 and 
   request.servervariables "logon user" = 'DII\yobest1' then
insert into database
else
    response.write 
       "the 2010 booking is currently open only to the administrators"


I apreciate for your help
Thanks,
Posted
Updated 1-Dec-09 7:21am
v2

1 solution

Hi
Create the DNS for the connection and proceed as

if month = 12 and year = getyear + 1 and request.servervariables "logon user" = 'DII\yobest1' then
Set conn=Server.CreateObject("ADODB.Connection")
connStr="dsn=CRMWEB;uid=sa;pwd=S;" 'CRMWEB is DSN Name
conn.open connStr
set rs=server.createobject("ADODB.recordset")
sql="Insert into Query" ''Write down your Query here
rs.open sql, conn2, adOpenStatic
rs.close
set rs=nothing
conn.close
else
response.write "the 2010 booking is currently open only to the administrators"


Think this will help you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900