Hi
Suppose, i have a scalar variable named "@numberlis t".
How should i declare it in ASP coding
Suppose, i have a scalar variable named "@numberlis t".
How should i declare it in ASP coding
Dim VariableName
Dim VariableName
dim m,@numberlist
ctr=1
Set xml = CreateObject("Microsoft.XMLHTTP")
DECLARE @numberList varchar(700)
set rs=sconn.execute("Select @numberList = IsNull(mobile + ',' + @numberList, NULLIF( mobile, @numberList)) from <tablename> where <condition>")
set rs=sconn.execute("Select @numberList as numberList")
while not rs.eof
m=rs.Fields("numberlist").Value
Response.Write (ctr &" - - " & m &"<BR>")
ctr=ctr+1
rs.movenext
wend
dim m, numberlist
Dim sSQL sSQL = "" sSQL = sSQL & " DECLARE @numberList varchar(700); " sSQL = sSQL & " SELECT @numberList = <column> FROM <tablename> WHERE <condition>"
sSQL = " INSERT INTO <table name> (<Column Name>)"
sSQL = sSQL & " VALUES('" & Var1 & ", " & Var2 & ", " & Var3 & "') "
sSQL = " INSERT INTO <table name> (<Column Name>)"
sSQL = sSQL & " VALUES('" & Var1 & ", " & Var2 & ", " & Var3 & "') "
Comment