Viewing 15 posts - 151 through 165 (of 190 total)
cont'd:
I know that the result of a DECRYPTBYKEY call is a varbinary value, that's why you have to convert it to varchar.
December 28, 2011 at 2:30 pm
I'm not the sharpest tool in the shed, but does this have anything to do with it?
You convert it to varchar. Varchar by itself limits it to 10 characters...
December 28, 2011 at 2:29 pm
This is my chance to return the favor for all the ideas and scripts that I have received from this wonderful website.
Here is my instance security audit documentation script....
December 28, 2011 at 7:33 am
Is it the server, or a program on the server? I believe the EventSource in the Event Log should give a clue as to the program that is doing...
November 22, 2011 at 2:29 pm
If you are auditing failed logins, the IP address of the offending machine should appear in the Windows Application event log. Do a
ping -a <ipaddress>
example:
ping -a 172.169.1.1
and...
November 22, 2011 at 9:54 am
Can you do just one instance of 2008 and run the 2005 database in compatiliby mode? That only means 1 license.
October 17, 2011 at 9:05 am
I backup all my databases (and the tranlogs) to the actual server they reside on. I wrote a program that copies all the new backup files every hour to...
October 17, 2011 at 9:01 am
True, assuming that ID = 3 can only occur on one record.
October 12, 2011 at 8:03 am
I use the ISNULL() function for things of this nature.
SET @someval = ISNULL((SELECT Name FROM SOMETABLE WHERE ID=3),'')
OR
SELECT @someval = ISNULL(Name,'') FROM SOMETABLE WHERE ID=3
if the result is null, will...
October 12, 2011 at 7:08 am
Here is another example from a blog on SQL Server Central.
http://www.sqlservercentral.com/blogs/sqlrnnr/archive/2011/8/15/send-dbmail.aspx
October 4, 2011 at 1:56 pm
You can use DBMail to send an attachment of the results of a SELECT statement.
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'SQL Server Mail Profile',
@recipients =...
October 4, 2011 at 1:50 pm
I think this is what you are talking about, being able to print the values that are returned:
DECLARE @st int
DECLARE @rn int
DECLARE @em varchar(200)
EXEC...
September 29, 2011 at 2:21 pm
It almost sounds like the backup file set contains multiple backups. Might have to use the FILE= clause of the restore command to specify the one that is to...
September 29, 2011 at 2:11 pm
This is how I do it. See code below. I use the MiscValues table to set variables that I can use to turn things on/off, which I use...
September 15, 2011 at 9:43 am
Another great advantage of using a drop down list, as we have learned, is that it gives greater opportunity to do reporting. It allows you to easilly determine how...
September 8, 2011 at 2:16 pm
Viewing 15 posts - 151 through 165 (of 190 total)