Viewing 15 posts - 1 through 15 (of 76 total)
Ok..still trying..to understand..& learn..
STEP 1DECLARE @archivePath VARCHAR(500), @templateFolder VARCHAR(100), @cmd NVARCHAR(4000);
SELECT @archivePath = 'C:\Users\MyName\Desktop\CT\MyFoldertoImport', -- Excel file path comes here
@templateFolder = 'MyFoldertoImport\'; -- Folder...
August 12, 2018 at 4:58 pm
Hello,
I'm trying to follow you here's where I am at:
Step 1:
DECLARE @archivePath VARCHAR(500), @templateFolder VARCHAR(100), @cmd NVARCHAR(4000);
SELECT @archivePath = 'C:\Users\MyName\Desktop\CT\MyFoldertoImport',...
August 10, 2018 at 3:27 pm
Hi Mike,
Yes all columns are of same format. I'm a total newb to SSMS, so let alone SSIS. Not sure if i can reference another thread that may...
August 10, 2018 at 7:06 am
August 9, 2018 at 4:23 pm
I looked back, the new back up in path \Microsoft SQL Server\MSSQL14.SQLEXPRESS01\MSSQL\Backup
is a type: file
where as the original back up was a file, type: BAK file
August 9, 2018 at 8:03 am
That worked perfectly. Thank you so much. I was afraid to erase original db, but thanks to you're confident answer I took leap of faith and back up worked. 🙂
August 8, 2018 at 3:55 pm
Thanks for pointing me in right direction guys - Appreciate it.
I see the correct way to do it as:
create table ##Test ([Primary KW] varchar...
August 3, 2018 at 9:23 am
Thanks for trying to help -- appreciate it.
Your code produced:
VehicleType Color Age
Car blue 1
Car blue 2
Car blue 3
Car red 1
Car red 2
Car red 3
Truck blue 1
Truck blue 2
Truck blue 3
Truck red 1
Truck red 2
Truck red 3
but...
August 2, 2018 at 5:25 pm
Ok I modified to, CREATE TABLE #Vehicles (VehicleType VARCHAR(5) PRIMARY KEY);
CREATE TABLE #Colors (Color VARCHAR(4) PRIMARY KEY);
CREATE TABLE #Ages(Age TINYINT PRIMARY KEY);
GO
INSERT INTO #Vehicles...
August 2, 2018 at 5:17 pm
Thanks when running I got
Incorrect syntax near '.'.
August 2, 2018 at 5:13 pm
Hey guys. thanks for your help. I went back and re checked and I had overlooked a result. Your help is really appreciated.
July 31, 2018 at 12:09 pm
Ok let me try, hmm still missing some data. Here's the updated version I have based on your feedback
select *
from
(select [KD]
from [dbo].[Tab1]
July 28, 2018 at 8:51 pm
Thanks George & Steve for answering both question regarding where clause and extra column. Very very helpful -- appreciate it!
i'm assuming if i have data such as, below,...
April 28, 2018 at 9:51 pm
April 27, 2018 at 11:35 am
April 25, 2018 at 11:24 pm
Viewing 15 posts - 1 through 15 (of 76 total)