Viewing 15 posts - 76 through 90 (of 170 total)
In which case, check to see if there is an open transaction in the database; may be that someone has a transaction open that is locking the system tables.
June 24, 2013 at 9:06 am
If I've read that right, it sounds like the row count settings in your SSMS.
Go to "Tools" -> "Options"
In the new window, expand "Query Options" then "SQL Server" then "General"...
June 24, 2013 at 8:08 am
So you want to return the whole xml document in the row, if it contains the string anywhere in it, be it an element name, element value, element attribute etc?
If...
June 24, 2013 at 7:58 am
When you used a normal table, was this also created within your transaction? Or did it already exist and you simply populated it in your transaction and then performed...
June 24, 2013 at 5:13 am
I'm assuming that the file fails when this happens? In which case you can set up an error handler to inform you that it failed? Or am I missing...
June 13, 2013 at 1:02 pm
Well, considering some of the transaction handling I've seen in the past, I could see why someone might get pernickety about them! But I think education is always a...
June 13, 2013 at 1:01 pm
Well if you're going the bcp route with xp_cmdshell, you could consider using certificates; have a login mapped to that certificate and grant the execute privilege for xp_cmdshell to that...
June 13, 2013 at 11:39 am
Each method has advantages and disadvantages, depending on what you want to do.
Where I currently work, I inherited a system that was very heavily OPENROWSET based because it had allowed...
June 13, 2013 at 9:42 am
You can't directly transfer a primary key; you will need to drop it, then run the CREATE CLUSTERED INDEX statement with the DROP_EXISTING = ON clause and specify the new...
June 13, 2013 at 9:27 am
This isn't true, you can shrink a transaction log file that is in a log shipping configuration without affecting the log shipping.
However, I'd only do it if the log has...
June 13, 2013 at 6:10 am
I'm not sure what good having them restored as user databases does, unless I'm missing something?
All my databases, including system, are backed up regularly and stored in several secure locations...
June 13, 2013 at 2:49 am
I believe it is set up as part of policy based management; it will call sp_syspolicy_purge to remove the policy evaluation history based on the HistoryRetentionInDays setting.
June 12, 2013 at 9:35 am
Not especially elegant, but this should work:-
DECLARE @datestring char(9)
SET @Datestring = '1130531'
SELECT SUBSTRING(@datestring, 4, 2) AS MonthPart
, SUBSTRING(@dateString, 6,2) AS DayPart
, CASE WHEN LEFT(@datestring, 1) = 0 THEN '19' ELSE...
June 12, 2013 at 8:39 am
Yes. The login by default is a member of the public server role, which by default is granted the VIEW ANY DATABASE server permission.
If you don't want this to...
June 11, 2013 at 8:49 am
SELECT DATEPART(weekday,DATEADD(mm, 3, '2013'))
This will return the day of the week, where 1 = Sunday, 2 = Monday etc.
Bear in mind that if you are only passing in the year...
June 11, 2013 at 8:08 am
Viewing 15 posts - 76 through 90 (of 170 total)