Viewing 15 posts - 4,201 through 4,215 (of 5,502 total)
The max size is for data stored with xml data type is 2GB. I don't know if your file would exceed those limit...
Regarding extracting node names and values I would...
February 23, 2010 at 5:28 pm
Peter Brinkhaus (2/23/2010)
...
SELECT
COUNT(CASE WHEN live = 'Y' AND disab = 'N' THEN 1 END) * 100. / COUNT(*)
FROM
@tbl
WHERE
live <> 'I'
Peter
Excellent job, Peter!!
If I had...
February 23, 2010 at 3:17 pm
First and second cte are used to populate the count() values as requested.
The CROSS JOIN will result in a cartesian product of all rows from the first cte (cte) and...
February 23, 2010 at 11:12 am
Please have a look at BOL (BooksOnLine, the help system installed with SQL Server). Especially look for "Manufacturing Scenarios, example A: Viewing a multilevel bill-of-materials list for a parent product"
It...
February 23, 2010 at 10:29 am
My last post didn't recognize your latest reply. So please ignore it.
Glad it finally worked out. 🙂
February 23, 2010 at 10:22 am
Would you please provide the script you're using to update your table together with some sample data that will show the effect you get?
February 23, 2010 at 9:39 am
What exactly do you mean by "getting truncated"? Since you only do a SELECT it might be the influence of the length setting for the output of SSMS (Management Studio)....
Here...
February 23, 2010 at 9:12 am
What is the specific reason for building one table per month instead of adding the related column to one table and (if required) use horizontal partitioning?
How many rows you end...
February 23, 2010 at 8:52 am
I'm still not 100% sure what value your percentage calculation will be based on. But maybe the following code will get you started.
Please note how I provided sample data in...
February 23, 2010 at 8:24 am
Drammy (2/23/2010)
I'll...
February 23, 2010 at 8:13 am
It's interesting to see that SET DATEFIRST actually takes precedence over SET LANGUAGE. I couldn't find any hint about it in BOL so far...
Here's an example:
If you change the language...
February 23, 2010 at 8:10 am
Following please find an example of how I would do it.
Instead of creating the numbers table on the fly I usually would use my Tally table. If you don't have...
February 23, 2010 at 1:00 am
Like I stated before:
change the communication between your app and the db to stored procedures only and lock down everything else. Once you're done with it, add your users to...
February 23, 2010 at 12:35 am
Jeffrey Williams-493691 (2/22/2010)
If so, then you need to make sure the user accounts in SQL Server only have the privileges necessary to execute the stored procedures your application calls. ...
February 22, 2010 at 4:41 pm
Glad I could help 🙂
Come back to this site if you need further assistance.
But remember: one post is better than 6! 😉
February 22, 2010 at 2:34 pm
Viewing 15 posts - 4,201 through 4,215 (of 5,502 total)