Viewing 15 posts - 61 through 75 (of 1,219 total)
I seem to recall that IT Researches uses SQL 2008 R2 Express. The space needed for tempdb is 20 GB which is above the database limit for Express. I am...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
June 18, 2021 at 6:27 pm
What sort of foreign key do you have in mind? The XML column itself cannot be a foreign key, since you cannot have an index, and thus not a primary...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
June 18, 2021 at 6:25 pm
What is really optimistic is that you expect that someone without knowledge about your system would know where these files are located on this machine. If someone told you that...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
May 12, 2021 at 1:01 pm
I might have missed something, but I have never heard that Linux comes with a database. Maybe you could clarify?
Or do you mean an SQL Server database running on Linux?...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
May 12, 2021 at 10:51 am
Also, I thought running a query in the select portion caused multiple queries for each result - is this wrong?
Keep in mind that SQL is a declarative language. You tell...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
May 6, 2021 at 8:37 pm
I would do this with an EXISTS check in the SELECT list:
SELECT
cn.noteID,
...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
May 6, 2021 at 7:59 pm
It's hard to comment without seeing the details. But it may be better to do something like this in a client-side language. Python, Powershell,Perl or C# are all more powerful...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
April 29, 2021 at 7:09 pm
No. This is T-SQL. It's not Perl or Python.
But tell us what you really want to achieve, that is, what drove you to ask these question in the first place?...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
April 29, 2021 at 6:29 pm
No.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
April 29, 2021 at 6:10 pm
DOCUMENT means that the xml must be a valid XML document and not just a fragment. That is, there must be one single root node around the whole thing. The...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
April 24, 2021 at 8:34 am
; WITH numbering AS (
SELECT cUser, dDate, dense_rank() OVER(PARTITION BY cUser ORDER BY dDate) AS drank
FROM #tmp_UserDates
)
SELECT...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
April 8, 2021 at 1:11 pm
Indeed, there would if the connections would be physically opened and closed for every edit. That is why client APIs implement connection pooling as a default option to prevent this...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
March 8, 2021 at 7:39 am
To answer your question: you may not have to restart SQL Server. You can connect on the admin connection. You do that by prefixing the server\instance with ADMIN:, for instance
ADMIN:.\SQLEXPRESS
By...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
March 6, 2021 at 9:26 am
Connection pooling is a client-side concept. When you close a connection, the API keeps the connection and reuses it when the same connection string is used again. SQL Server has...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
March 4, 2021 at 7:28 am
12000 connections on an Express instance sounds an awfully lot. As a matter of fact, it is an awfully lot even for Enterprise Edition. I've never seen that many.
Does this...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
March 3, 2021 at 10:39 am
Viewing 15 posts - 61 through 75 (of 1,219 total)