Viewing 15 posts - 1 through 15 (of 38 total)
Ok, given the problems in my current strategy that have been pointed out, I'm going to abandon the idea of trying to get my primary instance running in my DR...
November 23, 2015 at 2:47 pm
I'm not quite sure what the point of this process is. Is there a performance difference between indexing a bigint column and a datetime column? Why not use the datetime...
December 22, 2014 at 8:05 am
Here's a performance "gotcha" for that specific stored procedure: http://blogs.msdn.com/b/sqlserverfaq/archive/2009/10/30/sp-columns-take-longer-in-sql-server-2005-sp3-compared-to-sql-server-2000.aspx
Basically, if the database has a table with a name containing an underscore (or another wildcard character), that stored...
October 22, 2012 at 3:02 pm
I've always avoided using the BETWEEN operator on datetime columns, because most of what I work with should not get any overlap at all between one "window" of time and...
October 16, 2012 at 3:17 pm
Consider the following tables, and tell me how well this would work for you:
--It's likely this table already exists in your database, but I'm creating it again here as an...
July 24, 2012 at 10:08 am
The archive table is even less normalized than the current format. By doing it this way, it will definitely reduce your options in the future.
For example, it may not be...
July 23, 2012 at 3:53 pm
My testing shows no problems for smalldatetime in my function. Casting a datetime to a smalldatetime rounds the datetime to the nearest minute.
Datetime: 2012-02-02 13:31:52.413
CAST to smalldatetime: 2012-02-02 13:32:00
CEILING...
February 2, 2012 at 12:36 pm
This is in a function. I specify that it is a datetime datatype. If someone passes a smalldatetime value to it, it gets converted to a datetime.
I'm not able to...
February 2, 2012 at 11:06 am
How about:
SELECT c.* --Replace with the desired column list
FROM
/* Get list of all valid BuildingId, UserId combinations. I
assume that these are separate tables that are linked with a...
February 2, 2012 at 9:46 am
There's a couple reasons why I don't go that route.
#1: It only works on rounding up or down to the nearest day. My method will work on Seconds, Minutes, Hours...
February 2, 2012 at 7:23 am
Would this not work?
CAST(ISNULL(curamount/NULLIF(SUM(curamount),0),0)
OVER (PARTITION BY employeeid,docdate) AS decimal(10,4)) AS Total
If SUM(curamount) is 0, return NULL, else return SUM(curamount). X / NULL is NULL (Same...
January 30, 2012 at 9:23 am
I haven't used SSIS at all, so I'm may be completely wrong on this but, wouldn't it be MUCH cheaper to buy a copy of Developer Edition? How many users...
January 19, 2012 at 9:44 am
Keep in mind that the TIME datatype is not available in SQL Server 2005, only 2008 and newer. I realize that this is the 2008 forum, but you did ask...
January 3, 2012 at 2:10 pm
Well, I haven't worked much with Powershell, but if your backups are stored someplace that the other SQL box has access to, you should be able to create a SQL...
November 23, 2011 at 7:20 am
What version of SQL server are you using for both servers? It may be that you have no need to use powershell for this. Would anything listed here work for...
November 22, 2011 at 8:10 am
Viewing 15 posts - 1 through 15 (of 38 total)