Viewing 15 posts - 3,166 through 3,180 (of 5,504 total)
Is the person who wrote the database stuff still around?
If so, can/will this person answer this "simple" question: Is there anything SQL SERVER 2008 specific within either your database or...
July 12, 2010 at 2:27 pm
See BOL (BooksOnLine, the SQL Server help system), section
"bcp utility [SQL Server], format files" or section "BULK INSERT (Transact-SQL) "
July 12, 2010 at 2:12 pm
Here's the approach I would use:
SELECT
t1.id,
t1.fromdt,
t1.todt
FROM [test2] t1
WHERE EXISTS
( SELECT 1
FROM [test2] t2
WHERE t1.id ...
July 12, 2010 at 2:07 pm
Would the following dynamic SQL help you?
DECLARE @sql VARCHAR(6000)
DECLARE @sql1 VARCHAR(500)
DECLARE @sql2 VARCHAR(5000)
DECLARE @sql3 VARCHAR(500)
SET @sql1='
;with cte_group_of8 as
(
SELECT
ROW_NUMBER() OVER(PARTITION BY claim_id ORDER BY cast(left(claim_sequence_numbers + '','',charindex('','',claim_sequence_numbers)-1) as...
July 12, 2010 at 1:41 pm
BitLeftOfCentre (7/12/2010)
Thanks. Imu! Your logic has solved my problem. Just took it a step further.Cheers
Dude!!:-D
Would you mind shring your solution? We might be able to improve it even further.
As a...
July 12, 2010 at 11:26 am
m.dunster (7/12/2010)
Through your example for creating the data...I have learnt...
July 12, 2010 at 11:14 am
CirquedeSQLeil (7/11/2010)
...Long live the vuvuzela!!!!!!!!!!!!!!
Would you repeat that face to face with Gail? (assuming she can hear you and doesn't still have that bee swarm sound in her ears...)
July 11, 2010 at 3:44 pm
Congrats to everyone from Spain to win the Soccer WC for the first time!!!!!
The first half wasn't as excellent as expected but it went better and better starting with the...
July 11, 2010 at 3:30 pm
Jeff Moden (7/11/2010)
lmu92 (7/11/2010)
I'm not sure how the functions to_char and to_date are written, but I guess both can be replaced by the built-in function...
July 11, 2010 at 3:21 pm
One thing to start with is to read through the forum you posted your question in.
You'll find numerous threads with a large variety of replication errors...
Regarding prerequisites: you should read...
July 11, 2010 at 11:42 am
You could use a subquery or CTE to get the roles per fname (including the user_id from the user_role table) and join that back to the user table. Based on...
July 11, 2010 at 11:11 am
The concept is rather simple:
the CTE or "common table expression" is nothing but a subquery (at least in this case), just easier to read.
The purpose is to number your rows...
July 11, 2010 at 11:03 am
Unfortunately, it's still not clear how to identify "the first" row you want to keep.
When building the #tempGlMastDesc table you end up with duplicates but without any sorting criteria that...
July 11, 2010 at 10:53 am
Why would you need to store the result of the calculation in a table (even during import)?
Wouldn't it be easier to use a view to display the profit or a...
July 11, 2010 at 10:17 am
Ok, here's the code including test data setup.
Please note that there a few people around (including myself, usually) who expect sample data in a ready to use format (as shown...
July 11, 2010 at 10:00 am
Viewing 15 posts - 3,166 through 3,180 (of 5,504 total)