Viewing 15 posts - 3,151 through 3,165 (of 13,459 total)
DBA12345 (7/3/2013)
Thanks for your pormpt reply. But i do have 1000 records to macth in both tables. So, we have to put all the thousand values in the way...
Lowell
July 3, 2013 at 1:24 pm
elee1969 (7/3/2013)
manikanta1207 (7/3/2013)
what is the query to select nth highest salary of emp tableselect MAX(Salary) from Employee;
this really sounds like homework....
anyway,
the nth highest , ie the second or third, requires...
Lowell
July 3, 2013 at 12:34 pm
you are going to have to cleanup the data, it looks to me;
in your example, using charindex, you only get a single match.
unless you can guarantee the three letter abbreviations...
Lowell
July 3, 2013 at 12:12 pm
i think granting VIEW DEFINITION TO {USER OR ROLE} , in a specific database, will give access to all the system views like sys.tables, etc, but not grant read/update to...
Lowell
July 3, 2013 at 11:00 am
i also found this old scalar function that uses a Tally Table to find and replace, based on the ASCII code...
this actually does the replacements of À Á Â...
Lowell
July 3, 2013 at 9:47 am
ok, i've done something kind of similar,and easily adaptable..
i'm guessing that, for example, you really want to replace any letters À Á Â Ã Ä Å with A, is that...
Lowell
July 3, 2013 at 9:15 am
well, nested REPLACE functions are extremely efficient, even if they are wordy and make your eyes cross when nested more than a couple of times.
format them for readability, but the...
Lowell
July 3, 2013 at 8:15 am
Jeff Moden (7/3/2013)
Tara Kizer (7/13/2010)
If you are using a VB application, then there is no need to use xp_cmdshell for this.
Since I'm no VB expert but still very curious, how...
Lowell
July 3, 2013 at 8:06 am
also, i think you had your joins backwards...
this seems to show me everything correct:
/*SuperVisorManager1Manager2
ramNULLNULL
surehramNULL
vimalsurehram
*/
CREATE TABLE [#Employee](
[EmpID] [int] NOT NULL,
[EmpName] [varchar](50) NOT NULL,
[SupID] [int] NULL)
GO
INSERT INTO [#Employee]...
Lowell
July 3, 2013 at 7:53 am
pretty sure SQLSACT is correct;
part of the update process is updating the indexes that are affected, so when the transaction is committed, bit the data itself and the indexes...
Lowell
July 3, 2013 at 7:35 am
OUCH this is painful to even acknowledge I built this query, after seeing how dog slow it is!
my thought is the command has to look something like this, for every...
Lowell
July 2, 2013 at 3:48 pm
* also the Database Engine Tuning Advisor creates a trace with a NULL path, as well.
Lowell
July 2, 2013 at 3:18 pm
also I'm pretty sure a profiler created trace does not have a path: so you can do check sys.traces as a quick sanity check, and that would tell you...
Lowell
July 2, 2013 at 3:15 pm
As usual Sean's got it covered; about all i can say is null columns or tables with zero rows, is missing / no data often doesn't mean the objects can...
Lowell
July 2, 2013 at 2:21 pm
it's effectively a script which performs the same operations as this GUI menu "Shrink Files" in SSMS performs...the followup screen lets you select either the database file(s) or the log...
Lowell
July 2, 2013 at 12:18 pm
Viewing 15 posts - 3,151 through 3,165 (of 13,459 total)