Viewing 15 posts - 2,821 through 2,835 (of 13,853 total)
Here's a native version, in case you'd prefer that.
DECLARE @MinDate DATE =
(
...
March 23, 2020 at 5:13 pm
As you are loading multiple files, are you concerned about the order in which they are loaded?
March 23, 2020 at 1:30 pm
Have you checked the All Executions report to look for clues as to the error?
Are you sure that this is an execution error and not an initial validation error?
Does the...
March 21, 2020 at 7:24 pm
Add an OLEDB source, with suitable connection.
Set Data Access mode to SQL Command.
In SQL command text, add the command to execute your stored proc: EXEC dbo.SomeProc
(If your proc selects its...
March 20, 2020 at 3:45 pm
You are right: two data flows will be required.
March 20, 2020 at 2:43 pm
OK, you need to do that differently.
You'll need to create a data flow. Inside the data flow, create two data sources, one which selects from the stage table and one...
March 20, 2020 at 1:50 pm
To truncate a table or exec a stored proc , use an ExecuteSQL task.
March 20, 2020 at 1:14 pm
With >7000 points, how can you claim to be "new to SQL Server"?
Please attempt your own explanation... then we can check it for you.
March 19, 2020 at 10:03 pm
Btw, w.t.heck does H stand for in that "name" anyway??
That is my mistake! For some reason, I had the word 'hyphen' in my mind when I wrote the code, and...
March 19, 2020 at 8:38 pm
I'd make it less cluttered by using a variable for the literal single quote:
DECLARE @H CHAR(1) = '''';
the CONCAT version then becomes something like this:
March 19, 2020 at 7:12 pm
You may be interested in using the CONCAT() function – it's tidier (IMO) than all those plus signs, does datatype conversion and handles NULLs for you.
Also note that you...
March 19, 2020 at 5:22 pm
Jeff, these may be for you (if you dare venture anywhere to buy them, that is!). I have a pair and they work a treat. Not that I don't...
March 18, 2020 at 4:43 pm
Does this get you anywhere close?
WITH ColumnInfo
AS (SELECT Sch = SCHEMA_NAME(t.schema_id)
,TableName = t.name
...
March 17, 2020 at 7:38 pm
If you don't understand these steps, I'd suggest finding a tutorial on SSIS that includes setting variables, ForEach and Connection Managers.
That's why I'm asking people to write a...
March 17, 2020 at 3:30 pm
Spaces at the end of strings are usually ignored by SQL Server. Have a read here for some more detail.
--Neil beat me to it!
March 17, 2020 at 1:35 pm
Viewing 15 posts - 2,821 through 2,835 (of 13,853 total)