Viewing 15 posts - 2,191 through 2,205 (of 8,760 total)
Quick question, why not restore the db from a backup and then drop the unwanted tables?
😎
May 23, 2017 at 2:30 am
Looks like the grouping is on the date, dense rank should do the trick
😎
May 17, 2017 at 3:18 am
Can you please post the DDL (create table) script, sample data as an insert statement and the desired resuls
😎
May 16, 2017 at 9:56 am
This can get quite messy very quickly, suggest you first do the checks and then if all is clear, do the insert at the end. This way you can display...
May 16, 2017 at 9:08 am
Quick suggestion, catch the unwanted values in a NULLIF function, no need to use a CASE statement here.
😎
DECLARE @exchangeRate FLOAT = 0;
;WITH SAMPLE_DATA AS
May 15, 2017 at 2:58 am
Can you please post some sample data as an insert statement?
😎
May 14, 2017 at 4:32 am
My Table:
InstructionID
CompanyCode
ProductType (F/I/P/C/…)
Amount
Output :
I wish...
May 13, 2017 at 5:35 am
Quick thought, I don't think you are going to get far tackling performance issues by analyzing the transaction logs, probably better off with something like Solar Winds DPA, Idera or...
May 12, 2017 at 5:49 am
Are you exporting the data from a table?
😎
May 12, 2017 at 5:28 am
Quick thought, use a row number or an id number, divide by the max row size and wrap this in either a view or a inline table valued function. Then...
May 12, 2017 at 5:08 am
As Thom said, no need for a case statement, try_cast and try_convert simply return null if the value cannot be converted
😎
Here is a try_convert example
May 12, 2017 at 3:29 am
What is the output of this query?
😎SELECT
mf.database_id
,mf.name
,mf.Physical_Name
FROM Master.sys.master_files mf
INNER JOIN Master.sys.databases db ON db.database_id =...
May 11, 2017 at 11:46 pm
May 11, 2017 at 10:09 pm
May 11, 2017 at 10:07 pm
May 10, 2017 at 4:22 am
Viewing 15 posts - 2,191 through 2,205 (of 8,760 total)