Viewing 15 posts - 46 through 60 (of 134 total)
What is the Now in the xmlhttp.Send(Now) line ? I suppose it should be xmlhttp.Send() ...
March 3, 2005 at 12:21 am
You can try this solution. But this is only OK for little tables, as it allways results in a table scan. If the column au_lname contains ',' , you have...
February 25, 2005 at 12:44 am
In the order by, you can only use column names from the first select. In pubs, this would work :
select au_id as ID,au_lname,au_fname,phone from authors
union all
select au_id as URN,au_lname,au_fname,phone from...
February 25, 2005 at 12:36 am
Simon,
I am not usre I understood the request, but here is some code :
set nocount on
go
--exec sp__droptable 'dbo.sample'
go
-- set up a test environment
create table dbo.sample
(
EntryDate datetime not null,
Name varchar(10) not...
February 18, 2005 at 2:06 am
My mistake ... I did not see it was javascript ... Try this :
<%
var to = Server.CreateObject("ADODB.Recordset");
to.ActiveConnection = MM_s4r_STRING;
to.Source = "SELECT newdate, news FROM dbo.news";
to.CursorType = 0;
to.CursorLocation = 2;
to.LockType =...
February 15, 2005 at 1:39 am
<%
var to = Server.CreateObject("ADODB.Recordset");
to.ActiveConnection = MM_s4r_STRING;
to.Source = "SELECT newdate, news FROM dbo.news";
to.CursorType = 0;
to.CursorLocation = 2;
to.LockType = 1;
to.Open();
var to_numRows = 0;
%>
<%
Response.Write "&news=" & Server.URLEncode(to.Fields.Item("news").Value)
Response.Write Server.URLEncode(to.Fields.Item("newdate").Value)
%>
<%
to.Close();
%>
February 14, 2005 at 12:43 pm
I think it should be
Response.Write "&news=" & Server.URLEncode(to.Fields.Item("news").Value)
Bert
February 14, 2005 at 12:25 am
Thanks ... just found a little problem. The parameter @Doing is declared as @Doing varchar(512). It should be @Doing varchar(4000), as it is used to contain the posted...
February 11, 2005 at 2:09 pm
I am not sure what you mean with 'it only returns rows that has duplicate course codes'.
Can you give a DDL of the table and some...
February 3, 2005 at 1:11 am
OK ... it was just only an exemple .. You can play with the rowcount and the waitfor values ...
February 2, 2005 at 5:37 am
Matt,
in my opinion, the real problem is the definition of 'first row of Consignees/Shippers table for an id'.
Once you can define what is the 'first row', you can use...
February 2, 2005 at 2:09 am
You can not use select .. from @var. But you can use execute @procname. I would suggest to use a temporary procedure to do the select. To have exec() and...
February 2, 2005 at 1:22 am
I would add a waitfor, to make sure the server is not occupied all the time ... I use this technique a lot. It also helps to avoid a...
February 2, 2005 at 12:47 am
I recently wrote a stored procedure I use to post data to an URL and retrieve the result. The procedure posts data as is done by a html...
January 21, 2005 at 3:42 am
I do not understand why you need it in a variable to do the insert.
You can do something like this, using the temp table :
create table email_engine
(
to_address...
January 13, 2005 at 2:12 pm
Viewing 15 posts - 46 through 60 (of 134 total)