Viewing 15 posts - 1,906 through 1,920 (of 8,731 total)
Ed Wagner (11/8/2016)
Ray K (11/8/2016)
Manic Star (11/8/2016)
Ed Wagner (11/8/2016)
Revenant (11/8/2016)
Grumpy DBA (11/8/2016)
Ed Wagner (11/8/2016)
DamianC (11/8/2016)
baconPork
Belly
Rub
Smoke
Alarm
Snooze
Nap
Sleep
November 8, 2016 at 1:15 pm
A way to get more accurate results is to use the Advanced tab from the flat file connection.
There's a button that says "Suggest Types...", there you can tell the number...
November 8, 2016 at 12:25 pm
I repeat, change your AND into an OR.
Or change the time to make them all in the same day.
selectWeekEnding,
count(*) as TotalVisits_3To2
--into #WeekEndingCountTotal_3To2
from #Test t
cross apply (
...
November 8, 2016 at 11:13 am
NineIron (11/8/2016)
Where would I get the value for @Date?
How would I know? You're the one asking for "patients that were registered between 3PM and 2AM the next day."
I assumed you...
November 8, 2016 at 10:55 am
Something like this?
DECLARE @Date datetime = '20161002';
SELECT *
FROM #Test
WHERE RegistrationDateTime >= DATEADD( HH, 15, @Date)
AND RegistrationDateTime < DATEADD( HH, 26, @Date)
ORDER BY RegistrationDateTime
November 8, 2016 at 10:26 am
Exactly what Tim said. Just be aware that the tables' structure should be the same on all connections or you'll be prone to errors.
November 8, 2016 at 8:57 am
Did you create the import from scratch, again? It might have kept the length in the package even if the column length was increased.
November 8, 2016 at 8:17 am
You might just need to change "digit / 10" to "1".
November 7, 2016 at 12:58 pm
This might work.
create table #mytab (origval varchar(max))
insert #mytab values
('1.2'), --should convert to 1.3
('6.25'), --should convert to...
November 7, 2016 at 12:18 pm
Grumpy DBA (11/7/2016)
Manic Star (11/7/2016)
IntrovertInnie
Minnie
November 7, 2016 at 9:09 am
Here's a different option:
selecT uc.UserGroup, us.Item
FROM dbo.DelimitedSplit8K(@UserGroup,'^') gs
CROSS APPLY (SELECT LEFT( gs.Item, NULLIF(CHARINDEX( '@', gs.Item), 0) - 1) AS UserGroup,
...
November 4, 2016 at 2:00 pm
Maybe something like this could help:
DECLARE @sql nvarchar(MAX)
SET @sql = ( SELECT N'EXECUTE sp_order_historay ' + CAST( orderID AS nvarchar(10)) + N';' + NCHAR(10)
...
November 4, 2016 at 1:31 pm
Don't think of tables. You need to start by thinking on entities, attributes and relationships. Create an ER model before even thinking about tables.
Designing a DB is not a task...
November 4, 2016 at 1:20 pm
djj (11/4/2016)
Ed Wagner (11/4/2016)
Revenant (11/4/2016)
Hugo Kornelis (11/4/2016)
Luis Cazares (11/4/2016)
MatchWinner
Medal
Olympics
Olympian
Zeus
November 4, 2016 at 11:20 am
Here's an option:
Declare @UserGroup nvarchar(MAX);
SET @UserGroup = 'UserGroup1|User1|User2|User3&UserGroup2|user4|user5|user6&Usergroup3|user7|user8|user9';
selecT uc.UserGroup, us.Item
FROM dbo.DelimitedSplit8K(@UserGroup,'&') gs
CROSS APPLY (SELECT LEFT( gs.Item, CHARINDEX( '|', gs.Item + '|') - 1) AS UserGroup,
...
November 4, 2016 at 11:07 am
Viewing 15 posts - 1,906 through 1,920 (of 8,731 total)