Viewing 15 posts - 2,131 through 2,145 (of 8,731 total)
I'll repeat it, no one has access to the SQL Server code except for people at Microsoft.
If you liked the Eirikur's example, here's a variation to show the difference between...
September 23, 2016 at 11:28 am
Make sure you have the correct number of BEGIN and END.
Without details, that's the only thing I could find.
EDIT: Also check your variables declaration.
September 23, 2016 at 11:10 am
levenyu (9/23/2016)
Thank you for the reply.
There is no issue with using word Length in there, it was that (-1) value of the @Length variable, which has caused wrong results to...
September 23, 2016 at 9:34 am
Actually, the formula is working as intended. The problem is that I was testing the formula with different values for the length and forgot to set it back when copying...
September 23, 2016 at 9:09 am
Use this at the beginning of your code:
SET DATEFORMAT DMY;
You probably have your server configured incorrectly, using the U.S. defaults.
September 23, 2016 at 6:56 am
NineIron (9/23/2016)
To be honest, I got hung up on the other solution. Luis's works out fine.Thanx.
The other solution should work fine if you make the join an outer join. Depending...
September 23, 2016 at 6:52 am
Smendle (9/23/2016)
I would love to get an official response from someone in the know on source code...
1. Is a passed parameter treated as a variable once inside the stored...
September 23, 2016 at 6:47 am
Here's an example on how to do it.
--Create the sample data
CREATE TABLE Table1( n int);
CREATE TABLE Table2( n int);
WITH
cteTally(n) AS(
SELECT TOP 1000 ROW_NUMBER() OVER(ORDER BY...
September 22, 2016 at 2:32 pm
Phil Parkin (9/22/2016)
Anyone in the mood for a quick code tidy-up?
Hell NO!!!:crazy:
What kind of tool wrote that code?
September 22, 2016 at 1:11 pm
That's only a snippet. It's missing the SELECT.
There's no way I'm going through all that code. Format it if you expect any help.
All the results from a CASE expression should...
September 22, 2016 at 1:08 pm
Smendle (9/22/2016)
thanks for all the replies I am smiling now because of you guys(or gals)!
This is also why simple questions don't always have simple answers esp. for SQL.
So my question...
September 22, 2016 at 12:17 pm
Y.B. (9/22/2016)
Sadly, you'd be surprise how often that is true.
No, I won't. That's why I mentioned it. 🙁
September 22, 2016 at 11:45 am
Smendle (9/22/2016)
Eirikur Eiriksson (9/22/2016)
For a variable inside the procedure use this😎
DECLARE @MY_INT_VAR INT;SET @MY_INT_VAR = 0;
i could be confusing this with a .NET programming environment but doesn't that initialize the...
September 22, 2016 at 11:44 am
drew.allen (9/22/2016)
Sue_H (9/22/2016)
Luis Cazares (9/22/2016)
Interview question?My thoughts as well. The follow up to that specific question could be interesting if someone doesn't know what would be different between the two.
The...
September 22, 2016 at 11:36 am
I would, at least, put the DW schema on its own database. That way you can backup just that data. I'm not sure how long do you keep the data...
September 22, 2016 at 10:01 am
Viewing 15 posts - 2,131 through 2,145 (of 8,731 total)