Viewing 15 posts - 6,211 through 6,225 (of 59,101 total)
People don't understand that a CTE is NOT executed first and then the rest of the query works against that as if it were a table with the possible exception...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 7:42 pm
@jeff - Server is optional - if not supplied it run on the local machine where bcp is executed and connects to its default instance.
But doing this is...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 2:12 pm
Heh... some would say that you got "Lucky", Lynn. I would say that it's where years of preparation and hard work have finally met a good opportunity (my definition of...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 2:06 pm
What is the difference between the second and the third answer?
Well, nothing reading the text for both answers. The fact that both answers were used is probably interesting...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 2:00 pm
Okay, I felt this would be more efficient and extensible ti done in SQL server, and I guess I thought it would be easier, but thanks I will do...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 1:56 pm
You can take this further and split the rows into columns like this
DECLARE @XMLData xml;
SET @XMLData = '<PlaceDescriptions>
<descriptions>0|Home</descriptions>
<descriptions>1|Office|False</descriptions>
<descriptions>2|Play Ground</descriptions>
<descriptions>3|School|True</descriptions>
<descriptions>4|Movie Hall</descriptions>
</PlaceDescriptions>';
WITH cteXML AS (
SELECT ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 2:38 am
You deleted,/truncated a large amount of data, your database physical size does not autoshrink. Many suggest pre growing your data files. If you are certain that your database...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 2:24 am
Heh... you're such a "NOTty" boy! 😀 I haven't seen syntax like that in a very long time. Lot's of bloody != but incredibly little !< and !>.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 2:14 am
Sorry. I don't care if I'm not the actual owner of their software even if I've bought a license for it... they need to make turning such monitoring off a...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 2:01 am
I am running it in the edit window. I have done BCP here before but it was a long time ago. Do I need to rewrite this or some...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 26, 2020 at 1:40 am
I am running it in SSMS. the site I got this form seems to be doing it here, but I could be wrong.
If you're running the command from an...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 25, 2020 at 6:43 pm
The double quote at the end of the SQL query ism't matched by a double quote at the beginning of the query. It isn't needed, anyway.
Actually, it is matched. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 25, 2020 at 6:41 pm
Step one is to look at your code and, using only the code for direction, tell me which database you want the code to run against. Yeah... I'm pretty sure...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 24, 2020 at 11:00 pm
... They did start to talk about how Page Density is also important but not to any great extent (pun intended) 😀
I think the podcast should fit 1 hour...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2020 at 2:29 pm
Gotta love it when SQL can't guess how long the rollback will take so it tells you 0% and 0 seconds. I've seen that before and there is that...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2020 at 2:15 pm
Viewing 15 posts - 6,211 through 6,225 (of 59,101 total)