Viewing 15 posts - 166 through 180 (of 342 total)
Ahhh - Sorry about that. So you want to create N empty rows in the target table?
I suppose you could use a while loop. I wouldn't use a...
July 22, 2003 at 8:50 am
Take a look at SET ROWCOUNT. We have used this with some success.
SET ROWCOUNT 10
INSERT INTO tblTarget( intTargetField )
SELECT 0 FROM tblWithLotsOfRows
SET ROWCOUNT 0
Guarddata-
July 22, 2003 at 8:22 am
What kind of encryption was used to get the data in? Many of the encryption algorithms produce text results that can be read as text and fed into the...
July 21, 2003 at 12:09 pm
Keep in mind also - depending on your configuration you may actually be storing twice as much when saving in the database because of the transaction log. We have...
July 21, 2003 at 8:19 am
Even NOT EXISTS is better than NOT IN
SELECT empleave.* FROM empleave WHERE NOT EXISTS (SELECT * FROM emp WHERE Emp.EmpCode = empleave.EmpCode)
Guarddata-
July 21, 2003 at 8:06 am
Sorry - I must have closed the browser before my last response registered.
I would do two thing:
1) Start with the table that reduces the result the best. In this...
July 17, 2003 at 4:09 pm
When you say "name of the table I am importing from", it sounds like you are executing a BULK INSERT or bcp call. If that is true, you need...
July 17, 2003 at 10:09 am
jraha - Good call! Joining is faster than using IN statements and using a subquery DOES mean that it gets executed for each row.
By the way - does TOP...
July 17, 2003 at 10:05 am
Since there are two questions, let me take an initial stab and you can steer me into greater understanding.
First - I would start with the v_call_type table and make sure...
July 17, 2003 at 10:00 am
Just a thought. Try putting an ELSE condition in your CASE (i.e. CASE WHEN @Religion IS NULL OR @Religion = '' THEN ud.religion ELSE @Religion END )
You also...
July 16, 2003 at 12:06 pm
Wow! For a minute I thought you actually believed that Microsoft has desires for something other than "sheer profit". I don't want to start...
July 16, 2003 at 9:43 am
I don't know the exact terminology, but by repeating the table name in the from clause, it creates the ability to use the abbreviation (d) in the join statement. ...
July 15, 2003 at 5:34 pm
You need to have some kind of data that shows where you are. If there is an ID, select and order by ID. The next select has a...
July 15, 2003 at 5:27 pm
What kind of "file" are you referring to? Is this a file of information to be imported? If so - bcp can batch the input. If it...
July 15, 2003 at 10:06 am
Another vote for Stored Procedures. There are times when the SQL is dynamic enough to be done "better" from another tier, but when the parameters and output are known...
July 15, 2003 at 10:03 am
Viewing 15 posts - 166 through 180 (of 342 total)