Viewing 15 posts - 22,261 through 22,275 (of 59,072 total)
BI_NewBie (12/3/2014)
Thanks for your reply.
In my database, there is a transaction table whose row count is 117690142. There are index created on column but still when we fire any...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 4, 2014 at 12:21 am
BI_NewBie (12/3/2014)
Greetings!
I need suggestion on Dynamic Partition of SQL Table. I have done my homework on this topic but still below questions are still stuck in my mind.
1. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 10:06 pm
Jeff Moden (12/3/2014)
craig.bobchin (12/3/2014)
declare @MaxRowdateTime datetime
select @MaxRowdateTime = max(DATEADD(day, DATEDIFF(day,'19000101',row_date), CAST(CONVERT( TIME, STUFF( RIGHT( '0000' + CONVERT( VARCHAR(5), starttime), 4), 3, 0, ':')) AS DATETIME2(7)))) from [avaya].[dbo].[hSplit]
select
DATEADD(day,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 9:45 pm
craig.bobchin (12/3/2014)
declare @MaxRowdateTime datetime
select @MaxRowdateTime = max(DATEADD(day, DATEDIFF(day,'19000101',row_date), CAST(CONVERT( TIME, STUFF( RIGHT( '0000' + CONVERT( VARCHAR(5), starttime), 4), 3, 0, ':')) AS DATETIME2(7)))) from [avaya].[dbo].[hSplit]
select
DATEADD(day, DATEDIFF(day,'19000101',row_date), CAST(CONVERT(...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 9:10 pm
craig.bobchin (12/3/2014)
Thanks that worked. How can I concatenate this with a date field. neither '&' nor '+' seem to work.
Is the date "field" an Integer, as well? If...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 8:53 pm
CELKO (12/3/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 8:23 pm
simflex-897410 (12/3/2014)
However, we are allowed to manipulated what they call custom fields.
These custom fields are literally called field1, field2... up to filed5.
Right...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 5:40 pm
craig.bobchin (12/3/2014)
I've got a column that holds a time value in Integer form as a number from midnight (IE military time) with no leading 0s or colons.
0 = 00:00
30...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 5:33 pm
clayman (12/3/2014)
Thanks, figured it out. The second solution seems to run ~6-7 times faster.
Do you have the index that I recommended?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 5:08 pm
IO got lucky... or maybe my Yabingooglewho has gotten a lot better and I found it on the first shot.
http://www.sommarskog.se/grantperm.html
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 5:05 pm
schleep (12/3/2014)
djj provided the link above. I'm looking into it now...
That's not one of Erland Sommarskogs articles, which I highly recommend.
I'm looking for his stuff on the subject now.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 5:03 pm
Emil Bialobrzeski (12/3/2014)
schleep (12/3/2014)
If you give someone ability to impersonate sa he would be able to execute any piece of scrip as saExec 'drop table x' as login = 'sa'
Which...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 5:01 pm
Probably not, Joe. There are already a whole bunch of workarounds that are as fast as or faster and certainly easier to use than a SEQUENCE, if I understand...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 4:59 pm
schleep (12/3/2014)
So, set the sa account to Disabled, but change db owner to sa (or is "SA" referring to something else?)? Counter-intuitive is right!
Yes. The owner of the database...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 8:46 am
CELKO (12/2/2014)
It has nothing to do with the physical storage like your silly IDENTITY. A file needs a unique physical storage locator, like a record number.
In SQL Server, an...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2014 at 8:17 am
Viewing 15 posts - 22,261 through 22,275 (of 59,072 total)