Viewing 15 posts - 391 through 405 (of 1,186 total)
Why not try something like
IF @@SERVERNAME = 'Me'
BEGIN
SELECT * FROM DataBase_A..Table1
END
ELSE
BEGIN
SELECT * FROM DataBase_B..Table1
END
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 28, 2005 at 6:25 am
Can you post your SEARCH statement?
NULL is NOT a datatype but rather a STATE of DATA i.e. NOTHING... In your above VIEW ALL EmpName will = NULL AND no matter...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 27, 2005 at 6:20 am
There is no performance difference HOWEVER, there are differences for how many concurrent connections there are. PER SEAT = n Connections (basically HIGH LEVEL concept), PER PROCESSOR = n CPUs...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 27, 2005 at 6:15 am
the specific scenario that MS referred to was contention in the LDF when a lot of work was being done in TEMPDB again SPECIFIC pattern ONLY. The creation of multiple...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 26, 2005 at 4:14 pm
I don't believe you will be able to get COLUMNAR data. All you will get is something like UNABLE TO INSERT NULL... unless you use custom error messages.
However, an easy...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 26, 2005 at 11:33 am
What is dbo.wrkAccountingDocument a VIEW? TABLE? is there an INDEX on ad.AccountingDocumentNbr ?
The NON-CLUSTERED index also may be causing problems because the 1st column is the same 1st column as the...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 26, 2005 at 6:27 am
We had a perf. problem several months ago and sent logs/data to MS. We asked about multi. T-log files and were told that there is a very specific scenario that...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 26, 2005 at 5:33 am
I think the problem may the fact that the linked server is NOT using the indexes that you are anticipating. Is it possible to 1st build a VIEW or a...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 26, 2005 at 5:30 am
Another item to think about is.. IF you are strictly looking at Column2 for the WHERE statement it SHOULD be indexed. If you add an index to it you will...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 25, 2005 at 4:23 pm
Someone else has a DB connection open i.e. Query Analyzer or an instance of Enterprise Manager. Make sure there are no connections open to that database and try again AJ Ahrens
Good Hunting!
webmaster@kritter.net
April 25, 2005 at 6:00 am
I would initially state NO however, IF the SAME account is on BOTH machines THEN you should be able to (as long as the passwords are the same)...
i.e. PC1\UserA and...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 25, 2005 at 5:58 am
Why cant you call the SELECT TOP 1 1x time write the output into a VARIABLE and use that?
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 22, 2005 at 4:59 pm
The wording is misleading. You are correct in your assumption about TABLE SCAN however, due to CLUSTERED INDEX the code is performing a TABLE SCAN on the INDEX. If you...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 22, 2005 at 4:57 pm
If you need to pick and choose which databases need updating create a table that contains DB names and LOOP through that....
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 21, 2005 at 3:07 pm
What you could do is research on this site the use of msforeachDB and use that to loop. You should be able to find decent SAMPLEs using the search feature...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
April 21, 2005 at 5:24 am
Viewing 15 posts - 391 through 405 (of 1,186 total)