Viewing 15 posts - 3,511 through 3,525 (of 3,544 total)
Can u post details of the procedure. Is there a special reason why you are using a proc to generate code instead of EM?
Far away is close at hand in the images of elsewhere.
Anon.
November 29, 2002 at 9:29 am
You can
SET @Counter = (SELECT COUNT(ID) FROM SomeTable)
Far away is close at hand in the images of elsewhere.
Anon.
November 29, 2002 at 3:43 am
How about
SELECT count(distinct(performed_by_user_id)) as 'No of distinct Users',
CONVERT(varchar(11),event_date) as 'Date'
FROM tablename
WHERE condition
GROUP BY CONVERT(varchar(11),event_date),CONVERT(varchar(10),event_date,120)
ORDER BY CONVERT(varchar(10),event_date,120)
Far away is close at hand in the images of elsewhere.
Anon.
November 29, 2002 at 3:21 am
WHERE CHARINDEX(','+fname+',', ','+@Param1+',') > 0
will solve that
Far away is close at hand in the images of elsewhere.
Anon.
November 28, 2002 at 4:31 am
Change GROUP BY clause to GROUP BY event_date
Far away is close at hand in the images of elsewhere.
Anon.
November 28, 2002 at 4:11 am
Try
Select t.Response , Count(c.prompt) as 'Number', (Count(c.prompt) * 100)/@tot as 'Percentage'
From #Responses t
Left Join custsatisfaction c
On c.prompt = t.Response
and c.datesubmitted Between @startdate And @enddate
Group By t.Response
Far away is close at hand in the images of elsewhere.
Anon.
November 28, 2002 at 3:21 am
My 2 penny worth (or cents if u like). In cases like thses I create another table in the same database and copy the contents to it.
e.g. create tableacopy and...
Far away is close at hand in the images of elsewhere.
Anon.
November 28, 2002 at 2:59 am
Since my previous reply, today one of my apps got Error -2147467259 [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionRead (recv()).
This is the first one for two months. The app was 8 minutes...
Far away is close at hand in the images of elsewhere.
Anon.
November 28, 2002 at 2:49 am
If the resulting field of the update in the proc is text then I suggest you pass each variable separately and use WRITETEXT and UPDATETEXT as appropriate.
Far away is close at hand in the images of elsewhere.
Anon.
November 27, 2002 at 11:48 am
Due to the SQL limit of 8000 characters, I don't think what you are trying to do is possible.
If you reduce the variables to 4000, you can use a third...
Far away is close at hand in the images of elsewhere.
Anon.
November 27, 2002 at 10:51 am
I had similar error (not DBNETLIB) connecting to SQL7 in DMZ behind firewall and could not find any reason.
I changed my code to populate the recordset before processing the contents...
Far away is close at hand in the images of elsewhere.
Anon.
November 27, 2002 at 7:50 am
Try http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaskdr/html/askgui05292001.asp
Far away is close at hand in the images of elsewhere.
Anon.
November 27, 2002 at 4:06 am
Will only display first row
do until dkrResult.EOF
response.write(dkrResult.fields("customerid").value)
dkrResult.movenext
loop
will show all rows
Far away is close at hand in the images of elsewhere.
Anon.
November 27, 2002 at 3:39 am
I'm a bit confused, are you saying that when you store your records you do not know if the date is blank or contains a date.
If this is the case...
Far away is close at hand in the images of elsewhere.
Anon.
November 27, 2002 at 3:00 am
If it is a SQL7 MDF then try sp_attach_db
I believe is must have same system properties (sort order etc)
Far away is close at hand in the images of elsewhere.
Anon.
November 26, 2002 at 11:14 am
Viewing 15 posts - 3,511 through 3,525 (of 3,544 total)