Viewing 15 posts - 886 through 900 (of 921 total)
quote:
http://www.sqlservercentral.com/scripts/contributions/26.aspSteve Jones
http://www.sqlservercentral.com/columnists/sjones
The Best of SQL Server Central.com 2002 - http://www.sqlservercentral.com/bestof/
Wrapping VLFs like this is unnecessary...
--Jonathan
September 23, 2003 at 7:00 pm
Unless you override by using DBCC SHRINKFILE with the target size option, you cannot reduce the file size below its originally configured size. (The default size for the log...
--Jonathan
September 23, 2003 at 6:52 pm
quote:
Funny you should ask. Turns out the biggest table, and the one I was working with did not have a clustered...
--Jonathan
September 23, 2003 at 4:10 pm
This is the right approach to determining how many disks to configure. The correct number of drives has little to do with total capacity when optimizing a server for...
--Jonathan
September 23, 2003 at 4:03 pm
quote:
I'm a little confused with respect to partitioned views.Let's say I have a series of tables that contain quarterly data (ie. Subscriber_2002_Q1,...
--Jonathan
September 23, 2003 at 2:53 pm
quote:
Am I right?
Yes. Last time I calculated this, Ultra3 bus speed (160MB/s, not Mb/s)...
--Jonathan
September 23, 2003 at 2:40 pm
September 23, 2003 at 2:18 pm
This has got to be dynamic SQL, so you could just try:
DECLARE @sql varchar(800)
SET @sql = 'SELECT AccountId FROM Ca' + ISNULL(' WHERE CSId in (' + @GMCSids + ')','')
EXEC(@sql)
--Jonathan
--Jonathan
September 23, 2003 at 2:13 pm
Do not send concatenated code like that from VB. Use typed parameters for the values, preferably with stored procedures. That will not only prevent these issues, but it...
--Jonathan
September 23, 2003 at 7:24 am
Use ALTER DATABASE as explained in
http://support.microsoft.com/default.aspx?kbid=224071
--Jonathan
--Jonathan
September 23, 2003 at 6:30 am
Other than collations (used for strings), the data in SQL Server is not stored in any region-specific format. Your application should use the regional settings of the workstation. ...
--Jonathan
September 23, 2003 at 6:20 am
It's very hard to read your trigger pseudo code, particularly as it does not match your pseudo DDL. Based on your narrative, I suppose you want something like this:
CREATE...
--Jonathan
September 23, 2003 at 6:02 am
This is in BOL (acdata.chm::/ac_8_qd_14_8k6m.htm):
CREATE PROCEDURE sp_hexadecimal
@binvalue varbinary(255),
@hexvalue varchar(255) OUTPUT
AS
DECLARE @charvalue varchar(255)
DECLARE @i int
DECLARE @length int
DECLARE @hexstring char(16)
SELECT @charvalue = '0x'
SELECT @i...
--Jonathan
September 22, 2003 at 6:21 pm
quote:
Thanks Jonathan but it is not what I am looking for.Min(OrderDate) and Max(OrderDate) only works if you assume that Northwind does not...
--Jonathan
September 22, 2003 at 6:05 pm
SELECT EmployeeId, MIN(OrderDate) FirstDate, MAX(OrderDate) LastDate
FROM Orders
GROUP BY EmployeeId
ORDER BY EmployeeId
--Jonathan
--Jonathan
September 22, 2003 at 5:10 pm
Viewing 15 posts - 886 through 900 (of 921 total)