Viewing 7 posts - 1,486 through 1,492 (of 1,492 total)
How do you handle the fact that Saturday and Sunday do not have a place in the Staff table?
January 28, 2014 at 6:51 am
Another way to get your code:SELECT 'SELECT DISTINCT ' + AC.[name] + ' AS Column_Name FROM ' + T.[name]
FROM sys.tables AS T
INNER JOIN sys.all_columns AC ON T.[object_id] =...
January 27, 2014 at 7:42 am
Where does the zero come from? The way the test data is defined it seams to be correct. If the value is only to be used once (the...
January 23, 2014 at 6:27 am
Thanks for the tip. The code was developed in SQL2000 and never updated properly.
January 23, 2014 at 5:59 am
I do a kill on current users (there should be none) just before a full backup. I create a temp table of users with:
SELECT
P.spid...
January 23, 2014 at 5:17 am
Is there no way to tell when a record was added?
Are you trying to keep two tables in sync? If so look into replication.
January 31, 2013 at 4:43 am
If the databases are linked, and the data is NOT in the target then just use an insert:INSERT INTO QA.dbo.table1
SELECT * FROM PROD.dbo.table1 WHERE CDate BETWEEN '1/10/2012 6:00' AND...
January 30, 2013 at 10:45 am
Viewing 7 posts - 1,486 through 1,492 (of 1,492 total)