Viewing 15 posts - 9,931 through 9,945 (of 10,144 total)
You're welcome, Jim. Interesting that it worked for a named range but not for a worksheet (tab). I've only used this with worksheets.
Here's a sproc which you can tailor...
March 11, 2008 at 5:43 am
Hi Jim
It's likely that your problem is down to column data types - either the column you're updating or the column you're using as row identifier in Excel isn't being...
March 11, 2008 at 4:30 am
You could avoid the use of those pesky variables altogether if you want...
DECLARE @script nvarchar(max)
SET...
March 10, 2008 at 6:19 am
Frank
SELECT batchid, description, merchantno, settlementdate, amount
INTO #batch_detail
In this table you have multiple rows...
March 9, 2008 at 4:33 am
I'd really appreciate that, thanks Debbie.
March 7, 2008 at 9:38 am
TheSQLGuru (3/7/2008)
Brandie, you are totally off the mark. Do whatever you can to make the most money so...
March 7, 2008 at 9:36 am
It's looking good! And thanks for the feedback 🙂
March 7, 2008 at 7:46 am
Brandie Tarvin (3/7/2008)
Lynn Pettis said:
I just wish the computer would do want I want, not what I tell it to do. It would be sooo much easier.
Amen to...
March 7, 2008 at 7:36 am
Yep. It's called an UPDATE ... FROM and will look something like this when you've finished...
UPDATE b SET b.start_date = a.start_date, b.end_date = a.end_date
FROM dbo.ECAF a
INNER JOIN dbo.ECAF_IDEAR b
ON...
March 7, 2008 at 5:36 am
Absolutely Debbie! So we build the UPDATE in two steps; the first step, which is a simple SELECT, is easy to test - you have output rows to look at...
March 7, 2008 at 5:22 am
I'm guessing it will look something like this...
SELECT a.PersonID, a.start_date, a.end_date
FROM dbo.ECAF a
INNER JOIN dbo.ECAF_IDEAR b
ON b.PersonID = a.PersonID AND a.start_date IS NULL AND b.end_date IS NULL
WHERE a.start_date IS...
March 7, 2008 at 5:15 am
Good, that makes things quite a bit simpler. Now, can you write a SELECT query from your source table which contains the rows and columns which you are using to...
March 7, 2008 at 5:08 am
Hi Debbie
Your first step for this UPDATE should be a SELECT which returns the rows containing the data which you want to use as your reference, i.e. which will overwrite...
March 7, 2008 at 4:57 am
Jeff Moden (3/6/2008)
Why is there always enough time to do it again but never enough time to do it right the first time? 😛
TSQL or your cooking? 😀
No matter...
March 6, 2008 at 8:40 am
Bob Fazio (3/5/2008)
March 6, 2008 at 8:17 am
Viewing 15 posts - 9,931 through 9,945 (of 10,144 total)