Viewing 15 posts - 451 through 465 (of 627 total)
christophe.bernard 47659 (10/28/2015)
thanks for your time that's exactly what I want ..
I don't know the function pivot but I can see that's very powerfull ..
@yb751 => your...
October 28, 2015 at 7:48 am
Oh well, guess I'll just take my point for posting here instead. 😉
October 28, 2015 at 7:38 am
Luis Cazares (10/27/2015)
yb751 (10/27/2015)
Awesome solution Luis, I'm going to keep this one for a rainy day. Just curious why you created a @date_serial variable. Is it needed?
Yes, it's...
October 27, 2015 at 2:17 pm
Luis Cazares (10/27/2015)
October 27, 2015 at 1:47 pm
Your question isn't very clear. I'll take a stab at it but I can't be sure its what you are looking for. At the very least maybe I...
October 27, 2015 at 8:13 am
Just though I should add that you can also use INTO in a UNION statement to load the data into a new table. Just be aware that only the...
October 7, 2015 at 8:24 am
Well wasn't the original seed value 1?
IDENT_SEED
https://msdn.microsoft.com/en-CA/library/ms189834.aspx
Returns the original seed value (returned as numeric(@@MAXPRECISION,0)) that was specified when an identity column in a table or a view was created.
DBCC CHECKIDENT
https://msdn.microsoft.com/en-us/library/ms176057.aspx
Checks...
October 5, 2015 at 12:31 pm
GilaMonster (10/5/2015)
yb751 (10/5/2015)
The upcoming 'Stretch Database' feature in SQL 2016 may be exactly what you are looking for.
With poor queries, that'll just make matters worse. If the queries can't...
October 5, 2015 at 9:57 am
The upcoming 'Stretch Database' feature in SQL 2016 may be exactly what you are looking for. I know this doesn't help you at the moment but it might be...
October 5, 2015 at 8:55 am
Lowell (10/5/2015)
October 5, 2015 at 8:40 am
No problem, I also noticed a potential problem with your string concatenation.
CA.house_num + ' ' + CA.street_name + ' ' + CA.apt_num AS [MailingStreet]
If there is any chance that...
October 1, 2015 at 11:56 am
DISTINCT applies to the whole result set not just for that one column. Just remove 'application_id' from the select statement and see what you get. That being said...
October 1, 2015 at 11:36 am
Absolutely, there is a great write up here: http://www.sqlservercentral.com/articles/Best+Practices/61537/
September 24, 2015 at 9:26 am
You should try to provide a test table which will help you get help much faster.
Like this:
DECLARE @Milestonetable TABLE (JobNo INT, MileStoneName CHAR(1), ForecastDate DATE, ActualDate DATE, StatusFlag CHAR(1))
INSERT INTO...
September 24, 2015 at 8:58 am
This remind me of the old saying.
"If Your Only Tool Is a Hammer Then Every Problem Looks Like a Nail".
Always use the right tool for the job and...
September 18, 2015 at 7:41 am
Viewing 15 posts - 451 through 465 (of 627 total)