Viewing 15 posts - 2,101 through 2,115 (of 5,356 total)
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
May 4, 2004 at 6:58 am
Also staying away from using CONVERT should perform slightly better, as SQL Server does not need to query the syslanguages system table.
Every litlle bit helps
![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 30, 2004 at 5:59 am
You should use sp_rename for this case.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 29, 2004 at 6:59 am
As per BOL the max number of table in a SELECT statement is 256.
Here is something from Inside SQL Server 2000
Multiple-Table Joins
According to some folklore, SQL Server "does not optimize"...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 28, 2004 at 7:43 am
Yup, while
exec master..xp_cmdshell 'time' seems to hang
exec master..xp_cmdshell 'time/t' will work fine.
The only way I've found to start such a programm is to use DTS (yuk!) with a win32...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 28, 2004 at 3:46 am
Having fun with more dynamic dynamic sql
![]()
DECLARE @stmt NCHAR(1000)
SET @stmt = 'USE Frank_3 ' + CHAR(13) + 'DECLARE @stmt NCHAR(1000)' + CHAR(13)...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 28, 2004 at 3:17 am
There is an undocumented (for obvious good reasons
) xp in SQL Server named xp_servicecontrol. You can use it to start and stop...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 28, 2004 at 1:17 am
Just out of curiosity, James.
Why a UDF?
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 28, 2004 at 12:56 am
Take a look at OBJECT_ID() in BOL.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 27, 2004 at 7:59 am
http://www.microsoft.com/sql/techinfo/tips/administration/resultset.asp
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 27, 2004 at 5:53 am
Why use a trigger?
If I understand you correct create relationships between the various tables.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 27, 2004 at 12:42 am
The datatypes DECIMAL and NUMERIC are the same in SQL Server.
Will ...SET RMCPL_MD_POINTS= +@EchVpoin not work?
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 26, 2004 at 2:44 am
Change it to something like
SET @EchVpoin = 1/2.
or
SET @EchVpoin = 1./2
to force SQL Server not to assume that you want an integer result
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 26, 2004 at 2:32 am
Quick and dirty, this should work
select Cust_No, Tel_No,
(SELECT COUNT(*)
FROM
WHERE Cust_No = s.Cust_No
AND Tel_No <= s.Tel_No) AS Seq_No
FROM s
This might also be interesting
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 26, 2004 at 2:03 am
http://www.sommarskog.se/arrays-in-sql.html might give some ideas.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 26, 2004 at 1:58 am
Viewing 15 posts - 2,101 through 2,115 (of 5,356 total)