Viewing 15 posts - 331 through 345 (of 582 total)
When this occurs, use
DBCC
CHECKIDENT ('table_name', NORESEED)
to see if a value higher than the current identity value has been...
June 6, 2006 at 3:47 am
Dynamic SQL is usually a bad idea, but for a quick fix,
Set @select1 = 'Select Reference.RefID, Reference.CreatorString As CreatorString, Genre.Type As Media, dbo.getRowRank(''' + replace(@Target,
June 5, 2006 at 1:06 pm
I understand that you are not some sort of latter-day Sherlock Holmes with nothing to do but solve interesting mysteries (and in his case, hard drugs and fiddling), but you...
June 5, 2006 at 7:42 am
I think the confusion arises here:
June 5, 2006 at 7:19 am
It crossed my mind that if you want to store this kind of data, the XML datatype might be of use. I have a feeling that it might be possible...
June 5, 2006 at 6:07 am
I didn't use a double colon, but it works for any string (subject to length restrictions).
@str varchar(
June 4, 2006 at 4:44 am
Re indexing - I agree for the medium term, but on a longer view and if you have many such reports, you might want to look at a specialised reporting environment...
June 4, 2006 at 3:52 am
Try owner(schema) qualifying the table name. And yes, post the error and plan if that doesn't work.
June 3, 2006 at 9:20 am
I don't know (yet). How do you know it doesn't? I can't reproduce it.
June 3, 2006 at 6:55 am
I agree, and on a more general point. Scalar UDFs are not a panacea. If they are used in a multi-row SQL statement, they are best used as a shorthand for...
June 3, 2006 at 6:45 am
If you're going to do that, why not:
when 6 then dateadd(mm,-2,getdate())
else dateadd(mm,-3,getdate())
select * from
sales
where Cur_date >...
June 3, 2006 at 6:32 am
The reason a leading wildcard slows things down is because you can't use an index. The index is arranged in (an) alphabetical order, so to find things quickly you need...
June 3, 2006 at 4:14 am
You can't rely on SQL using a lazy OR, i.e. ignoring the second disjunct if the first is true. Even if it did sometimes do that, which I don't think...
June 3, 2006 at 3:53 am
The full text search capabilities in SQL Server offer a reasonably wide range of functionality, which could perhaps be set up as a basic system and subsequently improved in response...
June 3, 2006 at 3:40 am
Should have added that your joins would need to be left joins, and the where clauses amended to handle NULLs, otherwise new venues withut any reservations would never show up...though...
June 3, 2006 at 3:28 am
Viewing 15 posts - 331 through 345 (of 582 total)