Viewing 15 posts - 1,696 through 1,710 (of 6,395 total)
OK, this is my take on the problem then
create table #test_period (periodid int, customerid int, closebalance decimal (18,2))
insert into #test_period values
(1,1,10.82),
(1,2,14.67),
(1,3,15.90),
(1,4,12345.90),
(1,5,545.86),
(1,6,8456.05),
(1,7,549851.00),
(1,8,564891.02),
(1,9,7845.09),
(1,10,12.23),
(1,11,74.15),
(1,12,98.45),
(1,13,98.99),
(1,14,931.25),
(2,1,54.44),
(2,2,518.54),
(2,3,8253.25),
(2,4,455.90),
(2,5,5575.86),
(2,6,556.05),
(2,7,851.00),
(2,8,891.02),
(2,9,75.09),
(2,10,1.23),
(2,11,7.15),
(2,12,9.45),
(2,13,9.99),
(2,14,91.25),
(3,1,118.82),
(3,2,154.67),
(3,3,155.90),
(3,4,1345.90),
(3,5,45.86),
(3,6,856.05),
(3,7,59851.00),
(3,8,56891.02),
(3,9,785.09),
(3,10,2.23),
(3,11,7.15),
(3,12,8.45),
(3,13,988.99),
(3,14,31.25),
(4,1,174.82),
(4,2,174.67),
(4,3,175.90),
(4,4,127345.90),
(4,5,5745.86),
(4,6,87456.05),
(4,7,5851.00),
(4,8,891.02),
(4,9,75.09),
(4,10,742.23),
(4,11,7444.15),
(4,12,9858.45),
(4,13,99698.99),
(4,14,95231.25),
(5,1,1052.82),
(5,2,12544.67),
(5,3,15245.90),
(5,4,1254345.90),
(5,5,52445.86),
(5,6,84422456.05),
(5,7,5449851.00),
(5,8,56424891.02),
(5,9,784245.09),
(5,10,4212.23),
(5,11,224274.15),
(5,12,922458.45),
(5,13,24532.99),
(5,14,2545.25)
select * from #test_period
--Assuming you don't have any gaps in...
November 18, 2015 at 6:26 am
Ed Wagner (11/18/2015)
anthony.green (11/18/2015)
djj (11/18/2015)
Ed Wagner (11/17/2015)
djj (11/17/2015)
DonlSimpson (11/17/2015)
djj (11/17/2015)
Ed Wagner (11/17/2015)
crookj (11/17/2015)
Blizzard (Snow Day)Snow Thrower
Shovel
Dig
Work
Home
Family
Fortunes
Savings
Interest
November 18, 2015 at 6:05 am
Check any firewalls (software / hardware) for any outbound rules from your SQL server to your SMTP server for port 25 access (assuming you are using port 25)
Telnet from your...
November 18, 2015 at 5:57 am
So you need 40 rows in the output
top 10 closing balances for each of the last 4 periods?
November 18, 2015 at 5:47 am
Is there only ever 2 | in a given string
EG, will the string always be something|12345|67890
or does the number of | change in a given string and could be something...
November 18, 2015 at 5:25 am
djj (11/18/2015)
Ed Wagner (11/17/2015)
djj (11/17/2015)
DonlSimpson (11/17/2015)
djj (11/17/2015)
Ed Wagner (11/17/2015)
crookj (11/17/2015)
Blizzard (Snow Day)Snow Thrower
Shovel
Dig
Work
Home
Family
Fortunes
November 18, 2015 at 5:20 am
alter table projects add constraint DF_Projects_CreateUser_SystemUser DEFAULT SYSTEM_USER FOR create_user
November 18, 2015 at 4:58 am
1- Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 192.168.128.76]
Whats the...
November 18, 2015 at 3:25 am
Thanks for that link, will take a look more into CT then
November 18, 2015 at 2:05 am
Phil Parkin (11/18/2015)
I would think of using Change Tracking.
Always forget about CDC, just one of them things I have never used so never crosses my mind.
November 18, 2015 at 1:40 am
From the documentation the only method is to use SQL Server Config Manager.
This ensure that the new service account is assigned to the correct groups, policies and that the service...
November 18, 2015 at 1:38 am
Ed Wagner (11/17/2015)
anthony.green (11/17/2015)
whereisSQL? (11/17/2015)
anthony.green (11/17/2015)
Ed Wagner (11/17/2015)
LeiSteve Jones
editor
Chief
In Charge
Overseer
November 17, 2015 at 9:02 am
Pretty much hit the nail on the head with that link.
sp_help_revlogin is probably the best tool out to do what you need to do.
November 17, 2015 at 8:59 am
The catalog is filegroup agnostic, its the FTI which is stored on the filegroup, you could have 1 FTC with 20 FTI's and 10 of the FTI's in one filegroup...
November 17, 2015 at 8:49 am
Richie T (11/17/2015)
Same as above but slightly different approachcreate table #test(HID varchar (50))
insert into #test values
('12,3,16'),
('16,10,256'),
('2,150,110,200'),
('5,70,4'),
('2,100,110,150,200,123,159602,1568')
Select *
,charindex(',',reverse(hid)) as last_comma
,LEN(HID) as string_length
,SUBSTRING(reverse(hid),charindex(',',reverse(hid))+1,999) as new_String
,charindex(',',SUBSTRING(reverse(hid),charindex(',',reverse(hid))+1,999)) as new_string_next_Comma
,SUBSTRING(reverse(hid),charindex(',',reverse(hid))+1,charindex(',',SUBSTRING(reverse(hid),charindex(',',reverse(hid))+1,999))-1) As endResult
FROm #test
You need...
November 17, 2015 at 8:37 am
Viewing 15 posts - 1,696 through 1,710 (of 6,395 total)