Viewing 15 posts - 1,171 through 1,185 (of 1,479 total)
Could be that the Severity level of the error that you are raising is to low (you can read about the serverity levels in books on line). ...
February 5, 2009 at 1:54 am
For each bookID there were few records with different rating. The op wanted to first key in the order by clause to be the maximum rating that the same...
February 4, 2009 at 10:15 pm
You need to find the max rating for each bookid. Then you can use this number as the first key in the order by clause. Here is an...
February 4, 2009 at 9:36 am
The catch block already handled the error, so it will not be sent farther to the calling application. You have few options. You can use the return value...
February 4, 2009 at 9:22 am
You can use raiserror to raise your own error. It will behave just like any runtime error:
use tempdb
go
create proc demo (@variable int)
as
BEGIN TRY
...
February 4, 2009 at 1:41 am
Did you remember to modify the max server memory configuration?
Adi
February 3, 2009 at 7:54 am
PaulB (2/3/2009)
Adi Cohn (2/3/2009)
You can use create table for attachDo you mean create database for attach?
sp_attach_db is deprecated
Yes, I meant create database for attach and not create table for attach....
February 3, 2009 at 4:02 am
If I remember correctly sp_attach_db can work with less the 20 files (I think that the limit is about 16, but I'm not sure about it). You can use...
February 3, 2009 at 1:11 am
It won’t cause any problems, but the question is why do you want to shrink it? If you did something new such as changed the time interval between log...
February 2, 2009 at 4:01 am
No one can know the impact on the performance. It depends on to many factors that we don’t know. For example – The type of encryption that you’ll...
January 31, 2009 at 8:53 am
As far as I know SQL Server 32 bit can not use more then 2 GB without any special configuration. If you modify the boot.ini and add the /3GB...
January 29, 2009 at 8:07 am
It sounds like you can use replication. Have a look at BOL about transactional replication to see it this is what you need.
Adi
January 29, 2009 at 2:35 am
One way that I can think about is to create a temporary table, then use a stored procedure that works with the linked servers. It can connect to all...
January 28, 2009 at 10:10 am
You can execute extended stored procedure, but I wouldn't go that path. I would redesign the process.
Adi
January 28, 2009 at 8:36 am
Sandy (1/28/2009)
smeet.seena,Please check this.
declare @sal decimal (16,2), @tsql varchar(4000)
set @tsql = 'select @sal = salary from employee'
EXEC Sp_Executesql @tql, N'@sal decimal (16,2) OUTPUT',
@sal=@sal output
select @sal
Cheers!
Sandy.
This also won’t work...
January 28, 2009 at 2:53 am
Viewing 15 posts - 1,171 through 1,185 (of 1,479 total)