Viewing 15 posts - 616 through 630 (of 3,348 total)
You can't. Tables are unordered, so the only way to guarantee order is if there is something in the data that you can sort on.
Your explanation shows only a single...
March 23, 2016 at 8:49 am
If you just want to track changes to a single table or a very small amount of tables, setting up a trigger to catch the changes and log them to...
March 23, 2016 at 8:45 am
You can't. The LDF does not save queries, it saves modifications.
If you want to track queries, you have to set up some kind of auditing.
March 23, 2016 at 4:44 am
You say that the body of the mails is incorrect, but not how it is incorrect. Is it empty? Correct data in wrong order? Cut off? Something else?
For troubleshooting, I...
March 23, 2016 at 4:37 am
Technically speaking, the ReportServer database is not considered a system database. I personally consider SSRS similar to other "third-party" applications that use a database schema that I have no control...
March 23, 2016 at 3:57 am
Tables do not have to be related in order to join them. SQL Server will happily join everything as long as you tell it how it identify a match.
Not sure...
March 22, 2016 at 1:58 pm
In addition to the answers you already have, I would suggest also looking at existing indexes. Building on Alan's example, let's say that you find an existing index on (c2,...
March 22, 2016 at 1:12 pm
Not sure I understand the requirement completely, but even if this is not exactly what you need, it should get you started:
SELECT EmployeePk,
...
March 19, 2016 at 1:53 pm
I am still being spammed whenever someone decides to add a "me too" to every QotD topic from the last month. Or whenever the next random word is posted.
So yeah,...
March 18, 2016 at 10:33 am
You post very little details so all I can offer is guesswork.
My guess is that this is caused by parameter sniffing. You have a plan in cache that is reused...
March 17, 2016 at 3:19 pm
Off the top of my head and totally untested (that'll be your task :D):
SELECT 'USE [' + name + '];
CREATE USER [innem.sa] FOR LOGIN [innem.sa];
ALTER ROLE [db_datareader] ADD MEMBER [innem.sa];
'
FROM...
March 17, 2016 at 3:07 pm
wendy elizabeth (3/16/2016)
I would like to change the t-sql 2012 since the following t-sql witha cte does not work in a vb.net 2010 application.
Set up an extended events session on...
March 17, 2016 at 3:02 pm
szejiekoh (3/17/2016)
March 17, 2016 at 2:39 pm
amy_davis07 (3/16/2016)
Joining tables created by a LOOP!:hehe:
Since you are asking how to join the tables, I will just pretend not to have seen how you created them.
(But just for the...
March 16, 2016 at 3:15 pm
SQL!$@w$0ME (3/16/2016)
Thanks Hugo. Is there a simple way to deny permissions on few columns on all tables on a database for all users except sysadmins.
I would run a query on...
March 16, 2016 at 2:49 pm
Viewing 15 posts - 616 through 630 (of 3,348 total)