Showing posts with label supports. Show all posts
Showing posts with label supports. Show all posts

Friday, February 24, 2012

BLAST (Basic Local Alignment Search Tool)

Does any one know if if MS SQL 2000 or 2005 supports the BLAST Search BLAST
(Basic Local Alignment Search Tool) Thanks.
is SQL full-text search what you are looking for?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Fred Pannell" <Fred Pannell@.discussions.microsoft.com> wrote in message
news:C4DE0460-988E-48FC-A164-C7C13A528589@.microsoft.com...
> Does any one know if if MS SQL 2000 or 2005 supports the BLAST Search
> BLAST
> (Basic Local Alignment Search Tool) Thanks.
|||Hilary,
I do not think that they are one in The same. BLAST searches are supported
in ORACLE 10G and in DB2. I am attempting to findout if anyone in the SQL
arena does or uses the concept in SQL 2000 or in the new 2005. I do not see
any refernces in the process for Microsoft SQL.
"Hilary Cotter" wrote:

> is SQL full-text search what you are looking for?
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Fred Pannell" <Fred Pannell@.discussions.microsoft.com> wrote in message
> news:C4DE0460-988E-48FC-A164-C7C13A528589@.microsoft.com...
>
>

BLAST (Basic Local Alignment Search Tool)

Does any one know if if MS SQL 2000 or 2005 supports the BLAST Search BLAST
(Basic Local Alignment Search Tool) Thanks.is SQL full-text search what you are looking for?
--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Fred Pannell" <Fred Pannell@.discussions.microsoft.com> wrote in message
news:C4DE0460-988E-48FC-A164-C7C13A528589@.microsoft.com...
> Does any one know if if MS SQL 2000 or 2005 supports the BLAST Search
> BLAST
> (Basic Local Alignment Search Tool) Thanks.|||Hilary,
I do not think that they are one in The same. BLAST searches are supported
in ORACLE 10G and in DB2. I am attempting to findout if anyone in the SQL
arena does or uses the concept in SQL 2000 or in the new 2005. I do not see
any refernces in the process for Microsoft SQL.
"Hilary Cotter" wrote:
> is SQL full-text search what you are looking for?
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Fred Pannell" <Fred Pannell@.discussions.microsoft.com> wrote in message
> news:C4DE0460-988E-48FC-A164-C7C13A528589@.microsoft.com...
> > Does any one know if if MS SQL 2000 or 2005 supports the BLAST Search
> > BLAST
> > (Basic Local Alignment Search Tool) Thanks.
>
>

BLAST (Basic Local Alignment Search Tool)

Does any one know if if MS SQL 2000 or 2005 supports the BLAST Search BLAST
(Basic Local Alignment Search Tool) Thanks.is SQL full-text search what you are looking for?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Fred Pannell" <Fred Pannell@.discussions.microsoft.com> wrote in message
news:C4DE0460-988E-48FC-A164-C7C13A528589@.microsoft.com...
> Does any one know if if MS SQL 2000 or 2005 supports the BLAST Search
> BLAST
> (Basic Local Alignment Search Tool) Thanks.|||Hilary,
I do not think that they are one in The same. BLAST searches are supported
in ORACLE 10G and in DB2. I am attempting to findout if anyone in the SQL
arena does or uses the concept in SQL 2000 or in the new 2005. I do not see
any refernces in the process for Microsoft SQL.
"Hilary Cotter" wrote:

> is SQL full-text search what you are looking for?
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Fred Pannell" <Fred Pannell@.discussions.microsoft.com> wrote in message
> news:C4DE0460-988E-48FC-A164-C7C13A528589@.microsoft.com...
>
>

Sunday, February 12, 2012

Bitwise operator question

