Viewing 15 posts - 6,811 through 6,825 (of 8,731 total)
This is something that came to my mind. It won't work if you have two continuous Ins or Outs.
WITH rowCTE AS(
SELECT *,
ROW_NUMBER() OVER(PARTITION BY Name, Reader ORDER BY [TimeStamp])rn...
February 26, 2014 at 2:38 pm
Maybe you're trying to compare two chapters of a book :hehe:
I just tried to include all possibilities.
February 26, 2014 at 8:48 am
Sean Lange (2/26/2014)
It is hard to figure out exactly what your code is doing but I think the loop would be fairly easy to get rid of too.
And now it's...
February 26, 2014 at 8:19 am
It depends 😀
If your varchar columns' length could be over 4000, then cast as varchar.
If not, I would consider casting them as nvarchar (this would be the implicit conversion).
I would...
February 26, 2014 at 8:17 am
Chris M already gave a solution, but with no DDL and sample data, I'm not giving an example.
February 25, 2014 at 2:57 pm
What's wrong with using CAST?
SELECT 'CAT', CAST( 'CAT' AS varbinary)
February 25, 2014 at 12:35 pm
You could run your package and use a loop in it to check for the existance of the files.
You need the following namespace
Imports System.IO
Public Sub Main()
...
February 25, 2014 at 11:40 am
What's your source?
If it's a table, you could do a select (SQL Task), if it's a file you could check for the file size (Script task).
February 25, 2014 at 11:18 am
This is very simple, but you need to help us. Please post table definitions, sample data and expected results. For information on how to do it, read the article on...
February 25, 2014 at 9:54 am
frankincognito404 (2/25/2014)
two developers are in charge of the database schema
That explains everything 😀
Foreign keys are tools to mantain and ensure data integrity. Not evil but all the other way...
February 25, 2014 at 9:33 am
Why do you have LOOP hints in your JOINS?
A better option is to normalize the data 🙂
I'm not sure what can you do better. An EAV design won't be great...
February 25, 2014 at 9:08 am
I'm not sure what you need. I couldn't understand. It would help a lot if you posted table definitions (DDL statements), sample data (Insert statements) and expected output based on...
February 25, 2014 at 8:18 am
Sean Lange (2/24/2014)
patrickmcginnis59 10839 (2/24/2014)
Sean Lange (2/24/2014)
patrickmcginnis59 10839 (2/24/2014)
GilaMonster (2/23/2014)
Jim Arko (2/23/2014)
SET @sqlstring = 'UPDATE table SET column = ' +...
February 24, 2014 at 10:56 am
I updated my post to include some comments on it. I hope it's easier to understand that way. Try running it one part at a time to understand what it's...
February 24, 2014 at 10:10 am
I can't see the code for that SP, I have no idea on what you could improve.
February 24, 2014 at 10:00 am
Viewing 15 posts - 6,811 through 6,825 (of 8,731 total)