Viewing 10 posts - 1 through 10 (of 10 total)
Also, if ColumnA must be of datatype int, use the CONVERT/CAST function to convert ColumnB to the correct datatype. i.e.:
insert into TableA (ColumnA)
select CONVERT(int, ColumnB) /* or CASE(ColumnB AS int)...
June 25, 2004 at 8:02 am
You need to create the #temp table before you execute the SP_ExecuteSQL.
June 24, 2004 at 6:26 am
Hi Sukhoi,
sorry it took so long, but here it is:
<%@ Language=VBScript %>
<% Option Explicit 'I always have this. Helps you find misspelt variables quickly %>
<%
Response.Buffer = True
'more code codes here...
June 23, 2004 at 1:36 am
This is not a T/SQL question. In fact it's not even a SQL question. But here's my response anyway ...
The question is: Do you want to "redirect" the page after...
June 22, 2004 at 1:52 am
Well, if the stage field is always in sequence then this should do it:
June 21, 2004 at 2:02 am
Or try:
June 18, 2004 at 1:26 am
There is no way to determine which columns a stored procedure returns in SQL, since the output can have multiple record sets, my differ depending on parameters values, etc.
By using...
June 18, 2004 at 1:17 am
Looks like the problem is in the "Group By" clause of then "inner join". It includes the ProductLogo, which is not in the select statment nor can it be used...
June 18, 2004 at 1:00 am
I have never managed to use other field(s) to set the default value of a field, but there are other ways of doing it. You can use either User Defined...
June 17, 2004 at 2:47 am
I think the problem is in your update statement:
update a set a.Ranking = b.ranknum from report4 as a join #rankings as b on b.[store nbr]... |
June 17, 2004 at 2:01 am
Viewing 10 posts - 1 through 10 (of 10 total)