Viewing 15 posts - 616 through 630 (of 691 total)
Watch those ranges....
create table #search(somechar char(1))
go
declare @i int
set @i = 1
while @i < = 256
begin
insert #search
select char(@i)
where char(@i) not like '[abcdefghijklmnopqrstuvwxyz0123456789]'
set @i = @i + 1
end
go
SELECT *
from #search
where PATINDEX('%[^a-z0-9]%', somechar)...
September 8, 2004 at 10:27 am
The perceived virtue of entity-attribute-value tables is that they will assist in creating a simplified schema (less tables = simplicity in some peoples' minds). The other perceived benefit is...
September 8, 2004 at 9:35 am
Please post DDL and sample data for this table. Are you searching an entire table for overlapping dates? Or a subset based on a key? Or...?
September 8, 2004 at 7:53 am
Code/MUCK tables (or more formally, entity-attribute-value tables) violate the first normal form and therefore have severe data integrity issues. Keeping an open mind, though, I would be very interested...
September 8, 2004 at 7:47 am
I totally agree with your message, but please slow down when you write. Maybe make an outline first, and have a few people edit it for you. You...
September 8, 2004 at 7:35 am
Aris,
You don't need to use the 'testsearch' table at all. It was just there for an example. Use your authors table itself:
select substring(authors.authorbio,
numbers.number,
charindex(' ',
authors.authorbio,
charindex('http://', authors.authorbio, numbers.number)) -...
September 8, 2004 at 7:17 am
First, a table called 'numbers' is created, with every number from 1 - 8000. This is meant to be a one-time thing. You should also make the number a primary...
September 7, 2004 at 1:17 pm
You can use a sequence table for this. Here's a very simple example. I have not tested it thoroughly, so it may require some or a lot of tweaking
September 7, 2004 at 10:31 am
Depending on your data, this may be doable without a cursor. Can you post some sample rows?
September 7, 2004 at 9:27 am
Aris --
By "textfield", I assume you mean a column of datatype TEXT? What is the maximum length of the data that will ever be inserted into the column?
Have you...
September 7, 2004 at 8:49 am
Mauro --
You need to use sp_executesql's OUTPUT parameter:
exec sp_executesql @sql, N'@NewAcctID int OUTPUT', @NewAcctID OUTPUT
September 7, 2004 at 7:39 am
In addition to the problems already mentioned, there is the little issue of the fact that SQL Server has no notion of anything called a "record".
September 7, 2004 at 7:29 am
CREATE VIEW YourView
AS
SELECT FirstName + ' ' + LastName AS FirstLast
from YourTable
September 3, 2004 at 12:31 pm
maxismclaren,
Please note that you _can_ include a column with the BIT datatype in an index; you just can't do it from the Enterprise Manager UI.
September 3, 2004 at 12:16 pm
By the way, this article shares some methods:
September 3, 2004 at 12:07 pm
Viewing 15 posts - 616 through 630 (of 691 total)