What is the biggest values that SQL Server supports for bitwise AND and OR.
The BOL says any of the integer datatypes. But in the examples, it only r
eferences int, smallint and tinyint (and binary conversion stuff).
Does SQL support bigint values as well? eg. 64-bit comparisons?
I've run a couple of sample scripts to test, but I would like some confirmat
ion from others.
Thanks
Rick Sawtell
MCT, MCSD, MCDBASure:
SELECT CONVERT(BIGINT, 35184372088833) & 1
Note: You do need to explicitly convert it to BIGINT or else SQL Server wil
l try to implicitly convert it to NUMERIC, which does not support bitwise co
mparisons.
--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"Rick Sawtell" <quickening@.msn.com> wrote in message news:eBlLVTM%23EHA.1396
@.tk2msftngp13.phx.gbl...
What is the biggest values that SQL Server supports for bitwise AND and OR.
The BOL says any of the integer datatypes. But in the examples, it only r
eferences int, smallint and tinyint (and binary conversion stuff).
Does SQL support bigint values as well? eg. 64-bit comparisons?
I've run a couple of sample scripts to test, but I would like some confirmat
ion from others.
Thanks
Rick Sawtell
MCT, MCSD, MCDBA|||Bitwise operaters are supported with BIGINT. Bitmaps are a lousy way to hold
data in a strongly-typed database though, so you shouldn't need bitwise
operators very often.
David Portas
SQL Server MVP
--|||"David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
news:F3772EF4-A53D-4740-9835-642A6BBF767F@.microsoft.com...
> Bitwise operaters are supported with BIGINT. Bitmaps are a lousy way to
> hold
> data in a strongly-typed database though, so you shouldn't need bitwise
> operators very often.
> --
> David Portas
> SQL Server MVP
> --
>
How would you suggest tracking 16000 different options.
Rick|||"Rick Sawtell" <quickening@.msn.com> wrote in message
news:%23svAjAO%23EHA.1524@.TK2MSFTNGP09.phx.gbl...
> How would you suggest tracking 16000 different options.
Certainly not in a 16000-bit bitmask... Assuming those options were for
users, I would do something like this:
CREATE TABLE Options
(
OptionID INT PRIMARY KEY,
OptionName VARCHAR(50),
..
)
CREATE TABLE UserOptions
(
OptionID INT,
UserID INT,
CONSTRAINT FK_UserOptions_Options FOREIGN KEY (OptionID) REFERENCES
Options (OptionID),
CONSTRAINT FK_UserOptions_Users FOREIGN KEY (UserID) REFERENCES
Users (UserID),
CONSTRAINT PK_UserOptions PRIMARY KEY (OptionID, UserID)
)
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--|||In a table, with atomic columns representing real attributes. How else? :-)
If you have that many elements to track then I would say bitmaps are
definitely no-go. Bitmaps don't benefit from optimization on individual
attributes and every query will force a table-scan with the bitwise
operations performed on every row.
David Portas
SQL Server MVP
--

Bitwise operator question

What is the biggest values that SQL Server supports for bitwise AND and OR.
The BOL says any of the integer datatypes. But in the examples, it only references int, smallint and tinyint (and binary conversion stuff).
Does SQL support bigint values as well? eg. 64-bit comparisons?
I've run a couple of sample scripts to test, but I would like some confirmation from others.
Thanks
Rick Sawtell
MCT, MCSD, MCDBA
Sure:
SELECT CONVERT(BIGINT, 35184372088833) & 1
Note: You do need to explicitly convert it to BIGINT or else SQL Server will try to implicitly convert it to NUMERIC, which does not support bitwise comparisons.
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
"Rick Sawtell" <quickening@.msn.com> wrote in message news:eBlLVTM%23EHA.1396@.tk2msftngp13.phx.gbl...
What is the biggest values that SQL Server supports for bitwise AND and OR.
The BOL says any of the integer datatypes. But in the examples, it only references int, smallint and tinyint (and binary conversion stuff).
Does SQL support bigint values as well? eg. 64-bit comparisons?
I've run a couple of sample scripts to test, but I would like some confirmation from others.
Thanks
Rick Sawtell
MCT, MCSD, MCDBA
|||Bitwise operaters are supported with BIGINT. Bitmaps are a lousy way to hold
data in a strongly-typed database though, so you shouldn't need bitwise
operators very often.
David Portas
SQL Server MVP
|||"David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
news:F3772EF4-A53D-4740-9835-642A6BBF767F@.microsoft.com...
> Bitwise operaters are supported with BIGINT. Bitmaps are a lousy way to
> hold
> data in a strongly-typed database though, so you shouldn't need bitwise
> operators very often.
> --
> David Portas
> SQL Server MVP
> --
>
How would you suggest tracking 16000 different options.
Rick
|||"Rick Sawtell" <quickening@.msn.com> wrote in message
news:%23svAjAO%23EHA.1524@.TK2MSFTNGP09.phx.gbl...
> How would you suggest tracking 16000 different options.
Certainly not in a 16000-bit bitmask... Assuming those options were for
users, I would do something like this:
CREATE TABLE Options
(
OptionID INT PRIMARY KEY,
OptionName VARCHAR(50),
...
)
CREATE TABLE UserOptions
(
OptionID INT,
UserID INT,
CONSTRAINT FK_UserOptions_Options FOREIGN KEY (OptionID) REFERENCES
Options (OptionID),
CONSTRAINT FK_UserOptions_Users FOREIGN KEY (UserID) REFERENCES
Users (UserID),
CONSTRAINT PK_UserOptions PRIMARY KEY (OptionID, UserID)
)
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
|||In a table, with atomic columns representing real attributes. How else? :-)
If you have that many elements to track then I would say bitmaps are
definitely no-go. Bitmaps don't benefit from optimization on individual
attributes and every query will force a table-scan with the bitwise
operations performed on every row.
David Portas
SQL Server MVP