Viewing 15 posts - 4,051 through 4,065 (of 5,109 total)
Thank you for that quick reply, your suggestion works but the result is on...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 22, 2017 at 8:32 am
Have a look at LAG (Transact-SQL) and LEAD (Transact-SQL). Tone of these will be what you want (depending on where you want the data).
Your...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 22, 2017 at 8:06 am
What you're looking at here is called ownership chaining. https://technet.microsoft.com/en-us/library/ms188676(v=sql.105).aspx
If a user executes an SP which has an owner of dbo, which inserts data into a...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 22, 2017 at 6:42 am
Double post of https://www.sqlservercentral.com/Forums/1865933/stacked-chart-with-vertical-secondary-axis-series. Please only make one topic per question 🙂
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 22, 2017 at 5:43 am
You don't need to change the format of your dates in your SQL, change it in your presentation layer. SQL will always display dates in the format yyyy-MM-dd, as per...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 22, 2017 at 3:32 am
If you use this method:
l_InputFolder...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 22, 2017 at 3:00 am
The DB owner can do anything in their own database. That includes dropping it, so I would actually ask, does the application need the ability to do this?
As...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 21, 2017 at 10:05 am
Very much thinking along the same lines.
If the SQL is simpl;y just deleting the top 10 (with no WHERE or ORDER BY clauses), then it's not even guaranteeing...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 21, 2017 at 8:55 am
So what does it do? You said it's not working, not working how?
Quick question as well, why are you using a separate function to get the value of...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 21, 2017 at 8:06 am
vipinmittalmca - Tuesday, March 21, 2017 6:28 AMUnfortunately all the applications are using the same user in windows authentication mode.
Ouch... Perhaps something...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 21, 2017 at 6:42 am
Assuming your applications each use a different login/user then why not capture that in your trigger, that should point you in the right path.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 21, 2017 at 6:18 am
What do the error messages display in the log? What is your script task doing? We need more detail. "Goes Wrong" means nothing.
Can you provide much more concise...
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 21, 2017 at 4:35 am
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 21, 2017 at 3:00 am
Something like this?CREATE TABLE #EMP (EmpID CHAR(1),
MgrID CHAR(1));
GO
INSERT INTO #EMP
VALUES
('A',NULL),
('B','A'),
('C','B'),
('D','C'),
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 20, 2017 at 10:46 am
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');
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
March 20, 2017 at 9:30 am
Viewing 15 posts - 4,051 through 4,065 (of 5,109 total)