Viewing 15 posts - 1 through 15 (of 42 total)
Unfortunately, there is no elegant way to this. This is actually a recent community ask posted to Microsoft as a new feature.
JediSQL points out the difficulty of capturing the...
May 26, 2017 at 4:37 pm
Here's a method from Pinal Dave that I've found useful:
https://blog.sqlauthority.com/2017/05/25/sql-server-simple-query-list-size-table-row-counts/
May 24, 2017 at 10:40 pm
Here's reference for User-Defined Table Types:
https://technet.microsoft.com/en-us/library/bb522526%28v=sql.105%29.aspx
https://docs.microsoft.com/en-us/sql/relational-databases/tables/use-table-valued-parameters-database-engine
May 24, 2017 at 10:13 pm
Perhaps this?
USE [test]
go
select
ComponentId,
partRefId = MIN(partRefId),
Name,
DocumentId,
SheetRef = MIN(SheetRef),
LocationId,
Effectivity,
EffectivityId,
DesignatorPrefix,
Designator,
DesignatorSuffix
FROM PartRef pr
May 22, 2017 at 5:59 pm
If you're not too concerned about potential performance hits, you could create a new schema for this staging data within your user database, and create your staging tables there. Then...
May 20, 2017 at 11:13 am
Here's one method:
declare @function_param VARCHAR(100) = '2017-06-08 16:00:00'
declare @result VARCHAR(100)
select @result = CONVERT(varchar(100),DATEADD(minute, -1, @function_param),120)
print @result
May 20, 2017 at 10:19 am
Do you rely on SSMS native Intellisense for coding?
I think this is normal. SSMS makes a separate connection to pull metadata for Intellisense. I don't think it's able...
May 20, 2017 at 10:00 am
Have you reviewed the SSIS catalog deployment?
Are the Environment variables setup and mapped correctly to the deployed SSIS project? Do they match the server that's properly working?
Can...
May 20, 2017 at 9:26 am
Can the 3rd Party Software pull data from a stored procedure, or are you stuck with a view as a source?
May 19, 2017 at 2:09 pm
Can you give more detail about how you're using Excel to access the data?
Are you looking for separate Excel files for each range? Or one file, with separate worksheets?
May 19, 2017 at 1:15 pm
You'll need to explain how you want to handle different values for the same column to be returned?
Perhaps concatenate the values into a comma delimited value?
Or encoded...
May 17, 2017 at 7:51 pm
Thanks Lynn as well. Love having alternatives in the toolbelt.
September 1, 2014 at 7:04 pm
Awesome, thanks dwain! Very elegant solution. I should be able to transfer this logic to the actual data quite easily.
September 1, 2014 at 7:02 pm
Thanks for the tip. I've actually recently purchased "Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions" written by Itzik Ben-Gan.
I think the main problem is the data set...
September 1, 2014 at 10:54 am
I have same sentiments as Jack. SQL Agent jobs is not designed for your 1-min response time.
If you have any future plans for scaling, this solution won't last you...
September 1, 2014 at 1:25 am
Viewing 15 posts - 1 through 15 (of 42 total)