Viewing 15 posts - 4,666 through 4,680 (of 13,469 total)
the row counts are already materialized in one of the system tables, so if you query that, it will be boatloads faster than querying each table individually:
Select
...
October 1, 2012 at 2:10 pm
there's no need for a cursor on this, but I think youa re right, you will need to pivot the rows to columns;
is there a fixed number of answers for...
October 1, 2012 at 9:58 am
here's the script I mentioned that blindly builds the SQL statements to create indexes on any foreign keys that do not have indexes on them yet;
any peer review would be...
October 1, 2012 at 7:49 am
i like all the examples so rar, but make sure you search for <table without the ending > tag.
if the table has a class, a css style or even older...
October 1, 2012 at 6:19 am
Steve Hendricks (9/28/2012)
For SELECTs that would be...
September 29, 2012 at 6:14 am
I'm pretty sure the settings are stored in the
%appdata%\Microsoft\SQL Server Management Studio\11.0 folder in the SQLStudio.bin file.
If you use any applications that clear out temporary files to recover some...
September 28, 2012 at 2:50 pm
ramadesai108 (9/28/2012)
We do not have the layout file, how do I create one or where do I get one?Thanks.
ouch, there is seriously no "easy" way on this then.
to the best...
September 28, 2012 at 11:50 am
blindly adding an index on all the columns that foreign keys are involved with might not help much;
it's the selectivity of the data that is what the SQL engine uses...
September 28, 2012 at 11:26 am
well, like Ron/bitbucket said; there's many formats to an EDI file; somewhere someone on your side should have put together a document mapping out each element;
once you have that...
September 28, 2012 at 10:44 am
why to a text file, and not a table in say, the msdb database, which can contain a suite of commands for you to run during you rmaintenance window?
why must...
September 28, 2012 at 9:10 am
wedgemail (9/28/2012)
I know how to get it to run(add a linked server) but my question is how can
this code run successfully:
SELECT 1
FROM EWH_Staging.dbo.STAGE_REMP_VCC_Distinct vcc
It...
September 28, 2012 at 9:08 am
formatted a bit for readability;
similar to some EDI files I handle, it looks like the tilde(~) is the delimiter for message segments;
the ISA segment is a control header for "who...
September 28, 2012 at 8:55 am
tauseef.jan (9/28/2012)
Actually I need, when a user creates/restores a database on the server
he should be automatically be assigned to db_owner role.
...
September 28, 2012 at 7:15 am
wedgemail (9/28/2012)
It does but its on a remote server not local?
in that case, being on a remote server, you need a linked server so you can get to it.
and the...
September 28, 2012 at 6:16 am
tauseef.jan (9/27/2012)
I need to create a server trigger to automatically map a login to a new database and make it a member of the db_owner database role.
I was trying...
September 27, 2012 at 9:50 am
Viewing 15 posts - 4,666 through 4,680 (of 13,469 total)