Viewing 15 posts - 616 through 630 (of 634 total)
If possible fix the source table with an update statement that replaces the empty strings with NULL.
UPDATE MyTable
SET MyField = NULL
WHERE MyField = ''
You could use REPLACE in...
November 12, 2010 at 12:19 pm
For returning the data you could call a stored procedure like below. This will allow you to pass parameters as well.
Uploading the data to sql server I haven't done but...
November 11, 2010 at 12:03 pm
We are going to backup the vm image and ship it to the DR site but this won't be real time, it will be a periodic backup. The database files...
November 10, 2010 at 12:53 pm
Thanks you for the clarification. over and out...
November 5, 2010 at 3:56 pm
sqlserver.exe is using 2.8 gb and /3gb is in the boot file. It would seem this is properly configured then.
>>Monitor the server afterwards though, in most cases the extra memory...
November 5, 2010 at 12:30 pm
There is a maintenance plan so backups look good. Indexes are being rebuilt as well.
>>Since this is a dedicated SQL Server, the memory allocation is fine being set as default.
So...
November 5, 2010 at 10:45 am
Chrissy, I don't think this version will work.
Your are right and you code does get my desired results. Simpler, faster, better...Thanks again.
October 28, 2010 at 1:16 pm
Which brings me to this....
SELECT
CASE WHEN EXISTS
(
SELECT 1
FROM Parent P
INNER JOIN Child C
ON MyTable.ParentID = P.ParentID
INNER JOIN ChildCustom CC
ON MyTable.ChildID = CC.ChildID
WHERE CC.SillyFlag=...
October 28, 2010 at 10:53 am
This is a better representation, sorry about that.
So WHERE P.Parent_CD = MyTable.Parent_CD will refer one of the main tables in my SELECT.
Thanks for being willing to make suggestions when...
October 28, 2010 at 10:40 am
Thanks to those who responded, it was educational. Pursuing hierarchical processing is beyond my scope right now so I'd like to close the thread.
October 28, 2010 at 10:15 am
Jeff Moden (10/28/2010)
Chrissy321 (10/27/2010)
Thnaks All. I was able to reach a suitable solution using the CASE WHEN EXISTS syntax!That's cool... can you post your final code, please?
My employer strongly discourages...
October 28, 2010 at 10:06 am
Thnaks All. I was able to reach a suitable solution using the CASE WHEN EXISTS syntax!
October 27, 2010 at 3:11 pm
John Rowan (10/27/2010)
Chrissy321, You mentioned that you can't put the flag at the parent level because application/security reasons. Rarely have I seen where outside factors like...
October 27, 2010 at 10:29 am
GSquared (10/27/2010)
John Rowan (10/27/2010)
Am I missing something Gus?
Your solution will work if the hierarchy only has two levels. To be precise, it will work if a child can't have...
October 27, 2010 at 10:20 am
Viewing 15 posts - 616 through 630 (of 634 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