Viewing 15 posts - 1,891 through 1,905 (of 8,731 total)
Here's a safe option for you:
DECLARE
@DBName NVARCHAR(25) = 'CRHC',
@BegDate DATE = '9/1/2016',
@EndDate DATE = '9/1/2016',
@sql NVARCHAR(MAX)
SELECT @sql = N'USE ' + QUOTENAME( db.name) + ';
SELECT...
November 10, 2016 at 12:30 pm
Quick thought, return less columns. Why or when will you ever need all those columns and all those rows?
Also, do not use ISNULL, use WHERE (Column50 = 1 OR Column50...
November 10, 2016 at 11:25 am
I've tried Poor Man's T-SQL Formatter[/url] and ApexSQL Refactor which gave me good results to organize messy code, but won't do everything I wanted.
They're good, but you should try...
November 10, 2016 at 10:43 am
This might help: http://download.microsoft.com/download/8/A/2/8A2BC8C5-BBA0-4A9C-90BC-AC957D3454D9/SQL_Server_2016_Editions_datasheet.pdf
The improvement on window functions and error handling.
Native compressed backups, which would speed up your maintenance process.
Extended events to mostly replace traces.
New cardinality estimator.
Improved security and...
November 10, 2016 at 10:26 am
Eirikur Eiriksson (11/10/2016)
homebrew01 (11/10/2016)
Eirikur Eiriksson (11/10/2016)
Think this is the wrong question, should be "what are the justifications for running an unsupported version of SQL Server"
😎
Doesn't cost any money ?? ...
November 10, 2016 at 10:15 am
a_car11 (11/10/2016)
November 10, 2016 at 8:41 am
Ed Wagner (11/10/2016)
Brandie Tarvin (11/10/2016)
djj (11/10/2016)
BWFC (11/10/2016)
djj (11/10/2016)
Grumpy DBA (11/10/2016)
Ed Wagner (11/10/2016)
djj (11/10/2016)
Grumpy DBA (11/9/2016)
Manic Star (11/9/2016)
ElephantCage
Claustrophobia
Panic
(at the) Disco
Dead
Parrot
Pirate
Patch
Vulnerability
exhaust port
November 10, 2016 at 8:02 am
Here's an example:
CREATE TABLE StgTable(
Id int,
Seq int,
name varchar(10),
company varchar(10)
);
INSERT INTO StgTable
VALUES
...
November 9, 2016 at 2:53 pm
Why do you want to create an SSIS package from Powershell?
November 9, 2016 at 2:02 pm
Revenant (11/9/2016)
djj (11/9/2016)
Ed Wagner (11/9/2016)
Luis Cazares (11/9/2016)
Ed Wagner (11/9/2016)
djj (11/9/2016)
Eirikur Eiriksson (11/9/2016)
Ed Wagner (11/9/2016)
DamianC (11/9/2016)
snowmanFrosty
Trumped
Thump
Win
Wine
Cheese
Crackers
Fire
Air
November 9, 2016 at 10:05 am
Here's an example:
CREATE PROCEDURE ProcedureWithOutputParam(
@OutputParam int OUTPUT
)
AS
SET @OutputParam = 5;
GO
CREATE PROCEDURE ProcedureWithInputParam(
@Param int
)
AS
SELECT @Param AS Parameter;
GO
DECLARE @Parameter int = NULL;
EXEC ProcedureWithOutputParam...
November 9, 2016 at 9:15 am
You need to have Business Intelligence Development Studio (BIDS) or SQL Server Data Tools installed, depending if it 2008 or 2012+.
These are part of the SQL Server installation, as long...
November 9, 2016 at 8:44 am
If it's not using dynamic sql, you can start by using sys.sql_expression_dependencies and sys.sql_dependencies
November 9, 2016 at 7:54 am
Ed Wagner (11/9/2016)
djj (11/9/2016)
Eirikur Eiriksson (11/9/2016)
Ed Wagner (11/9/2016)
DamianC (11/9/2016)
snowmanFrosty
Trumped
Thump
Win
Wine
November 9, 2016 at 7:02 am
BowlOfCereal (11/8/2016)
drew.allen (11/7/2016)
SELECT m.origval, n.comp_val
FROM #mytab m
CROSS APPLY (
SELECT...
November 8, 2016 at 2:05 pm
Viewing 15 posts - 1,891 through 1,905 (of 8,731 total)