Viewing 15 posts - 1 through 15 (of 78 total)
I agree with Jeff that a date should be stored as a date in the source system (OLTP). I would try to change it. However, I know how...
January 4, 2014 at 7:39 pm
Hi Jeff,
Good suggestion on using the date add + convert instead of a case statement.
Thanks for the advice.
John
April 14, 2013 at 3:35 pm
Hi Lowell,
Are you talking about the new [dbo].[DelimitedSplit8K] function Jeff Moden wrote.
http://www.sqlservercentral.com/articles/Tally+Table/72993/
Real cool stuff.
John
April 12, 2013 at 1:35 pm
Please express any schemas that need to be created.
Please post the two tables you are referring to as CREATE statements.
Please supply the insert statements to populate the before mentioned tables.
April 12, 2013 at 1:26 pm
A couple more ideas.
1 - When I was doing Oracle work in a past life, the TOAD utility had the ability to turn a record set in a data grid...
April 12, 2013 at 1:23 pm
Hi There,
I usually do not promote products; However, red gates source control software plug in allows you to save data into SVN. This data then can be restored with...
April 12, 2013 at 1:20 pm
Hi Kalpit,
The idea was to give you a general idea about the solution.
Modify the code to your hearts content.
The code below looks for the first 'procedure' marker and then the...
April 12, 2013 at 1:06 pm
Hi There.
Check out Adam Haines reply,
1 - Use open rowset bulk to import data.
2 - Use bcp to export data.
You could use bcp to import, but use a...
April 10, 2013 at 2:05 pm
Hi Kalpit,
A quick solution is below.
First, your @col variable was defined to small to hold the definition. That is the main problem I see here.
I am assuming the procedure...
April 10, 2013 at 11:33 am
So, you do not like my first solution? I totally agree it was the quickest thing that came off the press.
It is like life, if you spend a couple...
April 9, 2013 at 12:33 pm
Hi geetha jasmine,
I would not use a pivot since that is used to turn row values into column aggregations such as sums.
Use two common table expressions, a full join, and...
April 8, 2013 at 2:26 pm
Very true. However, life is shades of gray, never black & white.
Many of the applications that run on my boxes are vendor applications.
Some are vendors that do not...
April 8, 2013 at 2:13 pm
Hi geetha jasmine,
I would not use a pivot since that is used to turn row values into column aggregations such as sums.
Use two common table expressions, a full join, and...
April 8, 2013 at 2:05 pm
Maybe I'm misunderstanding param sniffing, but isn't the optimizer going to generate a plan and keep it until something changes (index rebuilt\reorg, stats update, table records added\deleted, etc...), and then...
April 8, 2013 at 1:06 pm
Hi vsts dev,
SQL is a relational database. With that said, you should try to work with sets of data, not strings.
The solution below uses table value parameter to a...
April 8, 2013 at 12:54 pm
Viewing 15 posts - 1 through 15 (of 78 total)