Viewing 15 posts - 4,801 through 4,815 (of 5,504 total)
homebrew01 (11/11/2009)
November 11, 2009 at 2:53 pm
What is the root cause to have the validation implemented in almost every proc?
As far as I can see, there should be room for improvement in terms of the frequency...
November 11, 2009 at 2:24 pm
Glad I could help 🙂
When learning XQuery you should consider looking into the great series of articles by Jacob Sebastian on this site. Search for "XML Workshop".
His series covers a...
November 11, 2009 at 12:47 pm
I'm not sure how openxml can handle typed xml date (meaning xml data using namespaces).
However, since you're using SS2K5 or above I strongly recommend to look into XQuery. It is...
November 11, 2009 at 11:40 am
I don't recommend dsdeming's solution since it will set all other values for column USER_ORDER_QTY to NULL that don't match the CASE condition!!
@dsdeming: you might want to change the code...
November 11, 2009 at 10:39 am
Look for ROW_NUMBER() in BOL (BooksOnLine, the help system usually installed together with SQL Server).
It requires an column for sorting. So you have to think what would be the definition...
November 11, 2009 at 10:16 am
Ok, now it makes sense...
Would have helped a lot if the statement
SELECT 1,2,3,4,5,6
had SQL tags around (maybe even with expected output) to look like
SELECT 1,2,3,4,5,6
/* result set
(No column name)(No column...
November 11, 2009 at 9:36 am
Lewis Dowson (11/11/2009)
November 11, 2009 at 5:09 am
The only difference I can see is the word "SELECT" aat the beginning of the output...
SELECT 'Select '+ stuff((SELECT ', ' + Value From @Temp FOR XML path('')),1,2,'')
Based on your...
November 11, 2009 at 3:36 am
s_shah-977123 (11/10/2009)
...the max number of users is 15 per application.
A decision whether to go for one or more database(s) is much more related to the context to be stored than...
November 10, 2009 at 2:43 pm
Why don't you add the WHERE clause to your CASE statement and do all in one query?
To get the count for each group would be the same as do SUM(CASE...
November 10, 2009 at 2:19 pm
I'm not sure if it helps to explicit cast the xml result as varchar(8000) or nvarchar(4000).
Another option could be to put the XML subselect into a separate (temp?) table with...
November 10, 2009 at 2:01 pm
Thanxalot for the effort in (re-)writing this great article Jeff!
Adding cross-references to several other great articles and the amount of code to support/prove your point makes it not "only" an...
November 10, 2009 at 1:20 pm
Usually, a ColToRowConversion of this kind is done using the FOR XML clause:
SELECT stuff((SELECT ', ' + Value From @Temp FOR XML path('')),1,2,'')
Using your sample data it will result in...
November 10, 2009 at 11:58 am
The problem is described pretty clear:
The system cannot find the path specified
It looks like you're trying to open a file located on a client PC from a (SQL) server.
Either you...
November 10, 2009 at 11:46 am
Viewing 15 posts - 4,801 through 4,815 (of 5,504 total)