Viewing 15 posts - 1,141 through 1,155 (of 5,356 total)
Hey, I don't advocate creating user-defined things in master. I would rather prefer your approach with a separate DB for this, but the OP wrote "reply asap", and the "master"...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 5:46 am
Doesn't make too much sense, but you'll get the idea:
USE PUBS
GO
SELECT *
FROM authors
ORDER BY
CASE WHEN au_lname ='Green' THEN 'ZZZ_'+au_lname ELSE au_lname END
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 5:39 am
Right-click on the server in question -> Edit SQL Server Registration Properties -> Uncheck Show system databases and system objects.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 3:43 am
I don't know of a way to do this in SQL Server 2000. Even if it would be possible, you wouldn't want to do so.
Yes, there are certain system...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 2:49 am
Can you verify this?
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 2:39 am
Create it in master and prefix it with sp_
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 1:50 am
FWIW. Here's another approach for the lazycoder:
SELECT REPLACE(STR(ST.GR,2),' ',0)
There is no need for a CASE here anyway.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 1:45 am
Another way would be:
SET NOCOUNT ON
CREATE TABLE note
(
col1 VARCHAR(8)
)
INSERT INTO note (col1) VALUES('Notes1')
INSERT INTO note (col1) VALUES('Notes2')
INSERT INTO note (col1) VALUES('Notes3')
INSERT INTO note (col1) VALUES('Notes4')
INSERT INTO note (col1) VALUES('Notes5')
INSERT INTO...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 1:38 am
Yes, and since last year I haven't found an explanation what indid 251-254 are used for. I don't suspect them to be reserved for future use, since indid is of...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 1:19 am
Let your work partner give you some more details.
SQL Server alone won't do this automatically. However, if someone has fired a DBCC CHECKIDENT to reseed the IDENTITY property, SQL...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 20, 2005 at 1:08 am
Creating a trigger on that system table would be way tooo easy.
You have found out already that you can't do so. And...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 19, 2005 at 2:16 pm
If the row count of *any* query exceeds the range of an INT, you'll have other more serious problems than row numbering. I would start with adding a WHERE clause....
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 19, 2005 at 2:11 pm
I might state the obvious, but you know this one?
http://www.microsoft.com/sql/howtobuy/windowsnetsupport.asp
![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 19, 2005 at 8:57 am
See, if this helps:
http://support.microsoft.com/default.aspx?scid=kb;en-us;274750
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 19, 2005 at 8:48 am
Nicolas, thanks for this!
Dale, no haven't had a single look to SQL Server 2005 yet. When the RTM version is out it's still early enough to play with it.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 19, 2005 at 7:39 am
Viewing 15 posts - 1,141 through 1,155 (of 5,356 total)