Viewing 15 posts - 61 through 75 (of 5,356 total)
You might want to check out this whitepaper:
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 23, 2005 at 2:02 am
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx?Pending=true
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 7:50 am
FWIW, check this out:
http://www.sommarskog.se/error-handling-II.html
http://www.sommarskog.se/error-handling-I.html
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 7:13 am
See if this helps
USE Northwind
SELECT t1.CustomerID , t1.OrderDate
FROM Orders t1
WHERE
(SELECT COUNT(*)
FROM Orders
WHERE OrderDate<=t1.OrderDate AND CustomerID = t1.CustomerID) <=2
ORDER BY...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 6:00 am
When you reread my first reply closely, you'll noticed that I didn't say "I need it". Actually I don't need it, but you made this bold statement, so I thought...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 4:46 am
I asked first ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 3:53 am
Ooh, and as for "How to SELECT", have a look at LIKE. ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 3:51 am
Take a look at REPLACE in BOL.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 3:50 am
P.S. And there is still one "never" - you never need GETDATE() inside UDF.
Just curious, can you expand on this? ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 16, 2005 at 3:49 am
Check this out: http://www.microsoft.com/resources/documentation/sql/2000/all/reskit/en-us/part3/c1161.mspx
Usually you would use the IMAGE datatype, however, when you start this new database directly on SQL Server 2005 use VARBINARY(MAX), since IMAGE will deprecate in...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 4, 2005 at 12:45 am
Since indexes are physical implementations, creating an index on a computed column means, that you materialize that column. It is *NOT* virtual anymore. ![]()
Another...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
September 13, 2005 at 5:39 am
You can also change it via script, but you need a workaround for it
IF OBJECT_ID('showme') > 0
DROP TABLE showme
CREATE TABLE showme (c1 TEXT)
GO
INSERT INTO showme SELECT 'Hello World'
ALTER TABLE...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
August 26, 2005 at 4:19 am
A well known trick is this: http://www.sqlteam.com/item.asp?ItemID=765
The major drawback here is that you can't control the order in which the rows are updated. There is no guarantee that they are updated...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
July 26, 2005 at 1:31 am
Ignore my posting and go with Phil's suggestion. Misread your question. I thought you were wondering why the conversion from FLOAT to VARCHAR cuts off significant decimal places. 
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
July 21, 2005 at 1:11 pm
should i use cast?
Why don't you try it out? ![]()
To explain a bit. This behaviour is "by design". What happens is that the conversion...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
July 21, 2005 at 1:06 pm
Viewing 15 posts - 61 through 75 (of 5,356 total)