Viewing 15 posts - 106 through 120 (of 13,451 total)
Sorry,unless you have some auditing in place, before it happened, it is not possible.
you can get basically the last executed information for current connections from the DMV's, or using sp_whoisactive,...
November 14, 2019 at 8:11 pm
i think the right thing to do is is go straight to sys.dm_db_index_usage_stats, which keeps track of how many times an index was used for seeks/scans/ lookup/updates.
the data is only...
November 14, 2019 at 7:47 pm
i poked around the metadata with this query, and looked at views that seemed interesting:
SELECT * FROM sys.all_objects WHERE type='V' AND name LIKE '%avail%' OR name LIKE...
November 13, 2019 at 1:48 pm
16 Gig is fine. for three servers, i would say you need 3-4 gig per server, i've done 1 core / 2 gig per server, but they are painfully slow,...
November 13, 2019 at 12:59 pm
I know if you install IIS or some other web server, you can redirect the default name of the server to the right folder;
so if someone goes to http://MyserverName, the...
November 12, 2019 at 9:49 pm
for me, that OR statement is something i think i would switch to two separate queries, for each of the two sets.
ON a.ra_number = b.ra_number
and (a.ei = b.ei or...
November 11, 2019 at 10:07 pm
db_datareader gives permissions to all SELECT-able objects, which would include tables and views.
I think you wanted just specific views, so you have to turn to dynamic sql:
offhand, it would look...
November 6, 2019 at 12:51 am
so there's two things here you have to check.
the D:\ drive here must be on the SQL server.
@file_attachment = 'D:\Test\results.txt',
if the drive is not on the server,...
November 1, 2019 at 9:10 pm
on most of my servers, the log files are on a completely different drive; it is more common on bigger installations to seperate the data to multiple drives.
so the mdf...
November 1, 2019 at 3:12 pm
Mike Vessey has the answer there. USERS don't have passwords (except in contained databases, there's always an edge case)
so you have to change the LOGIN that the USER in the...
November 1, 2019 at 2:28 pm
I have had some scripts like that error int he middle do that, and it was because my \\unc path was out of space. i could do the first few...
October 28, 2019 at 9:03 pm
you'll need to modify this query with your names:
EXEC sp_dropserver 'OldServerName'
EXEC sp_addserver 'NewServerName', 'local'
after that, there will be a difference in @@servername until you can stop...
October 23, 2019 at 6:59 pm
we store files in our databases and varbinary(max)
you would be adding an extra step to convert varbinary to base64/varchar(max). then if you need the file, you have to double convert...
October 23, 2019 at 5:20 pm
dang i missed that part.
that literally says bring it into someplace where you can use a flat file connection manager, since it is not supported yet.
sorry:
Azure Blob Source does not...
October 22, 2019 at 7:59 pm
in your flatfile connection manager, change the text qualifier to a double quote. it will remove the dbl quotes when it builds that path to the destination for clean data.
October 22, 2019 at 7:27 pm
Viewing 15 posts - 106 through 120 (of 13,451 total)