Viewing 15 posts - 4,051 through 4,065 (of 5,111 total)
Personally, I'd just keep all the historical currency data. Unless storage space is really than much of a premium for you, it's not going to be a problem, as storage...
March 23, 2017 at 3:18 am
Thank you for that quick reply, your suggestion works but the result is on...
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...
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...
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 🙂
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...
March 22, 2017 at 3:32 am
If you use this method:
l_InputFolder...
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...
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...
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...
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...
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.
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...
March 21, 2017 at 4:35 am
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'),
March 20, 2017 at 10:46 am
Viewing 15 posts - 4,051 through 4,065 (of 5,111 total)