Viewing 15 posts - 1 through 15 (of 108 total)
One advantage that I had as my last permanent job shifted from 20% at home to 95% at home was that my teammates were all in another state. They literally...
March 26, 2017 at 10:18 am
duh...
Don't check "Discard Results" in the Results tab, even accidentally !
In the words of Emily Latilla: "Never Mind." 🙂
July 15, 2008 at 5:17 pm
Transact-SQL does not allow constructions like those.
The closest you can come would be to build the entire query as a string, then execute the string using exec()...
July 15, 2008 at 3:47 pm
You cannot back-out of SP4. You would have to re-install SQL Server from scratch, and then apply SP3.
January 3, 2008 at 9:53 pm
Putting any synchronous process with a component that will run outside of the local SQL Server itself (i.e. pretty much anything like email, linked server tasks, xp_cmdshell calls, etc.) into...
October 24, 2007 at 4:29 pm
I was the lead DBA in a company that decided that the System Administration department (we DBAs were in the Systems Programming department) would take over responsibility for all changes...
June 22, 2007 at 9:24 am
Try adding a harmless line that returns something to the "client" to the end of the stored procedure, such as:
select convert(varchar(5), case @@error when 0 then 'OK' else 'Error' end)...
January 5, 2007 at 1:20 pm
Use datediff in units of the resolution desired, then integer division and modulo (remainder after integer division, the % operator) in an expression like:
declare @olddatetime datetime
declare @newdatetime datetime
select @newdatetime =...
October 13, 2006 at 2:29 pm
I don't know about Oracle date ranges, but the difference between '1753-01-01' and '1900-01-01' is between the minimum value for a SQL Server datetime datatype (8 bytes with resolution to...
September 28, 2006 at 7:26 pm
Use an sql statement with the openquery function, something like:
insert mySQLServer table select ..., convert(datetime, myvarchardate)
from openquery(myOracleServer, 'select ..., munge(cast myOracledate as varchar) as myvarchardate from myOracleTable')
...where munge() is the...
September 27, 2006 at 8:47 pm
The clustered PK you mention (SubOrganizationID, RecordType, RecordSubType, Date) provides an excellent boost to get, say, all records for a particular SubOrganization. For getting any other large collection of records,...
August 23, 2006 at 11:38 pm
Updates are potentially expensive operations because the default IS to actually perform a delete followed by an insert. In certain circumstances the server can perform an "update in place", but...
August 23, 2006 at 10:57 pm
My friend Whiskey Brian slept with a shotgun under his pillow. He shot a bear in his cabin in Alaska, in the dark, twice (or more), with his shotgun. His...
June 24, 2006 at 12:13 am
The basic SQL for a db backup is:
BACKUP DATABASE MyDatabaseName TO DISK = 'x:\MyDirectory\MySubDir\MyBackupFileName.BAK'
June 23, 2006 at 11:55 pm
I'm sure not the expert on this, but I believe you need not install any mapi profiles; you are using smtp instead. It worked in our Exchange environment when supplied...
May 23, 2006 at 10:48 pm
Viewing 15 posts - 1 through 15 (of 108 total)