Viewing 15 posts - 6,346 through 6,360 (of 14,953 total)
I wouldn't trust the ASCII-value solution. Too subject to things like collation values or the introduction of a two-character prefix or whatever.
Definitely split the values.
October 28, 2010 at 8:08 am
In that particular instance, I'd say more than one person can "own" a car/house/whatever. Divorce proceedings often seem to support that concept.
October 28, 2010 at 8:03 am
The standard definition of "recession" is a period of 2 quarters in a row of negative GDP growth for a region. US GDP is growing (not sure about the...
October 28, 2010 at 7:46 am
In that case, either a Union with "fake" column names, or exporting the column names once, then the data for them and appending it, will work just fine.
October 28, 2010 at 7:35 am
If the number and type of columns doesn't change, but you want the column headers to change, you might also be able to include "column headers" as a row of...
October 28, 2010 at 7:10 am
The error you're getting per a prior post is that it can't open a distributed transaction. Have you checked the DTC is running on that machine?
October 28, 2010 at 7:03 am
That would be a cursor. It will work.
October 28, 2010 at 6:56 am
The problem I see with that (Joe's) query is it assumes collation and values will always produce the Y result. Can you be certain of that? If, for...
October 27, 2010 at 2:59 pm
First, that will only work if you're only inserting one type of CartwallID at a time. It also won't work if you insert multiple rows in one transaction, because...
October 27, 2010 at 2:52 pm
I thought of an interesting method you could use for this if you use the RowVersion/Timestamp data type in your tables. Use a Dense_Rank() query that selects a union...
October 27, 2010 at 2:46 pm
Well, you can either do it in a trigger, or in the proc that inserts into that table.
You should be able to simply select the count from the table based...
October 27, 2010 at 2:38 pm
Steve Jones - SSC Editor (10/27/2010)
- Finding/changing the default backup location
- scheduling a trace
- duplicating...
October 27, 2010 at 2:31 pm
There's an option in SSIS to delay validation of the data sources till they are called. I've used that to avoid the error about design-time vs run-time.
October 27, 2010 at 2:26 pm
If there are only two levels, then yes, and Exists check will get you what you need.
SELECT
ID,
CASE WHEN EXISTS ( SELECT
...
October 27, 2010 at 10:24 am
Viewing 15 posts - 6,346 through 6,360 (of 14,953 total)