Viewing 10 posts - 1 through 10 (of 10 total)
Thanks guys.
I tried putting the query in a text file. It works fine, and I think I can live with the overhead.
Thanks, Anders, for the suggestion to execute a...
June 26, 2007 at 7:53 am
I'm trying to accomplish a view that offers a unified view of the available data, and that is very dynamic: it should vary in "width" (number of fields) as needs...
January 29, 2007 at 10:06 am
No, that doesn't work at all :
DECLARE @sql VARCHAR(5000) --Var for dynamic SQL
DECLARE @Columns VARCHAR(1000) --Columns to use from Name/Value...
January 4, 2007 at 8:30 am
I'm afraid I'm still having problems. Robert Cary's code works just great, but when replacing his table names with my own it doesn't work any more. I somehow get each value...
January 4, 2007 at 8:01 am
Sorry, I didn't realize you actually use the PIVOT command in your code.
January 4, 2007 at 2:01 am
Thanks. Would it be possible to use the PIVOT command to achieve a "combined" table? I've heard elsewhere that it is an excellent feature in SQL 2005.
January 4, 2007 at 1:42 am
Robert Cary asked:
Will you be using this solution to retrive info for only one ID value at a time?
No. Probably not.
If you are using it to return multiple IDs, will...
January 3, 2007 at 9:51 am
I'm not sure I understand your problem correctly, but wouldn't checking for null do the trick? I mean like this:
SELECT [sCustomerFullName], [sAccountNumber], [sSIM], [sPlanCode]FROM A a WHERE EXISTS (
SELECT * FROM B b WHERE IsNull(a.ssim, '') = IsNull(b.sSim, '') AND...
January 3, 2007 at 3:51 am
Thanks John,
That's the only solution I could think of too and it worked like a charm (except for being quite slow...). When getting back to work after the holidays I...
December 29, 2006 at 5:43 am
Viewing 10 posts - 1 through 10 (of 10 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy