Viewing 15 posts - 10,951 through 10,965 (of 18,923 total)
Select * from dbo.a where not exists (Select * from b where a.key = b.key)
or
Select * from a left outer join b on a.key = b.key where b.key is null
November 23, 2006 at 7:01 am
Yes create a temp table with identity(1,1), then insert the data to that table. That'll create the unique id starting at one. Also you can truncate that table and reseed...
November 23, 2006 at 6:39 am
Yes in that case... but it is a good reflex to try to convert the ors to something else and check for performance benefits
November 23, 2006 at 6:32 am
Agreed, if you are to transform the data, then transform it permanently and let the users see the final data, not something autogenerated at each run.
November 22, 2006 at 8:35 pm
We already answered that question in the link I posted. Also the question was to use ORs and not ANDs in the query
.
November 22, 2006 at 8:31 pm
Necessary only if your server uses unicode characters (like chinese). But for global applications like sql server or access, they have to assume that the data can be unicode, that...
November 22, 2006 at 3:03 pm
Is this an export / import task or will the application will have to be able to update those records (using the view as datasource), cause that ain't gonna be...
November 22, 2006 at 2:54 pm
It converts the following text to unicode.
November 22, 2006 at 2:54 pm
That makes sens. Why do you need to have a row id in the data? There are ways to do it but they all are pretty costly. Can the application...
November 22, 2006 at 2:40 pm
What do you need to do exactly? I have no (or too many) idea on how to help you!
November 22, 2006 at 2:26 pm
That's easy.
It depends, always test
.
November 22, 2006 at 2:09 pm
Lol, that too... that's why I ask for a query plan for perf troubleshooting
.
November 22, 2006 at 1:33 pm
No need for that : all new posted get special attention, then active posts get special attention, then unanswered psot get recycled after 1 day. Not to mention that all...
November 22, 2006 at 1:30 pm
You can't. that's why I redirect the thread to a single point.
November 22, 2006 at 1:19 pm
Viewing 15 posts - 10,951 through 10,965 (of 18,923 total)