Viewing 15 posts - 3,061 through 3,075 (of 8,731 total)
Would it work with the real creation time of the file by using a script?
This code is untested, but it could give you an idea.
Option Strict On
Imports System
Imports System.IO
Imports System.Data
Imports...
April 12, 2016 at 1:23 pm
This is a great place to use a cursor. You need to go table by table to get the desired results.
Here's an example, just change the query text and you...
April 12, 2016 at 8:44 am
I know that you're posting on the 2008 forum, but I'll include the 2012 option just in case.
--SQL Server 2008/2005
WITH CTE AS(
SELECT *, ROW_NUMBER() OVER(PARTITION BY...
April 12, 2016 at 8:22 am
whereisSQL? (4/12/2016)
Ed Wagner (4/12/2016)
BWFC (4/12/2016)
ThomasRushton (4/12/2016)
Revenant (4/12/2016)
ThomasRushton (4/12/2016)
Manic Star (4/12/2016)
whereisSQL? (4/12/2016)
djj (4/12/2016)
Grumpy DBA (4/12/2016)
Ed Wagner (4/12/2016)
San Francisco(left my) Heart
Soul
Train
Tracks
switch
blade
glory
Blaze
Fire
Fighter
Street
April 12, 2016 at 7:54 am
Or without subqueries:
SELECT TOP 1 @@servername AS Servername
,[min server memory (MB)] = MAX(CASE WHEN name = 'min server memory (MB)' THEN value END )
,[max server memory (MB)] = MAX(CASE WHEN...
April 12, 2016 at 7:10 am
I would suggest to have a unique or primary key constraint in your target table to prevent the insertion of rows 14 and 15. As Phil said, there's no use...
April 12, 2016 at 7:01 am
I'd start by updating the statistics in your development server. Those seem very stale.
Same queries in different environments can generate different execution plans because they have to adapt to the...
April 11, 2016 at 12:31 pm
EL Jerry (4/11/2016)
whereisSQL? (4/11/2016)
crookj (4/11/2016)
ZZartin (4/11/2016)
Ed Wagner (4/11/2016)
Ray K (4/11/2016)
Revenant (4/11/2016)
Grumpy DBA (4/11/2016)
ThomasRushton (4/11/2016)
HighlanderToyota
Hybrid
RAV4
Accord
Peace
Necron 99
Wizards
Washington
Apples
April 11, 2016 at 10:52 am
A year ago, someone else asked a question about a Movie Rental Database. Could this be the same school assignment?
April 11, 2016 at 10:49 am
sys.user (4/11/2016)
Luis Cazares (4/11/2016)
Are you sure your model makes a difference between Title/movie and DVDs/copies? Those are different entities.
Well, since the original database was meant to work with single copies...
April 11, 2016 at 10:47 am
Are you sure your model makes a difference between Title/movie and DVDs/copies? Those are different entities.
April 11, 2016 at 9:39 am
NineIron (4/11/2016)
April 11, 2016 at 9:36 am
yb751 (4/11/2016)
Pretty cool technique I learnt from Luis. 😉
You just made my day 🙂
I learned this concatenation method from Wayne Sheffield, which he explains it in here: http://www.sqlservercentral.com/articles/comma+separated+list/71700/
And combined it...
April 11, 2016 at 8:42 am
This method will allow you to get the 10,000 duplicates. Check the index option used, which would be needed and can only be used for PKs and UNIQUE indexes.
CREATE TABLE...
April 11, 2016 at 8:38 am
This code is meant to be run in SSMS, then you can transform it into VB code. I would suggest to convert it to a Stored Procedure and call the...
April 11, 2016 at 7:36 am
Viewing 15 posts - 3,061 through 3,075 (of 8,731 total)