Viewing 15 posts - 31 through 45 (of 50 total)
In general, you will detach a db when you want to disable, or otherwise curtail use of it.
This has the effect of "deleting" it from the server, without actually deleting...
August 11, 2009 at 3:47 pm
re:
what i am trying to pull out is a dataset where I do not have duplicate records because, for example, the record has 'SS18' in code1 and 'SS18' in code3....
August 10, 2009 at 3:28 pm
if present select the record. If not then check code2 for 'SS18' OR 'SS19'. If present then select the record. If not then check code3 for 'SS18' OR 'SS19' If...
August 10, 2009 at 2:57 pm
This returns the 1st instance of 'SS18':
SELECT top 1 * FROM #REF
WHERE 'SS18' in (Code1, Code2, Code3)
August 10, 2009 at 1:13 pm
Using Office 2007, one can:
- Install: 2007 Microsoft Office Add-in: Microsoft Save as PDF
- With plan displayed in MSMS, hit ALT-PrtSc
- Open new doc in MSWord 2007
- Hit Ctrl-V to...
August 10, 2009 at 12:57 pm
Explanation: Stored procedure calls will silently truncate strings.
I believe the Explanation here is more fundamental than "Stored procedure calls...", instead having to do simply with the declaration of the...
August 10, 2009 at 10:26 am
I think your prob is not in the SQL.
In MSMS, if you send your Results to Text, you get this:
1234567 89
123 ...
August 3, 2009 at 1:08 pm
...so that it wouldn't be necessary to remember to add the above constraint to each and every table?
Do it in one operation:
EXEC sp_MSForEachTable 'ALTER TABLE ? ADD CONSTRAINT ck_FieldName CHECK...
July 31, 2009 at 3:07 pm
I'm unsure what you were trying to achieve here, but your example lead me to this interesting phenom:
In effect, the statement:
SELECT @dummyvar = name FROM foo
acts like a...
July 31, 2009 at 1:00 pm
You can use Query Analyzer(2000) to query 2005 dbs.
July 31, 2009 at 10:46 am
PaulB (7/6/2009)
molson (7/6/2009)
I'm shocked and appalled some people have a total disregard for Referential Integrity.
Sometimes a DBA's gotta do what a DBA's gotta do...
:blink: do you mean... trash referential integrity?...
July 6, 2009 at 1:59 pm
I'm shocked and appalled some people have a total disregard for Referential Integrity.
Sometimes a DBA's gotta do what a DBA's gotta do...
July 6, 2009 at 11:20 am
here's fast, less typing:
print ('1 ' + '2 ' + '3 ' + '4 ' +'...')
June 29, 2009 at 2:53 pm
- Start Profiler
- File Menu / New Trace
- 'Events Selection' Tab
---- Uncheck all except Stored Procedures RPC: Completed (and maybe TSQL:SQLBatchCompleted )
---- Check 'Show all columns'
---- Ensure 'Text...
June 19, 2009 at 12:43 pm
select substring ('ABC123',4,3)
June 19, 2009 at 10:52 am
Viewing 15 posts - 31 through 45 (of 50 total)