Viewing 15 posts - 4,066 through 4,080 (of 5,111 total)
In very simplistic terms, I'd probably do something like this:CREATE TABLE #Dates (StartDate DateTime, EndDate DateTime);
INSERT INTO #Dates (StartDate, EndDate)
VALUES ('20170428 15:00:00', '20170504 10:00:00');
March 20, 2017 at 9:30 am
March 17, 2017 at 10:43 am
March 17, 2017 at 8:47 am
March 17, 2017 at 8:38 am
I'm not even going to try and defend my English. I live in England, always have, and English is my only language. I, however, know all to well that I...
March 17, 2017 at 8:10 am
Use the OUTPUT statementUPDATE Table1
SET Count = 0
OUTPUT inserted.* --Or list your columns, i.e. inserted.CustomerName, inserted.Postcode, etc, etc
INTO #Output
FROM Table1 AS T1 JOIN...
March 17, 2017 at 7:05 am
I would go with a staging table, and upload the contents on your CSV file(s) to it. SSIS can do this part using a data flow task more than easily.
March 17, 2017 at 4:46 am
March 16, 2017 at 10:49 am
I think what you're after here is a CROSS APPLY, so you can limit your result that way.
This is untested, however, instead of your INNER JOIN to [CustomerBrokerView]...
March 16, 2017 at 10:37 am
We need it in a consumable format, please. Have a look at the link in my signature on how to achieve this.
March 16, 2017 at 10:04 am
Pretty sure SQL Server 2005 supports CTE's as well. Been using them for...
March 16, 2017 at 10:00 am
The screenshot doesn't show where the data is coming from, so all we can do is guess.
If you supply DDL and consumable sample data that shows the...
March 16, 2017 at 9:40 am
sqlnewbie17 - Thursday, March 16, 2017 8:45 AMI need this to work across all SQLVersions
How far back in versions are you going...
March 16, 2017 at 8:57 am
An Auto incrementing foreign key? What is your goal here?
March 16, 2017 at 4:47 am
Viewing 15 posts - 4,066 through 4,080 (of 5,111 total)