Viewing 15 posts - 76 through 90 (of 137 total)
The default is not read-only. In Bol, you will find for the read-only option :
"READ ONLY
Prevents updates made through this cursor. The cursor cannot be referenced in a WHERE...
September 23, 2004 at 12:53 am
Can you tell us what type of cursor you use ? global/local, read-only, .... I suppose a cursor that is NOT read-only has more performance problems with an order-by then...
September 23, 2004 at 12:23 am
You are right. We'll have to wait for a more detailed explanation. A cursor will be probably the easiest way to solve this, but I do not like cursors ......
September 22, 2004 at 4:44 am
For me it works fine
INPUT :
PersonID | adate | anint |
---|---|---|
A | 2004-01-01 00:00:00.000 | |
A | 2004-01-15 00:00:00.000 | 1 |
A | 2004-01-19 00:00:00.000 | |
A | 2004-01-30 00:00:00.000 | 2 |
A | 2004-02-05 00:00:00.000 | |
B | 2004-01-03 00:00:00.000 | 0 |
B | 2004-01-09 00:00:00.000 | |
B | 2004-01-19 00:00:00.000 |
and after the update :
PersonID | adate | anint |
---|---|---|
A | 2004-01-01 00:00:00.000 | |
A | 2004-01-15 00:00:00.000 | 1 |
A | 2004-01-19 00:00:00.000 | 1 |
A | 2004-01-30 00:00:00.000 | 2 |
A | 2004-02-05 00:00:00.000 | 2 |
B | 2004-01-03 00:00:00.000 | 0 |
B | 2004-01-09 00:00:00.000 | 0 |
B | 2004-01-19 00:00:00.000 | 0 |
September 22, 2004 at 2:14 am
Please try this :
set nocount on
create table dbo.tst(PersonID varchar(30) not null, adate datetime not null, anint int null )
insert dbo.tst (PersonID,adate) values ('A','20040101')
insert dbo.tst...
September 22, 2004 at 12:52 am
when calling a UDF, you should at least mention the owner of the function. Something like this should work :
insert into @table select * from dbo.fn_splitstring(@strings)
September 22, 2004 at 12:39 am
Please try this :
use tempdb -- for testing
go
create table dbo.bid ( aut_id int primary key, bid_price money )
create table dbo.aut_attr ( aut_id int primary key, min_bid_price money )
go
insert dbo.aut_attr values...
August 31, 2004 at 1:21 am
I would propose to add an optional parameter to the 2 procedures, and make them insert the results of the select in a temporary table. I would use the fact...
August 31, 2004 at 12:41 am
You should verfiy if you use returnAverages in your scripts. It may be a stored procedure you forgot to script. Look for the procedure on the original server and create...
August 31, 2004 at 12:24 am
Hi, I wrote this stored procedure and test script. The stored procedure installs into the master database, so you can use it in every database. Hope this will help you...
July 30, 2004 at 12:55 am
I also tested this with SYBASE ... and SYBASE gives the same result as ORACLE ...
I also tested this on SQL SERVER 2005...
July 28, 2004 at 2:50 am
Hi Andy,
I have some questions :
- Can there be multiple games for 1 UserId in the table ? And if so, should the procedure only list the score of the...
July 22, 2004 at 3:40 am
I have just 1 remarks. It is not true that ALL SQL servers are listenig on port 1433. 1433 is just the default value. My production servers are not listening on...
July 20, 2004 at 12:22 am
when the context is already pubs then everything goes ok !
July 8, 2004 at 11:52 pm
You can build the HTML for the second option box in a string and write the contents of that string afterwards ....
July 6, 2004 at 12:30 am
Viewing 15 posts - 76 through 90 (of 137 total)