Viewing 15 posts - 3,556 through 3,570 (of 8,731 total)
A different option to check if the code compiles:
declare @myint tinyint= 5;
SELECT 1;
SELECT s1.c1, s2.c1
FROM (values (s2.c1+2)) s1(c1)
CROSS APPLY
(values (@myint),(@myint+1),(@myint+2)) s2(c1);
A run-time error would show the result from SELECT...
January 13, 2016 at 8:50 am
Eirikur Eiriksson (1/13/2016)
cycle90210 (1/13/2016)
January 13, 2016 at 8:45 am
Eric M Russell (1/13/2016)
January 13, 2016 at 8:24 am
decreale (1/12/2016)
You mentioned change the connection properties? This stored procedure is being used in SSRS. I wanted to create one report and have the user pass the database parameter to...
January 12, 2016 at 12:22 pm
Are you going to compare indexes and constraints as well? Do you care about differences in names for system named objects?
What about implementing some monitoring using DDL triggers?
January 12, 2016 at 11:55 am
Aleksl-294755 (1/12/2016)
Same. "information_schema" - too much typing 🙂
Not really, especially when you have some sort of intellisense activated.
Comparing identical functionality:
--121 characters
SELECT ROUTINE_SCHEMA, ROUTINE_NAME, ROUTINE_DEFINITION
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE'
--128...
January 12, 2016 at 10:59 am
It's funny how you're trying to call a stored procedure using dynamic sql. You're basically being redundant making nested calls. I'm assuming this is to call the same procedure in...
January 12, 2016 at 10:06 am
Ed Wagner (1/11/2016)
whereisSQL? (1/11/2016)
djj (1/11/2016)
Ed Wagner (1/11/2016)
Eirikur Eiriksson (1/11/2016)
whereisSQL? (1/11/2016)
Ed Wagner (1/11/2016)
SQLRNNR (1/11/2016)
Grumpy DBA (1/11/2016)
Hugo Kornelis (1/10/2016)
TomThomson (1/10/2016)
Eirikur Eiriksson (1/10/2016)
BehindDoesThisDressMakeItLookBig
It's not the dress, dear!
Lie
DefinitelyBetterThanTheDogHouse
Trouble
Maker
Match
Expression
Code
Black
White
Gray
January 11, 2016 at 2:17 pm
You've received an explanation on why your code isn't behaving as you expected.
Maybe now you could explain what you're trying to do and get the way to do it correctly.
Unless...
January 11, 2016 at 1:09 pm
Grant Fritchey (1/11/2016)
Continuing my role as the harbinger of death, Ziggy Stardust is no more.One of my favorite songs. Although Bauhaus actually did it better.
January 11, 2016 at 11:03 am
I would actually change the variable definition.
DECLARE
@max-2 AS NVARCHAR(MAX) = ''
, @var AS NVARCHAR(MAX) = 'ABCabc123';
SELECT
@max-2 = REPLICATE(@Var, 445);
SELECT
CASE...
January 11, 2016 at 7:26 am
Phil Parkin (1/8/2016)
Luis Cazares (1/8/2016)
Brandie Tarvin (1/8/2016)
Then again, he could just keep stumbling on the one or two bad eggs on the forums who make everyone look bad.
You mean like...
January 8, 2016 at 11:59 am
Brandie Tarvin (1/8/2016)
Then again, he could just keep stumbling on the one or two bad eggs on the forums who make everyone look bad.
You mean like Phil Parkin, Jeff Moden...
January 8, 2016 at 10:38 am
Create a step for each command or create a batch file to run both.
If you send both in a single command, it will ignore the second and all the others.
Wild...
January 8, 2016 at 10:32 am
Do you get an error?
Do you run them one by one? Are they in a batch file?
January 8, 2016 at 10:22 am
Viewing 15 posts - 3,556 through 3,570 (of 8,731 total)