Viewing 15 posts - 4,381 through 4,395 (of 5,393 total)
Try defining the parameter as varchar(50) and filter it in the query like this:
( SELECT name + ',' + state
...
-- Gianluca Sartori
April 22, 2010 at 9:27 am
The parameter should be definded as float, if it holds float data and is compared to a float column.
What value are you passing?
-- Gianluca Sartori
April 22, 2010 at 9:20 am
Which datatype did you choose for the stored procedure parameter?
Which table field are you comparing to the parameter?
-- Gianluca Sartori
April 22, 2010 at 9:05 am
Very well. Still missing definition for table [be_xref_oa]. Can you post it?
Can you post the procedure signature as well?
-- Gianluca Sartori
April 22, 2010 at 8:45 am
I think you can raise an error and have it returned to the report.
Am I missing something?
-- Gianluca Sartori
April 22, 2010 at 8:40 am
This should do the trick:
DECLARE @test-2 TABLE (
D int,
HT int,
Adresse1 char(2),
Adresse2 char(2)
)
INSERT INTO @test-2 VALUES (1,1,'AD','DS')
INSERT INTO @test-2 VALUES (1,2,'BS','HG')
INSERT INTO @test-2 VALUES (1,3,'XD','JH')
SELECT address
FROM @test-2 AS T
UNPIVOT (address FOR...
-- Gianluca Sartori
April 22, 2010 at 8:34 am
Tom Brown (4/22/2010)
Gianluca Sartori (4/22/2010)
Jack Corbett (4/22/2010)
Gianluca Sartori (4/21/2010)
Public const SC AS String = "'" 'Yes, you got...
-- Gianluca Sartori
April 22, 2010 at 8:26 am
Jack Corbett (4/22/2010)
Gianluca Sartori (4/21/2010)
Public const SC AS String = "'" 'Yes, you got it right, it's a single...
-- Gianluca Sartori
April 22, 2010 at 8:02 am
You'd better post the whole procedure text, including parameters and their data type.
It would also be extremely useful if you could post table scripts, in order to understand which data...
-- Gianluca Sartori
April 22, 2010 at 8:00 am
You're welcome!
Glad this solved your issue
-- Gianluca Sartori
April 22, 2010 at 6:55 am
A nonclustered index should drop very quickly (should be metadata only).
I found this in BOL, maybe it could be helpful, even if it comes from SQL2008...
-- Gianluca Sartori
April 22, 2010 at 6:30 am
It depends...
Is the index clustered or nonclustered? It makes a huge difference.
-- Gianluca Sartori
April 22, 2010 at 5:58 am
This should do the trick for you:
declare @CurrentSPResult table(ID int,name varchar(50),unitscompleted varchar(50))
insert into @CurrentSPResult
select 50547, 'rupert', '30%'
declare @CodeTable table(ID int,PersonID int,Code1 char(1),Code2 char(1),Code3 char(1))
insert into @codetable
select 1 ,50547 ,'O'...
-- Gianluca Sartori
April 22, 2010 at 3:40 am
Ooops! MDF file has usually id = 1, not 0.
Try to run this and you'll get the file list for your database:
select *
from sys.database_files
-- Gianluca Sartori
April 22, 2010 at 3:23 am
Viewing 15 posts - 4,381 through 4,395 (of 5,393 total)