Viewing 15 posts - 2,251 through 2,265 (of 5,356 total)
Well, okay,...
Still Jonathan's reasoning is valid!
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 9, 2004 at 6:34 am
Don't know if I understand you correctly, but if you are asking how to get a default value of a *space*, I would look at the table design, jump to...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 9, 2004 at 6:29 am
Thanks for the help. I am going to use EXEC(). This allowed me to get the majority of the selections and is acceptable. Thanks for the link.
Oops,...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 9, 2004 at 6:17 am
Quoted from Inside SQL Server 2000
Multiple-Table Joins
According to some folklore, SQL Server "does not optimize" joins of more than four tables. There was some truth to this in earlier versions...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 9, 2004 at 2:48 am
For the sake of completeness and if you are not afraid of using some undocumented extended procedures what about this one?
DECLARE @delta INT
EXEC master.dbo.xp_regread
'HKEY_LOCAL_MACHINE'
, 'SYSTEM\CurrentControlSet\Control\TimeZoneInformation'
, 'ActiveTimeBias'
, @delta OUT
SELECT
GETDATE()...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 9, 2004 at 1:52 am
? ![]()
See the answers here
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 9, 2004 at 1:44 am
Vyas has some ideas on this published here
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 9, 2004 at 1:39 am
Now, that's a true word!
Posts in the fora surely should help the questioners. But mostly they are quickly typed (good and bad). Now writing articles (at least good ones) is...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 8, 2004 at 8:48 am
Basically there is no difference, except that you can define a database wide default with CREATE DEFAULT. This default you can bind via the mentioned s_proc to as many column...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 8, 2004 at 6:57 am
sp_executeSQL requires the SQL statement as unicode string. So you best bet is a nvarchar(4000). If your string is longer than this you cannot use sp_executeSQL, but must use EXEC()...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 8, 2004 at 6:24 am
A lot of irritations could have been avoided, if you had posted a 'What do you think on a monthly contest?' thread prior to establishing it actually.
Not to make...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 5, 2004 at 2:55 pm
Ready for an AHA effect? ![]()
declare @Month2 as char
declare @Day2 as char
declare @Year2 as char
is the same as
declare @Month2 as char(1)
declare @Day2...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2004 at 3:06 pm
Hey, your DBA is a wise man. ![]()
Actually you can use far more than 15 parameters in an s_proc and for the grouping...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2004 at 2:55 pm
Take a look at BOL for CAST and CONVERT.
When converting character or binary expressions (char, nchar, nvarchar, varchar, binary, or varbinary) to an expression of a different data type,...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2004 at 2:45 pm
What's wrong with sp_executesql?
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2004 at 2:37 pm
Viewing 15 posts - 2,251 through 2,265 (of 5,356 total)